@rasmus
¿Qué es composer?
Abril 2011 -> Marzo 2012
https://getcomposer.org/doc/00-intro.md
$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
$ php composer-setup.php
$ php -r "unlink('composer-setup.php');"
$ mv composer.phar /usr/local/bin/composer
$ composer self update
$ composer init
{
"name": "smmd/test",
"require": {
"guzzlehttp/guzzle": "^6.3"
},
"require-dev": {
"phpunit/phpunit": "^7.5"
},
"authors": [
{
"name": "Sagrario Meneses",
"email": "sagrario.meneses@gmail.com"
}
]
}
$ composer search <dependency name>
$ composer require package/dependency-name
$ composer update author-name/library-name
$ composer install
$ composer update
gitignore
{
"name": "smmd/test",
"require": {
"smmd/test-package": "^1.0"
},
"repositories": [
{
"type": "vcs",
"url": “/full/path/to/the/local/smmd/test-package"
},
"authors": [
{
"name": "Sagrario Meneses",
"email": "sagrario.meneses@gmail.com"
}
]
}