ricci69 / phpprojectgen
Set all necessary components to create a skeleton project in PHP (composer) with PHPunit test cases
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 2
Type:project
pkg:composer/ricci69/phpprojectgen
Requires
- nelexa/zip: dev-master
- phpunit/phpunit: dev-main
Requires (Dev)
- phpunit/phpunit: dev-main
This package is auto-updated.
Last update: 2025-10-19 18:39:25 UTC
README
Set all necessary components to create a skeleton project in PHP (composer) with PHPunit test cases. Based on the excellent work of [Elminson De Oleo Baez]
Usage
After the download run
composer install
or if you want to install it via packagist
composer create-project ricci69/phpprojectgen
Configure your package (config.json)
{
"name": "Company",
"projectname": "NewProject",
"description": "Project description",
"phpunit": true,
"phpunitversion": "~9",
"developer": "author",
"email": "author@email.com",
"license": "MIT",
"minimum-stability": "stable",
"type": "project"
}
Execute
Just type
php generate.php
or navigate to
http://127.0.0.1/PHPProjectGen/generate.php
this will generate a zip file (projectname.zip) with this structure and the correct namespace
src/NewProject.php
tests/testNewProject.php
composer.json
README.md
After unzip the file you have to run
composer install
and you will have your project up and running in 30 seconds or less.