The pear/pear-core-minimal is a Composer package that serves as a minimal set of the PEAR core files often utilized in PEAR packages. This lightweight version of the PEAR core follows the pear-core repository and receives updates whenever a new PEAR version is released. By introducing a subset of crucial elements, this package is designed to function efficiently as a Composer package dependency.
To utilize pear/pear-core-minimal, you first need to incorporate it as a dependency in your Composer package. This can be done through the Composer command line interface. For example, you can run:
composer require pear/pear-core-minimal
Following the installation, you'll often find that these core files: OS/Guess.php
, PEAR.php
, PEAR/Error.php
, PEAR/ErrorStack.php
, and System.php
will make up part of your development toolset. Note that PEAR/Error.php
is just a dummy file that includes PEAR.php
to ensure uninterrupted functioning of autoloaders.
Therefore, you can now use the PEAR
functionality or any other class from the core minimal set like this:
require 'vendor/autoload.php';
use PEAR;
// now you can use PEAR methods
PEAR::someMethod();
The core documentation for pear/pear-core-minimal can be found in its GitHub repository at https://github.com/pear/pear-core-minimal.git. Here, you can access detailed information about the package including its unique functionalities and the updates that follow each new PEAR version release. However, since this is a minimal set, it takes reference from the main pear-core
repository, which might provide deeper insight into how the full core works. Ensure to check the README file in the aforementioned repository for basic info and usage. For more detailed usage, refer to the PEAR documentation at http://pear.php.net/manual/.