We, PHP Programmers, usually writes a class with its required predefined attributes, getter/setter properties and use them inside our application. That's cool enough. But, what happens when there is data, which isn't quite stable/missing some attribute often, or sometimes might have several more attributes that we don't know/require. If you have worked with various API like … [Read more...] about PHP Dynamic Object With Array And Iterative Access Ability
php
PHP Dependency Injection With Pimple
Injecting dependencies to our core application is an everyday requirements/needs and thus is a most commonly used design patterns. Composer already made our live easier by managing library dependencies for PHP applications. Today, I will introduce you with the best way of PHP dependency injection into a web application with using very simple and slim Pimple library. This … [Read more...] about PHP Dependency Injection With Pimple
Beginners Guide To PHP Closure
PHP started supporting closure from the 5.3.0 version, but still, many PHP programmers don't know/make effective use of it yet. I also haven't seen that many articles on it as well. In today's PHP closure tutorial, I will try to cover how you can start using it easily and make your web application more robust/optimized. Before driving into real examples, assuming that you are … [Read more...] about Beginners Guide To PHP Closure
PHP HTML5 Video Streaming Tutorial
HTML5 video player is becoming more and more popular day by day. Though it can stream with a given public video file URL, sometimes you will need to control the streaming from your server script to provide additional facilities like authentication, resume support, sending in partial chunks etc. In a recent project had such a use case, where a video needed to be streamed through … [Read more...] about PHP HTML5 Video Streaming Tutorial
PHP i18n Internationalization Tutorial
This tutorial will guide you through the way to make your application internationalized and be multilingual. It is already been used in wide range successfully for WordPress's multi language support feature. You should know prior that, debugging this feature is quite hard in php as it won't show any error/warning or notice message for any kind of failure. So it is up to you to … [Read more...] about PHP i18n Internationalization Tutorial