Proposal for "PHP_Modules"

» Metadata » Status
  • Category: PHP
  • Proposer: Eric Gach 
  • License: PHP License
» Description
When loaded into a PHP program, simple method calls within the class allow user created modules to be loaded, reloaded, and unloaded. The module files are simple files that are made up as functions. This package will allow applications, such as any GTK application or even IRC application, to be reloaded while still running.

Currently this class supports constructors that are activated when the module is loaded. Variable storage is planned to be built in as well as destructors. More features will be annouced as development continues.

Error handling is also built in to the class and uses PEAR's built in error class. Any function that fails will return false and the public class variable $error will be set to the PEAR error object.

Example code to be run from the command line (CLI/CGI) is avalible in the docs/examples/ directory. It's very simple and just demonstrates how easily it is to reload modules on the fly.
» Dependencies » Links
  • PHP 4.3.0
» Timeline » Changelog
  • First Draft: 2004-05-06
  • Proposal: 2004-05-06
  • Call for Votes: 2004-05-13