PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 109 All time: 9,634 This week: 560Up
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
Picture of Elminson De Oleo
  Performance   Level  
Name: Elminson De Oleo <contact>
Classes: 5 packages by
Country: United States United States
Age: 43
All time rank: 2415330 in United States United States
Week rank: 416 Up46 in United States United States Up
Innovation award
Innovation award
Nominee: 2x

Documentation

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:109
This week:0
All time:9,634
This week:560Up