Home > Backend Development > PHP Tutorial > Xin Xing briefly analyzes the PSR-0 specification

Xin Xing briefly analyzes the PSR-0 specification

WBOY
Release: 2016-07-30 13:30:27
Original
1002 people have browsed it

Generally speaking, our PSR-0 specification can usually be divided into the following five parts:

(1) The class name space must be consistent with the absolute path

(2) The first part of the class name Letters must be capitalized

(3) Except for the entry file, other php files must have only one class

(4) The php file must be able to be automatically loaded, and there must be no include, etc. (5) Single entrance

Copyright statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

The above introduces Xin Xing's brief analysis of the PSR-0 specification, including aspects of it. 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