phive
Phive is a command-line tool used for managing and installing PHP dependencies. It simplifies the process of handling PHP package management by integrating with popular package managers like Composer and PEAR.
One of the key features of Phive is the ability to automatically install and update a specific version of a PHP dependency. This ensures that the correct and compatible version of a dependency is always used.
Phive uses a configuration file called "phive.xml" which lists all the required PHP dependencies for a project, along with their versions. It then fetches the specified versions of these dependencies and stores them in a central location, making them easily accessible for all projects.
Phive supports the concept of key servers, where developers can store their GnuPG keys for verifying the authenticity and integrity of PHP packages. This ensures that only trusted packages are installed.
Another important feature of Phive is the ability to handle global installations of PHP tools effortlessly. With a single command, you can install and manage global PHP tools without cluttering your project dependencies.
Phive provides a way to ensure the integrity of your installed dependencies by automatically verifying their SHA-1 and SHA-256 checksums, guaranteeing that the packages are not tampered with.
It also supports the distribution of your PHP packages using Phar archives, enabling easy distribution and installation of your own projects or libraries.
Phive integrates well with build tools and continuous integration systems, making it easy to incorporate into your development workflow.
It has extensive command-line options, providing flexibility and control over all the installation and management processes.
Phive is cross-platform and can be used on various operating systems such as Windows, macOS, and Linux, making it accessible to a wide range of PHP developers.
List of commands for phive:
-
phive:tldr:1ba8f phive: Install a specified Phar globally.$ phive install ${select} --globaltry on your machineexplain this command
-
phive:tldr:443da phive: List all available commands.$ phive helptry on your machineexplain this command
-
phive:tldr:6e594 phive: Display a list of available aliased Phars.$ phive listtry on your machineexplain this command
-
phive:tldr:946a5 phive: Remove unused Phar files.$ phive purgetry on your machineexplain this command
-
phive:tldr:acfb5 phive: Install a specified Phar to a target directory.$ phive install ${select} --target ${path-to-directory}try on your machineexplain this command
-
phive:tldr:d4750 phive: Remove a specified Phar file.$ phive remove ${select}try on your machineexplain this command
-
phive:tldr:ea937 phive: Update all Phar files to the latest version.$ phive updatetry on your machineexplain this command
-
phive:tldr:f06fb phive: Install a specified Phar to the local directory.$ phive install ${select}try on your machineexplain this command