PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 196 All time: 8,425 This week: 431Up
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
Age: 38
All time rank: 1125158 in United States United States
Week rank: Not yet ranked
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
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  
This week:0
All time:8,425
This week:431Up
For more information send a message to info at phpclasses dot org.