PHP Classes
elePHPant
Icontem

PHP Project Structure Composer Generator: Generate files for a Composer skeleton project

Recommend this page to a friend!
  Info   View files Documentation   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2018-10-15 (11 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 98 All time: 9,245 This week: 295Up
Version License PHP version Categories
phpprojectgen 1.0.0GNU General Publi...5PHP 5, Project Management, Code Gener...
Description Author

This package can generate files for a Composer skeleton project.

It takes a configuration file in JSON format and generates the files for the skeleton of a project for installing with Composer.

The generated files are used to generate a ZIP archive that can be extracted before installing with Composer.

Innovation Award
PHP Programming Innovation award nominee
October 2018
Number 5
Composer is a popular package for installing PHP applications.

This package can generate a set of files that will constitute the skeleton of a project that can be installed with Composer.

Manuel Lemos
  Performance   Level  
Name: Elminson De Oleo <contact>
Classes: 2 packages by
Country: Dominican Republic Dominican Republic
Age: 39
All time rank: 30323 in Dominican Republic Dominican Republic
Week rank: 280 Up1 in Dominican Republic Dominican Republic Up
Innovation award
Innovation award
Nominee: 2x

 

Details

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.

  Files folder image Files  
File Role Description
Files folder imagesrc (3 files)
Files folder imagetests (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file config.json Data Auxiliary data
Accessible without login Plain text file generate.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file results.json Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
  Plain text file PHPProjectGen.php Class Class source
  Plain text file ProjectTemplate.php.raw Class Class source
  Plain text file testProjectTemplate.php.raw Class Class source

  Files folder image Files  /  tests  
File Role Description
  Plain text file testTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:98
This week:0
All time:9,245
This week:295Up