bendamqui / php-package-template
Boilerplate for PHP packages
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/bendamqui/php-package-template
Requires
- php: ^7.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2025-09-24 03:04:54 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.