Working With PHP Interceptors

Working With PHP Interceptors

PHP provides some handful methods which can be used within your classes to intercept messages sent to undefined methods and properties .Some developers call this overloading .These methods like __construct() method which invoked when you instantiate object .Let’s explores these methods .

continue reading »

PHP Packages and Namespaces

PHP Packages and Namespaces

Package is a set of PHP classes grouped in some manner .Many developers use file system to organise their applications because PHP has no native concept of a package until PHP 5.3 .With PHP 5.3 ,namespaces become part of PHP .I know that most of us think many times before using namespaces in any commercial code .you know ,not all servers support PHP 5.3 but this will be for a while .

continue reading »