bendamqui / php-package-template
Boilerplate for PHP packages
dev-master
2020-03-26 18:15 UTC
Requires
- php: ^7.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2025-01-27 05:09:53 UTC
README
composer create-project bendamqui/php-package-template:dev-php-7.4 my-package --no-install --ignore-platform-reqs
copy .env.example to .env
docker-compose up --build -d
docker-compose exec php composer install
docker-compose exec php composer test
Debug with PhpStorm
-
Add a php cli interpreter in Preference > Languages & Frameworks > PHP. Choose the php version from the container.
-
Set debug port to 9001 in Preference > Languages & Frameworks > PHP > Debug
-
Create a server in Preference > Languages & Frameworks > PHP > Server.
- name: Has to be equal to the value of PHP_IDE_CONFIG in the .env file.
- host: localhost
- port: 80
- Set the path mapping.