|
13 роки тому | |
---|---|---|
bin | 13 роки тому | |
doc | 13 роки тому | |
res | 13 роки тому | |
src | 13 роки тому | |
tests | 13 роки тому | |
.gitignore | 13 роки тому | |
.travis.yml | 13 роки тому | |
CHANGELOG.md | 13 роки тому | |
LICENSE | 14 роки тому | |
PORTING_INFO | 14 роки тому | |
README.md | 13 роки тому | |
composer.json | 13 роки тому | |
composer.lock | 13 роки тому | |
phpunit.xml.dist | 13 роки тому |
Composer is a package manager tracking local dependencies of your projects and libraries.
See http://getcomposer.org/ for more information and documentation.
Download the composer.phar
executable or use the installer.
$ curl -s http://getcomposer.org/installer | php
Create a composer.json defining your dependencies. Note that this example is a short version for applications that are not meant to be published as packages themselves. To create libraries/packages please read the guidelines.
{
"require": {
"monolog/monolog": ">=1.0.0"
}
}
Run Composer: php composer.phar install
Browse for more packages on Packagist.
To run tests, or develop Composer itself, you must use the sources and not the phar file as described above.
git clone https://github.com/composer/composer.git
composer.phar
executablephp composer.phar install
Since Composer works with the current working directory it is possible to install it in a system wide way.
cd /usr/local/bin
curl -s http://getcomposer.org/installer | php
chmod a+x composer.phar
cd /path/to/my/project
composer.phar install
Installing via this homebrew formula will always get you the latest Composer version.
brew uninstall composer ; brew install --HEAD https://raw.github.com/gist/1574469/composer.rb
cd /path/to/my/project
composer.phar install
You will see a warning "Warning: Cannot verify package integrity"; however, this is benign and expected.
Running php composer.phar self-update
or equivalent will update a phar
install with the latest version.
All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.
Fork the project, create a feature branch, and send us a pull request.
To ensure a consistent code base, you should make sure the code follows the Coding Standards which we borrowed from Symfony.
If you would like to help take a look at the list of issues.
The developer mailing list is on google groups IRC channels are available for discussion as well, on irc.freenode.org #composer for users and #composer-dev for development.
PHP 5.3+
Nils Adermann - naderman@naderman.de - http://twitter.com/naderman - http://www.naderman.de
Jordi Boggiano - j.boggiano@seld.be - http://twitter.com/seldaek - http://seld.be
See also the list of contributors who participated in this project.
Composer is licensed under the MIT License - see the LICENSE file for details
This project's Solver started out as a PHP port of openSUSE's Libzypp satsolver.