PHP Classes

PHP Handyman: Dynamically add functions to an object

Recommend this page to a friend!
  Info   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 366 This week: 1All time: 6,844 This week: 560Up
Version License PHP version Categories
php-handyman 0.9.3GNU General Publi...5.3PHP 5, Language
Description 

Author

This class can dynamically add functions to an object.

It can register a global function to an object of the class which is called when a function with the same name is called on that object.

The class can also register other classes which will be called when functions of the object are called for which there is a function with the same name in the registered classes.

Those class files can be automatically loaded when necessary if there are class files in the current directory or in the include path with matching names.

Picture of Carlo Pietrobattista
  Performance   Level  
Name: Carlo Pietrobattista <contact>
Classes: 5 packages by
Country: Italy Italy
Age: 45
All time rank: 121547 in Italy Italy
Week rank: 411 Up18 in Italy Italy Up

  Files folder image Files  
File Role Description
Files folder imageexamples (1 file, 1 directory)
Plain text file PtcHm.php Class main class

  Files folder image Files  /  examples  
File Role Description
Files folder imageautoloader-example-files (5 files, 2 directories)
  Accessible without login Plain text file ptchm-ex.php Example autoloader examples file

  Files folder image Files  /  examples  /  autoloader-example-files  
File Role Description
Files folder imagenamespaceTest (2 files, 1 directory)
Files folder imagetest-separators (3 files)
  Accessible without login Plain text file class-file.php Example autoloader example class file
  Accessible without login Plain text file HmTestClass.php Example autoloder example class file
  Accessible without login Plain text file hmtestclassls.php Example autoloader example class file
  Accessible without login Plain text file ns-class-file.php Example autoloader example class file
  Accessible without login Plain text file README Data autoloader example files folder

  Files folder image Files  /  examples  /  autoloader-example-files  /  namespaceTest  
File Role Description
Files folder imagehmNsDeep (2 files)
  Accessible without login Plain text file HmTestNs.php Example autoloader example class in namespaced folder
  Accessible without login Plain text file README Data utoloader example namespaced folder with classes

  Files folder image Files  /  examples  /  autoloader-example-files  /  namespaceTest  /  hmNsDeep  
File Role Description
  Accessible without login Plain text file HmTestNsDeep.php Example autoloader example file namespaced class in subfolder
  Accessible without login Plain text file README Data utoloader examples folder namespaced classes in subfolder

  Files folder image Files  /  examples  /  autoloader-example-files  /  test-separators  
File Role Description
  Accessible without login Plain text file class.hm-test-sep1.php Example utoloader example class with different naming convention
  Accessible without login Plain text file Hm-Test-Sep.php Example utoloader example class with different naming convention
  Accessible without login Plain text file README Data autoloader example folder classes with different naming convention

 Version Control Unique User Downloads Download Rankings  
 100%
Total:366
This week:1
All time:6,844
This week:560Up