PHP framework php framework Phpbean description

WBOY
Release: 2016-07-29 08:37:23
Original
1156 people have browsed it

Phpbean has very few core files, which is very related to the design philosophy of phpbean (emphasis on performance and division of labor and cooperative development). The core of Phpbean only implements the basic MVC framework, does not provide any redundant code, and is very transparent to programmers.
The core files of Phpbean are described as follows (note that most core files can be used alone):
1. Action.php The base class of action. Any other action must be a subclass of it. One function is implemented inside: processing of URL data.
2. Exception.php is the exception handling class, which directly inherits from Exception.
3. Registry.php is the register of phpbean. Regarding the registrar, you can refer to my translated article on using global variables in PHP http://www.phpobject.net/blog/read.php/77.htm
4. Router.php routing processing.
5. View.php tries to render the class.
6. DB/model.php and Db/mysql.php are mainly model layers. Currently only MYSQL encapsulation is provided. Basic CURD is implemented in the model. ORMs such as multi-table joint queries are not implemented (mainly due to performance considerations.) For the encapsulation of the DB layer, if complex ORM implementation is required, it is recommended to use ZF's DB.
The optional library classes currently provided by PHPBEAN are:
1. FILE file library class. Provides file upload and download encapsulation classes.
2. Page paging class. JS and PHP pagination classes.
3. IMG image processing class. Currently only verification code program is provided
4. Validate verification class. Supports use with zend Framework's verification class. For details, please refer to how to extend ZF - Validate extension http://www.phpobject.net/blog/read.php/110.htm
5. Lucene full-text search (coming soon). It provides a secondary development interface based on zend lucene. You may refer to the design of weblucene and nutch. Regarding Chinese word segmentation, you can refer to using lucene of zend Framework for full-text search - Chinese word segmentation
http://www.phpobject.net/blog/read.php/113.htm
Phpbean is committed to providing programmers with a highly flexible and highly Transparent frame.

The above introduces the PHP framework and the Phpbean description of the PHP framework, including the content of the PHP framework. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template