The Strategy Design Pattern in PHP PRO
The strategy design pattern allows us to use objects that represent the various strategies in our code. The following video clip explains its implementation in PHP. You can find the source code available for free download in my ‘PHP Design Patterns’ course, which is available for free personal usage at www.abelski.com.
Classic Design Patterns in PHP Webinar PRO
Thanks for joining me in my very first webinar with Zend. You can now download the slides and the code samples. Please feel free to post comments. I hope next time to overcome the echo problem;)
Static Methods and Static Variables in PHP PRO
PHP supports many of the OOP concepts we know. The syntax is very similar to the syntax in Java. This video clip shows how to define static methods and static variables.
Delegates in PHP PRO
Although PHP doesn’t support delegates (as in C#) the possibility to define the __invoke magic method allows us to write code as if we were using delegates in C#. The following video clip shows that.
Code Format Profiles in PHP Zend Studio PRO
PHP Zend Studio allows us to specify a code format profile we want our code to be formatted with. Once a format profile was set we can easily change the code format of every PHP source code file we open by pressing CTRL+Shift+F. The following video clip shows how to do it.
Reflection in PHP PRO
Similarly to software programming languages as Java and C#, PHP also allows us to write code that finds information about objects and classes. Whether the class was already known during the development phase or was created afterwards, using reflection we can get detailed information about the class and even invoke its methods or access its […]
Namespaces in PHP PRO
PHP 5.3 allows us to group the classes, the constants and the functions we define into separated groups, also known as namespaces. Doing so we can cope with possible names collisions. Unlike previous PHP versions that introduced new features their syntax derive from Java (e.g. the extends and implements keywords), this time the developers of the PHP […]
JSON Support in PHP PRO
Since the emergence of PHP 5.2, the JSON extension is already compiled into the PHP execution environment. We can use it out of the box without any specific configuration. The json_encode function receives an array in PHP and encode it into JSON format. The following video clip shows that. The json_decode function receives a string […]
PHP SOAP Web Services PRO
PHP supports a wide range of web services types, including REStful Web Services, WDDX Web Services and SOAP Web Services. The following video clip shows how simple it is to consume a SOAP web service in PHP.
Hello World in PHP using Netbeans 7.0 PRO
In my daily work I use the Eclipse. I hardly find my self using Netbeans. Nevertheless, following the release of Netbeans 7.0 I chose to give it a try. I downloaded the Netbeans 7.0 PHP version and installed it. The following video clip shows how simple it is to develop PHP applications using Netbeans 7.0. […]