PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  Info   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-08-07 (2 months ago) RSS 2.0 feedNot enough user ratingsTotal: 231 This week: 5All time: 7,569 This week: 211Up
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
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files  
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  /  src  
File Role Description
Files folder imagePhabstractic (1 file, 1 directory)

  Files folder image Files  /  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  /  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  /  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  /  src  /  Phabstractic  /  Patterns  /  Resource  
File Role Description
  Plain text file BuilderInterface.php Class builder interface

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

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

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

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:231
This week:5
All time:7,569
This week:211Up