Implementing Singleton method in design of MVC-based PHP framework

Umi Zahrotus Sa'adah, Jauari Akhmad Nur Hasim, Masfu Hisyam · 2015

Along with the development of technology, many web developers use the framework to simplify the development process. If using pure PHP, the process of development will takes a long time. Framework technology continues to evolve, from the full stack model, until the MVC (Model View Controller) model that is now popular. Each framework is implementing a design pattern that is different. While each design pattern if implemented, have advantages and disadvantages of each. Some existing framework has a complex pattern designs. Whereas the complexity of the design, not always comparable to the performance. Some of the files are included in a PHP script execution. To overcome this, we used a simple design pattern, namely Singleton and namespace or package in Java. This research resulted in a lightweight PHP framework, with a Singleton design pattern, namespace, AJAX, and multiple databases.

Read the paper · More papers on PaperTik