PHP Design Pattern
PHP is an open source Language so we are seeing a lot of greate Open source product such as Drupal, Sugar , Magento and lots more..All these are based on certain design pattern.
Design pattern was firstly introduced by Eric Gamma and their three friends in 1972.Design pattern is basically a pattern of software design that is implemented on multiple projects and their intended success gives an idea to prove these pattern as design pattern. Although Object Oriented Design pattern is not only available for PHP but these design patterns are used for almost all programming language that support Object Oriented Programming.
Design pattern are basically the way to solve the problem and the way to get your intended result with the best manner.So Design patterns are not only the way to create large and robust system but it also provide the great architecture in friendly way.
Following are some of the benefits of using design pattern
>> Maintenance
>> Documentation
>> Readability
>> Easy even for large software application
>> Implement the Code reusable concept
There are five basic design pattern in PHP5 that are mostly used although these numbers are not fixed
i) The factory Pattern
ii) The singleton Pattern
iii) The Observer Pattern
iv) The chain of Command Pattern
v) The strategy pattern
In the next series of blog i will explain each one in detail. Till then bye!!!
PHP is an open source Language so we are seeing a lot of greate Open source product such as Drupal, Sugar , Magento and lots more..All these are based on certain design pattern. Design pattern was firstly intoduced by Eric Gamma and their three friends in 1972.Design pattern is baiscally a pattern of software design that is implemented on multiple projects and their intended success gives an idea to prove these pattern as design pattern. Although Object Oriented Design pattern is not only available for PHP but these design patterns are used for almost all programming language that support Object Oriented Programming. Design pattern are basically the way to solve the problem and the way to get your intended result with the best manner.So Design patterns are not only the way to create large and robust system but it also provide the greate architecuture in friendly way. Following are some of the benefits of using design pattern >> Maintenance >> Documentation >> Readablity >> Easy even for large software application >> Implement the Code reusablity concept There are five basic design pattern in PHP5 that are mostly used although these numbers are not fixed i) The factory Pattern ii) The singleton Pattern iii) The Observer Pattern iv) The chain of Command Pattern v) The strategy pattern In the next series of blog i will explain each one in detail. Till then bye!!! i) In the factory
Chandra Shekhar
Latest posts by Chandra Shekhar (see all)
- Best practices for micro service design - January 23, 2022
- Spring Boot - January 23, 2022
- Java - January 23, 2022
Recent Comments