Open-source PHP Lightweight Framework iphp

Source: Internet
Author: User
For PHP Web development, the framework is very important, but the framework is not. it is important to say that a framework is required to establish a set of specifications and guide file organizations, classes and methods, and database operations. it doesn't matter because no framework is the most necessary for PHP development. It is not a framework that is not powerful, but the world of PHP

For PHP Web development, the framework is very important, but the framework is not important. it is important to say that a framework is required to establish a set of specifications and guide file organizations, classes and methods, and database operations. it doesn't matter because no framework is the most necessary for PHP development. It is not a framework that is not powerful, but the world of PHP

For PHP Web development, the framework is very important, but the framework is not important. it is important to say that a framework is required to establish a set of specifications and guide file organizations, classes and methods, and database operations. it is not important to say that for PHP development, no framework is the most necessary, not the framework is not powerful, but the PHP world has never called for the emergence of such a framework.

In the face of the fact that the PHP framework is both important and important, all PHP frameworks must be lightweight. If a PHP framework is very heavy, it will certainly have no future and will not become popular, that is, the popularity is very short and quiet.

I suggest every team develop their own PHP framework, which is simple. it is best to develop a framework in three days, rather than a framework that barely makes a strange and complex one year and a half. this framework must be transparent, and even new users can see through the core of the framework at a glance. if this is not possible, I suggest changing people (yes, in this case, people should be replaced ).

I have some requirements for the PHP framework:

1. You cannot do too many things.

The PHP framework does not always want to do everything, the cache system does not need a framework, and Session management is not required. The storage layer encapsulation should not be too excessive to create various disgusting ORM, useless functions such as ActiveRecord. these functions and modules should be independent of the framework and adopt mature technologies.

2. Do not "CREATE" the so-called template Language

The PHP language itself is the template language. For PHP Web, the template language is the most perfect language, with the best maintainability and training cost. You just need to say one or two more words: only echo and echo functions are used, and if/for/while. I did not agree with the significance of template tools like smarty 10 years ago, nor did I agree with such meaningless tools that are parasitic on PHP 10 years later.

3. The best way to use the PHP framework is to forget the framework.

The framework should be simple enough with just the right functions and no unnecessary restrictions. In this way, the existence of the framework can be forgotten during use, so that you can focus on the business itself. when developing a function, the programmer should not think about "whether the framework can be done", but "can I do it ".

4. Last

I also developed a lightweight PHP framework named iphp. the iPhone is very simple and lightweight, with only one thousand lines of valid code. iPhone only solves the most important problems in Web development: Code Organization, URL routing, and URL generation.

This framework is used to develop the phpssdbadmin (open-source project) graphical interface management tool for SSDB databases ). if you look at phpssdbadmin, you will find that the iPhone meets the previous requirements, and phpssdbadmin has almost never noticed the existence of the PHP framework.

Related links:

  • Getting started with the iPhone framework
  • How does the iPhone framework generate a URL?
Related posts:
  1. Phpssdbadmin, a graphical interface management tool for SSDB Databases
  2. Common functions of the iPhone framework
  3. If-else's reaction to optimizing code Redundancy
  4. PHP floating point display and convert to string
  5. WordPress paging code

Original article address: open-source PHP Lightweight Framework iphp. Thank you for sharing it with me.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.