A production-ready Slim Framework 4 template with Docker support, featuring PSR-4 autoloading, PHP-View templating, and a clean MVC structure.
For more help you should check the wiki of the repository, it's completed with step by step helping
Official WIKI: https://github.com/FauZaPespi/Slim-Template/wiki
- Getting Started
- Project Structure
- Installation
- Creating Controllers
- Creating Views
- Adding Routes
- Adding Composer Packages
- Configuration
- Best Practices
- Docker & Docker Compose (recommended)
- OR PHP 8.2+ with Composer
Copy the .env.example into .env and update the environnement configuration for your project.
APP_NAME=slimTemplate
APP_PORT=8080Then, start your project:
# Clone the repository
git clone <your-repo-url>
cd Slim-TemplateCreate a .env file and paste the following environment variables. They are necessary because Docker relies on them.
APP_NAME=slimTemplate
APP_PORT=8080Then, start your project:
# Start Docker containers
docker-compose up -d
# Install dependencies
docker-compose exec php composer install
# Access the application
# Open http://localhost:8000 in your browserThis template is under the Palms license.
Created by FauZaPespi - Best template of all time!
- FauZaPespi
- Res-NeoTech