PHP Design Patterns

PHP Design Patterns Script provides a general reusable solution to a commonly occurring problem. You can find scripts that implement well-known design patterns such as Singleton Pattern, Factory Pattern, Decorator Pattern, etc.
  1. MSingleton
    416 total visits
    MSingleton is a PHP design patterns script that can be used to manage singleton objects. It can assure that only one object of the class exists by storing the first instance of the script in a static variable.Applications should create sub-classes of this script to manage singletons of different classes.Requirements:- PHP 5.3 or Higher
  2. Data Registry
    553 total visits
    This PHP Singleton design patterns script can be used to store and retrieve data anywhere in your PHP code with the similar concept of Zend-registry. Any kind of data (string, numeric, array, object, files, record) in namespaces, with or without persistence can be saved and retrieved by Data Registry script. Data Registry can also act as an User Management script ...
  3. No Screenshot
    469 total visits
    Joomla MVC Classes aims to provide base classes for model, view and controller design patterns helping Joomla backend development. The base MVC classes can be extended to implement new Joomla extensions. Requirements:- PHP 4.0 or higher
  4. No Screenshot
    372 total visits
    Simple Singleton can be used to create singleton objects. If necessary, this PHP design patterns Script can create an instance of the script itself and and store it as static variable. If the object was already created and stored in the static variable, the script returns the aforementioned object. Requirements:- PHP 5.0 or higher
  5. No Screenshot
    327 total visits
    Decorate Anything implements programming principles in a base abstract class that can be extended by decorator classes wrapping results of the wrapped class objects. When the design patterns script accesses the base decorator functions or variables, the abstract decorator script redirects the access to the wrapped class objects. Requirements: PHP 5.2.6 or higher
  6. No Screenshot
    2295 total visits
    Strategy based serializable object registry is a registry design patterns using a strategy, which is implemented to serialize objects. It chooses serialization implementation with driver classes defined at run-time.Requirements:- PHP 5.3.0 or Higher
  7. No Screenshot
    2213 total visits
    This PHP script can be used to register classes implemented abstract services. It may act as registry to keep track of classes that implement certain services defined by abstract interfaces. Registry and Service Locator can locate which registered classes implement requested services and return instances of objects of the service classes.Requirements:- PHP 5.0 or Higher
  8. No Screenshot
    2083 total visits
    REST Server uses a model-view-controller (MVC) design patterns implementation to route REST GET, POST, DELETE and URL to controllers classes. It also provide helpers for handling HTTP requests, response, headers, MIME types and authentication. REST Server makes use of decoration instead of inheritance, so classes do not need to be extended in order to implement servers. No configuration files, custom ...
  9. No Screenshot
    1585 total visits
    cSingleton is designed to implement the singleton design patterns, to help singleton base class assures that only one instance of that extension class exists, it should be extended by implementation classes. Requirements:- PHP 5.2.6 or Higher
  10. No Screenshot
    1640 total visits
    A singleton script assures that only one object of the script exists at one time, Singleton design patterns script makes it easy to instanciate and manipulate singleton scripts. Multiple attempts to create an object of a singleton script always return the same script instance.
  11. No Screenshot
    1638 total visits
    A simple interface definition is provided and can be used by other scripts to implement singletons design pattern. Singleton Interface also comes with an autoload to load scripts or interfaces with the Zend framework if available, or directly from script files otherwise. Requirements:- PHP 5.0 or higher
  12. No Screenshot
    1808 total visits
    True Singleton Class can only be instantiated using a static function that assures that there is only one object of that script. If this Singleton design patterns script was already instantiated, it returns a reference to the previously created script object.Functions for storing, retrieving and deleting object properties, are also provided.Requirements: PHP 5.0 or higher
  13. No Screenshot
    1905 total visits
    Based on Observer design patterns, Event Driven can be used to implement several abstract scripts for processing events and registering event listerers. It manages the processing of abstract evens that may occuring during the execution of a script. This free PHP script may be extended by scripts to handle application specific concrete event handlers.
  14. No Screenshot
    1472 total visits
    This PHP script is designed to help you with code for simple pages like catalogs, which uses some restrictions for building classes in the page controller pattern. Code Help generates code which implements the Model-view-controller(MVC) design patterns. It first generates a controller page script and model, and views classes to create, edit and display records of data entities that are ...
  15. No Screenshot
    1642 total visits
    Observerable is created to define an observer design patterns interface, the observer interface will be used to define a function for observer classes which is called when observed objects are updated. There's another class in this script to be responsible for keeping track of all observer object. It can add and remove observer objects and notify the observers when the ...
Pages 1 of 2« 1 2 »