steam learn: composer
TRANSCRIPT
23rd of October 2014
Composer
Json
Lock
Packagist
Vendor
Composer.json
{ "name": "my-awesome/project", "description": "My Awesome Description", "require": { "hoa/bench": "2.14.09.23", "hoa/core": "~2.0", "hoa/console": ">=1.0", "hoa/compiler": "2.*", "hoa/string": "dev-master", }, "require-dev": { "atoum/atoum": "dev-master@dev" }, "license": "New BSD", "authors": [ { "name": "John Doe", "email": "[email protected]" } ], "minimum-stability": "dev"}
23rd of October 2014
Composer
Json
Lock
Packagist
Vendor
Composer.lock{ "hash": "f5b9cca4b681b9b35e11add59c5d0725", "packages": [ { "name": "hoa/console", "version": "dev-master", "target-dir": "Hoa/Console", "source": { …, "reference": "af342bffe8…" }, …, "require": { "hoa/core": "~2.0", "php": ">=5.4.0" }, "require-dev": { "atoum/atoum": "dev-master" }, …, "time": "2014-09-26 08:37:52" },… ], "minimum-stability": "dev", …}
23rd of October 2014
Composer
Json
Lock
Packagist
Vendor
Vendorvendor/├── atoum│ └── atoum├── autoload.php├── bin│ ├── atoum -> ../atoum/atoum/bin/atoum│ └── hoa -> ../hoa/core/Hoa/Core/Bin/hoa├── composer│ ├── autoload_classmap.php│ ├── autoload_files.php│ ├── autoload_namespaces.php│ ├── autoload_psr4.php│ ├── autoload_real.php│ ├── ClassLoader.php│ └── installed.json└── hoa ├── bench ├── compiler ├── console ├── core ├── file ├── iterator ├── math ├── regex ├── stream ├── string └── visitor
16 directories, 10 files, 2 symlinks
23rd of October 2014
Installation
curl -sS https://getcomposer.org/installer | php
ou
php -r "readfile('https://getcomposer.org/installer');" | php
23rd of October 2014
Commands to know
● $ composer init● $ composer validate● $ composer install● $ composer update● $ composer require hoa/core:~1.0● $ composer remove hoa/compiler● $ composer dump-autoload● $ composer self-update
23rd of October 2014
Join the community !(in Paris)
Social networks :● Follow us on Twitter : https://twitter.com/steamlearn● Like us on Facebook : https://www.facebook.com/steamlearn
SteamLearn is an Inovia initiative : inovia.fr
You wish to be in the audience ? Contact us at [email protected]