Since the previous write Web project in the ready-made PHP framework, it is generally only focused on the use and optimization within the framework. However, there are few features and features in PHP that are very characteristic and have little or no insight. recently doing project research time occasionally notice a more common concept in PHP: Phar, The term is used in the installation of composer occasionally, rarely in-depth understanding of the real connotation, see the direct neglect of the specific content is not carefully studied. The new project before the official start of this period of research, a rough fill of the phar aspects of the knowledge of the magical discovery of this good thing, app packaging features.
Presumably, the individual can be understood as: Phar can be seen as a PHP5.2.0 built-in Phar class, this class can be a number of PHP files or even a ready-made PHP application to write to a file named Phar Suffix. The archived files can be run directly from the command line or by other means. In a nutshell, this is a package of Java-like jars that PHP provides. This feature enables the modular design of PHP engineering.
Time reasons for the moment to use this article as the Phar of the road to climb the hole to forget later. The following provides a relevant basic information for the first contact of the concept of the colleague to understand the reference (great God detour):
Http://www.webhek.com/post/packaging-your-php-apps-with-phar.html
Personally think this note is really very easy to understand, very suitable for people who have just begun to contact Phar Learning.
Introduction to the Phar Series