PHP Classes

PHP Builder Pattern Generator: Generate code for classes with the builder pattern

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 40%Total: 283 All time: 7,581 This week: 49Up
Version License PHP version Categories
builder-generator 1.0.0MIT/X Consortium ...5.3PHP 5, Language, Code Generation
Description 

Author

This package can generate code for classes with the builder design pattern.

It takes the name of a class, list of methods and a namespace and dynamically generate code for a class with those definitions.

The package returns an object of the dynamically generated class.

Innovation Award
PHP Programming Innovation award nominee
August 2016
Number 5


Prize: One downloadable copy of Komodo IDE
The builder design pattern allows to dynamically create objects in a way that the same process of construction can allow multiple representations of the object that can be changed over time according to the needs of a project.

This package implements the builder design pattern with a concrete builder class that generates code for classes dynamically to implement a representation of the object class being built at run time.

Manuel Lemos
Picture of Asher Wolfstein
  Performance   Level  
Name: Asher Wolfstein <contact>
Classes: 15 packages by
Country: United States United States
Age: 41
All time rank: 1121164 in United States United States
Week rank: 214 Up28 in United States United States Up
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files (10)  
File Role Description
Files folder imagesrc (1 directory)
Files folder imagetests (1 directory)
Accessible without login Plain text file composer.json Data composer file
Accessible without login Plain text file phpunit.xml Data unit testing

  Files folder image Files (10)  /  src  
File Role Description
Files folder imagePhabstractic (1 file, 1 directory)

  Files folder image Files (10)  /  src  /  Phabstractic  
File Role Description
Files folder imagePatterns (1 file, 2 directories)
  Accessible without login Plain text file falcraftLoad.php Aux. loader

  Files folder image Files (10)  /  src  /  Phabstractic  /  Patterns  
File Role Description
Files folder imageException (4 files)
Files folder imageResource (1 file)
  Plain text file Builder.php Class main class

  Files folder image Files (10)  /  src  /  Phabstractic  /  Patterns  /  Exception  
File Role Description
  Plain text file CodeGenerationException.php Class codegeneration exception
  Plain text file ExceptionInterface.php Class exception interface
  Plain text file RangeException.php Class range exception
  Plain text file RuntimeException.php Class runtime exception

  Files folder image Files (10)  /  src  /  Phabstractic  /  Patterns  /  Resource  
File Role Description
  Plain text file BuilderInterface.php Class builder interface

  Files folder image Files (10)  /  tests  
File Role Description
Files folder imagePhabstractic (1 directory)

  Files folder image Files (10)  /  tests  /  Phabstractic  
File Role Description
Files folder imagePatterns (1 file)

  Files folder image Files (10)  /  tests  /  Phabstractic  /  Patterns  
File Role Description
  Accessible without login Plain text file BuilderTest.php Test unit test

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
Downloadbuilder-generator-2016-08-07.zip 11KB
Downloadbuilder-generator-2016-08-07.tar.gz 7KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
PHP Configuration Trait Download .zip .tar.gz For configuring the object Required
 Version Control Unique User Downloads Download Rankings  
 0%
Total:283
This week:0
All time:7,581
This week:49Up
 User Ratings  
 
 All time
Utility:58%StarStarStar
Consistency:66%StarStarStarStar
Documentation:-
Examples:-
Tests:50%StarStarStar
Videos:-
Overall:40%StarStarStar
Rank:3779