Skeleton Slim 4 application
This package is auto-updated.
Last update: 2023-02-01 15:15:28 UTC
Skeleton Slim 4 application for new projects.
This package makes it quicker to bootstrap a new Slim 4 application with common dependencies and a local development environment using Docker. It is only intended to be used as an initial bootstrap - after that you should commit your changes to your own Git repository and manage your Composer dependencies.
If you are using Visual Studio Code, there are also some settings to integrate
Xdebug and to ignore third party libraries (
vendor/) and the database file.
Create a project via Composer (do not use
composer require as this will
phpdev-uk/slim-skeleton as a dependency):
composer create-project phpdev-uk/slim-skeleton:dev-main my-app
Set your PHP version in
Change any image versions in
docker-compose.yml to match your production environment.
Make any changes to
Visit https://docker.localhost in your browser.
This skeleton application makes the following assumptions about your application environment:
- PHP 7.4
- Single MariaDB database
- Debian Bullseye (latest stable release)
Although you do not have to use them, this package includes the following libraries:
- Doctrine ORM: Create PHP classes to map to your database structure.
- Doctrine Migrations: Manage changes to your database schemas.
If you are using a database in your application, the above libraries are likely to make your life much easier.