PHP Classes
elePHPant
Icontem

JavaScript Like Prototypes: Implement class prototypes similar to JavaScript

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-12-06 (10 months ago) RSS 2.0 feedNot enough user ratingsTotal: 190 All time: 7,899 This week: 949Up
Version License PHP version Categories
falcraftprototypes 1.0MIT/X Consortium ...5.3PHP 5, Data types, Language
Description Author

This class implement class prototypes similar to JavaScript.

It can set classes functions as function closures and variables to given values.

New prototype classes can inherit the prototype definitions of base classes.

Innovation Award
PHP Programming Innovation award nominee
December 2015
Number 8
JavaScript implements a different object model based on prototypes for functions and variables that are made available to all objects that use the same prototypes.

This package implements a solution that can work in PHP like JavaScript prototypes.

Prototype functions use dynamically assigned PHP function closures. It also supports prototype inheriting for creating new object prototypes.

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 imageFalcraft (1 file, 2 directories)

  Files folder image Files  /  Falcraft  
File Role Description
Files folder imageexamples (1 directory)
Files folder imagePatterns (1 file, 1 directory)
  Accessible without login Plain text file falcraftLoad.php Aux. Loader Abstraction

  Files folder image Files  /  Falcraft  /  examples  
File Role Description
Files folder imagePatterns (1 file)

  Files folder image Files  /  Falcraft  /  examples  /  Patterns  
File Role Description
  Accessible without login Plain text file Prototype.php Example Example Script

  Files folder image Files  /  Falcraft  /  Patterns  
File Role Description
Files folder imageException (2 files)
  Plain text file Prototype.php Class Main Class

  Files folder image Files  /  Falcraft  /  Patterns  /  Exception  
File Role Description
  Plain text file ExceptionInterface.php Class Exception Interface
  Plain text file RuntimeException.php Class Local Exception Class

Downloadfalcraftprototypes-2015-12-06.zip 6KB
Downloadfalcraftprototypes-2015-12-06.tar.gz 4KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
PHP Configuration Trait Download .zip .tar.gz Configuration of Class Required
Abstract Data Types Download .zip .tar.gz You Can Use Map As Registry Required
 Version Control Unique User Downloads Download Rankings  
 0%
Total:190
This week:0
All time:7,899
This week:949Up