composer/composer
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
composer/ca-bundle | 1.5.0 | - | MIT | prod | |
composer/class-map-generator | 1.1.1 | - | MIT | prod | |
composer/metadata-minifier | 1.0.0 | 3.6 kB | MIT | prod | |
composer/pcre | 3.1.3 | - | MIT | prod | |
composer/semver | 3.4.0 | 28.21 kB | MIT | prod | |
composer/spdx-licenses | 1.5.8 | - | MIT | prod | |
composer/xdebug-handler | 3.0.5 | - | MIT | prod | |
justinrainbow/json-schema | v5.2.13 | 56.65 kB | MIT | prod | |
psr/log | 3.0.0 | 6.77 kB | MIT | prod dev | |
react/promise | v3.1.0 | - | MIT | prod | |
seld/jsonlint | 1.10.2 | 15.79 kB | MIT | prod | |
seld/phar-utils | 1.2.1 | 6.02 kB | MIT | prod | |
seld/signal-handler | 2.0.2 | 7.32 kB | MIT | prod | |
symfony/console | v6.4.7 | - | MIT | prod | |
symfony/filesystem | v7.0.7 | - | MIT | prod dev | |
symfony/finder | v7.0.7 | - | MIT | prod | |
symfony/polyfill-php73 | v1.29.0 | 4.15 kB | MIT | prod | |
symfony/polyfill-php80 | v1.29.0 | - | MIT | prod | |
symfony/polyfill-php81 | v1.29.0 | 4.96 kB | MIT | prod | |
symfony/process | v7.0.7 | - | MIT | prod dev |
Composer/composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. Composer is not a package manager in the same sense as Yum or Apt are, rather it deals with packages or libraries on a project basis, installing them in a directory (e.g. vendor) inside your project.
Using Composer/composer is quite straightforward. To begin, you must first download and install Composer by following the official instructions. After installation, usage of composer typically involves creating and modifying a composer.json file in your project root, which defines your project dependencies. Here's a basic example of a composer.json file:
{
"require": {
"vendor/package-name": "^1.0"
}
}
On your command line, you would then navigate to your project's root directory (the directory containing composer.json), and run the install command:
composer install
This would fetch the specified package and install it in the project's vendor directory, along with any of the package's dependencies.
Also, if you want to update or add more dependencies, you would simply modify your composer.json file (or use the require command), and then run:
composer update
Comprehensive documentation for Composer/composer can be found on the Composer official website. The documentation covers everything from getting started with installation and basic usage, to a full reference of commands and their options. For more in-depth understanding on how Composer works, you can explore the articles and tutorials available in the Composer documentation, which is accessible via the following link: https://getcomposer.org/doc/.