Skip to content

Repository files navigation

Slim Framework Template

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

Table of Contents

Getting Started

Prerequisites

  • Docker & Docker Compose (recommended)
  • OR PHP 8.2+ with Composer

Quick Start with Docker

Copy the .env.example into .env and update the environnement configuration for your project.

APP_NAME=slimTemplate
APP_PORT=8080

Then, start your project:

# Clone the repository
git clone <your-repo-url>
cd Slim-Template

Create a .env file and paste the following environment variables. They are necessary because Docker relies on them.

APP_NAME=slimTemplate
APP_PORT=8080

Then, 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 browser

License

This template is under the Palms license.

Credits

Created by FauZaPespi - Best template of all time!

Contributors

  • FauZaPespi
  • Res-NeoTech

About

A repository for a Slim template

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages