PHP Packages Finding Information About a Package - Web Development and Design | Tutorial for Java, PHP, HTML, Javascript PHP Packages Finding Information About a Package - Web Development and Design | Tutorial for Java, PHP, HTML, Javascript

Breaking

Post Top Ad

Post Top Ad

Thursday, July 18, 2019

PHP Packages Finding Information About a Package

PHP Packages



Finding Information About a Package

Problem

You want to gather information about a package, such as a description of what it does, who maintains it, what version you have installed, and which license it’s released under.

Solution

Use Pyrus’s info command:

       % php pyrus.phar info pear/HTTP2

You can also view the package’s home page.

Discussion

The info command provides summary information about a package:

       % php pyrus.phar info pear/HTTP2
       Pyrus version 2.0.0a4 SHA-1: 72271D92C3AA1FA96DF9606CD538868544609A52
       Using PEAR installation found at /Users/rasmus/lib
       HTTP2 (pear.php.net Channel)
       --------------------------------------------------------------------------------------------------------
       Package type: Version:                  1.1.1 (API 1.1.0), Stability:                      stable (API stable)
       Release Date: 2013-10-23 15:33:41
       Package Summary: Miscellaneous HTTP utilities
       Package Description Excerpt:
            The HTTP class is a class with static methods for doing
            miscellaneous HTTP related stuff like date formatting,
            language negotiation or HTTP redirection....
       (`php pyrus.phar info pear/HTTP2 description` for full description)
       Release Notes Excerpt:
    
            - Fix parsing arguments values without quotes...
       (`php pyrus.phar info pear/HTTP2 notes` for full release notes)

If you don’t have the package installed, it will ask the remote server for a description.

For further details about the package description or release notes, append description or notes to your request.

The package home page provides a more complete view and also provides links to earlier releases, a change log, and browsable access to the package’s repository. You can also view package download statistics. 
Figure HTTP2 Package Information page on the PEAR website

No comments:

Post a Comment

Post Top Ad