Skip to content

Set all necessary components to create a skeleton project in php

License

Notifications You must be signed in to change notification settings

elminson/PHPProjectGen

Repository files navigation

PHPProjectGen

Set all necessary components to create a skeleton project in PHP (composer) with PHPunit test cases. PHP Classes
![PHP Classes]

Packagist
Packagist Packagist Packagist

Codacy
Codacy Badge

Scrutinizer
Scrutinizer Code Quality Build Status Code Intelligence Status

Travis
Build Status

Objective Create a package to generate php skeleton for package (composer)

Usage After download run

composer install

or via packagist

composer create-project elminson/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

php 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.

About

Set all necessary components to create a skeleton project in php

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages