PHP Requirements
NutriFit requires PHP 8.2 or higher. The application is built on Laravel 12, which requires modern PHP features.Required PHP Extensions
The following PHP extensions must be enabled:PDO Extensions
pdo_sqlite(for development)pdo_mysql(for production)
Core Extensions
mbstringtokenizerxmlctype
Data Extensions
jsonbcmathfileinfo
Optional
gdorimagick(for image processing)zip(for package management)
Verify PHP Extensions
Run this command to check if required extensions are enabled:Node.js & Package Manager
For frontend asset compilation and development:| Package | Minimum Version | Purpose |
|---|---|---|
| Node.js | 18.x or higher | JavaScript runtime |
| npm | Included with Node.js | Package manager |
Verify Node.js Installation
Database Requirements
NutriFit supports two database systems:SQLite (Development)
SQLite is included with PHP by default and requires no additional setup. Perfect for local development.
- Version: Any recent version
- Setup: Automatically created on first migration
- File location:
database/database.sqlite
MySQL (Production)
- Version: 8.0 or higher
- Character set: UTF-8 (utf8mb4)
- Collation: utf8mb4_unicode_ci
Package Manager
Composer
PHP dependency management requires Composer 2.x or higher.Version Control
Git
Required for cloning the repository and version management:Additional Tools
Laravel Sail (Optional)
Docker-based development environment for Laravel. Useful if you don’t want to install PHP locally.
Mailtrap (Development)
Email testing service for development. Free tier available at mailtrap.io.
System Requirements Summary
| Component | Minimum Version | Recommended |
|---|---|---|
| PHP | 8.2 | 8.3+ |
| Composer | 2.0 | 2.7+ |
| Node.js | 18.x | 20.x LTS |
| MySQL | 8.0 | 8.0+ |
| Git | 2.x | Latest |
Operating System
NutriFit can run on any OS that supports PHP and Node.js:- Linux (Ubuntu 22.04+, Debian 11+, etc.)
- macOS (12.0 Monterey or higher)
- Windows (Windows 10/11 with WSL2 recommended)
For Windows users, using WSL2 (Windows Subsystem for Linux) provides the best development experience.
Next Steps
Once you’ve verified all requirements are met, proceed to the installation:Quick Setup
One-command installation for rapid setup
Manual Setup
Step-by-step installation with full control