Introduction to the Phar Series

Source: Internet
Author: User

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

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.