If you are consuming some kind of API with complex PHP HTTP requests which don't provide a clean wrapper library, I can feel the nightmare you might be having. The same could happen if you are writing such kind of API wrapper as well. Here, I will try to introduce you to Guzzle library and get a quick start. This article is targeted at complete beginners, so if you are already … [Read more...] about PHP HTTP Request With Guzzle
Using Composer With Codeigniter
For all web app developers, who have started using modern frameworks like Symfony, Silex, Laravel etc. and have wished for composer support inside their CodeIgniter application, I will try to show you the most efficient and standardized way to achieve this goal. I have also added this feature on my own codeigniterplus project, and if you are familiar with that project, you can … [Read more...] about Using Composer With Codeigniter
PHP Dynamic Object With Array And Iterative Access Ability
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 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