I want to solve a kata using PHP and test driven development. I would like to use a generator or template to base on a minimal composer project with phpunit.
The minimal project should contain:
- the composer.json with phpunit as require-dev
- the vendor folder
- a sample tests folder with a test file and a source file
I wondered how other developers do that in PHP and found so far the following options:
- use PHPStorm and create a new composer project based on laravel/laravel followed by
php artisan key:generate
as described here and here - use composer init as described in this post
- use php-pds/skeleton followed by
composer require phpunit/phpunit --dev
as described here
What is typical way for a PHP developer to deal with the initial boilerplate in a small php project?