Explore some of the most widely used design patterns: singleton, facade, decorator and factory.
Application Architecture
In this section, you will find articles, tutorials, and snippets covering all areas of Application Architecture in PHP.
Other Categories: Databases, News, Pear, PHP Functions, Setup & Installation, Site Operation, Tools, Tricks & Hacks.
Right from its inception, PHP was widely used to develop web based applications. Since PHP is a scripting language, one must follow some rules while developing.
Error reporting, DRY approach, Indentation and Use of whitespace, Meaningful and consistent naming standards, Deep Nesting, adequate comments, phpInfo() function, user input, Cache mechanism, extra variables, frameworks
Learn how to use Dice, a PHP dependency injection container that allows you to quickly and simply apply dependency injection techniques in your PHP code.
Codeigniter is an PHP framework built on the MVC design pattern. There is no doubt that it is popular, it’s the most forked PHP project on Github ever, the second most watched PHP project on Github, and has a large group of followers and contributors. Why is it so well loved? The answer is that you can add your own functionality to the Codeigniter core without even breaking a sweat. You can extend the core controllers, models, and just about everything else with relative simplicity. Let’s have a look at how we can do that.
Dependency injection is a software design pattern that implements the inversion of a control concept for resolving dependencies. According to this concept, a class should not configure its dependencies statically, but should be configured from the outside. Learn about Dependency Injection and the main PHP containers/frameworks used in working with PHP.
Laravel follows a slightly different approach to PHP development. Using ideas usually found in the .NET environment, such as Facades, and sporting an Inversion of Control Container, Laravel claims to be the future of PHP. Whether or not this is the case is too early to tell, but it certainly is popular.
CodeIgniter is a great PHP framework because of its simplicity. CodeIgniter layout pattern is particularly productive.
This article will show you how to create a Collection class using different types of methods used to manipulate arrays and we will apply the Reflection mechanism over this class.
John Barlow admit its, he was a little afraid of AngularJS at first. He had seen other frameworks that were similar and immediately discounted this as “just another JavaScript framework” â?? until he used it. In those short moments he discovered that AngularJS is magical, and decided he must use it for all new projects and migrate the old projects.
PHP 5 introduced a set of new features and functionalities to improve performance, efficiency and more. There are three major areas in which the improvement is significant. This article will discuss the most important features introduced in PHP 5.