mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-30 08:39:57 +02:00
Updated wording on Composer / PEAR stuff.
This commit is contained in:
@@ -5,7 +5,7 @@ anchor: pear
|
||||
|
||||
## PEAR {#pear_title}
|
||||
|
||||
Another veteran package manager that many PHP developers enjoy is [PEAR][1]. It behaves much the same way as Composer,
|
||||
A veteran package manager that some PHP developers enjoy is [PEAR][1]. It behaves similarly to Composer,
|
||||
but has some notable differences.
|
||||
|
||||
PEAR requires each package to have a specific structure, which means that the author of the package must prepare it for
|
||||
@@ -17,11 +17,11 @@ version conflicts between two projects arise.
|
||||
|
||||
### How to install PEAR
|
||||
|
||||
You can install PEAR by downloading the phar installer and executing it. The PEAR documentation has detailed
|
||||
[install instructions][2] for every operating system.
|
||||
You can install PEAR by downloading the `.phar` installer and executing it. The PEAR documentation has
|
||||
detailed [install instructions][2] for every operating system.
|
||||
|
||||
If you are using Linux, you can also have a look at your distribution package manager. Debian and Ubuntu, for example,
|
||||
have an apt ``php-pear`` package.
|
||||
If you are using Linux, you can also have a look at your distribution package manager. Debian and Ubuntu,
|
||||
for example, have an apt `php-pear` package.
|
||||
|
||||
### How to install a package
|
||||
|
||||
@@ -56,7 +56,7 @@ handle your PEAR dependencies. This example will install code from `pear2.php.ne
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
The first section `"repositories"` will be used to let Composer know it should "initialise" (or "discover" in PEAR
|
||||
The first section `"repositories"` will be used to let Composer know it should "initialize" (or "discover" in PEAR
|
||||
terminology) the pear repo. Then the require section will prefix the package name like this:
|
||||
|
||||
> pear-channel/Package
|
||||
|
Reference in New Issue
Block a user