PHP Project Template
Features
- PHP 8.1
- Doctrine
- Laminas Framework
- PHPStan
- PHPUnit
ProjectTitle
Local development
Starting the container
docker-compose up -d
Creating a local .env
file
cp .env.skel .env
Creating a local .doctrine.local.php.skel
file
cp ./config/autoload/doctrine.local.php.skel ./config/autoload/doctrine.local.php
Running composer install.
docker-compose exec container-name composer install
Run migrations
docker-compose exec container-name php public/index.php migrations:migrate
(Optional) Jump inside the container.
docker-compose exec container-name bash
Debugging
- Server:
localhost:8080
- IDE Key (session id):
DEBUG