PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Elminson De Oleo   PHP Project Structure Composer Generator   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Project Structure Composer Generator
Generate files for a Composer skeleton project
Author: By
Last change:
Date: 5 years ago
Size: 816 bytes
 

Contents

Class file image Download

PHPProjectGen

Objective

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

Usage:

After download run

composer install

Configure your package (config.json)

{
  "name": "Elminson",
  "projectname": "NewProject",
  "description": "Project description",
  "phpunit": true,
  "developer": "Elminson De Oleo Baez",
  "email": "edeoleo@gmail.com",
  "license": "MIT",
  "minimum-stability": "dev",
  "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 5 minutes or less.