PHP Classes

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

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 110 All time: 9,646 This week: 45Up
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: 44
All time rank: 2412329 in United States United States
Week rank: 206 Up24 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 (10)  
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 (10)  /  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 (10)  /  tests  
File Role Description
  Plain text file testTest.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:110
This week:0
All time:9,646
This week:45Up