On Github underparnv / presentation-composer
Reno php
Introduction to Composer
Cross-platform compatible requiring only > PHP version 5.3.2
Ones that have already been patched!
You specify what your project needs are in writing
$ curl -sS http://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
$ composer --version
$ composer Warning: This development build of composer is over 30 days old. It is recommended to update it by running "composer self-update" to get the latest version.
$ composer self-update
{ "name": "My Simple Laravel Project", "require": { "laravel/laravel": "v4.0.0" }, "authors": [ { "name": "David Mosher", "email": "dmosher@noip.com" } ] }
$ composer install
Packagist.org
{ "repositories": [ { "type": "vcs", "url": "https://dmosher@bitbucket.org/dmosher/presentation.git" } ] }
1.0.3
>=1.0 >=1.2,<2.0
1.0.*
~1.2
~1.2.3
Platform (Virtual) Packages
"php": ">=5.3.2"
"ext-gd": "*"
"lib-curl": ">=7.3"
<?php require 'vendor/autoload.php';
You now have full access to any of the namespaced classes!
PSR-0
"autoload": { "psr-0": { "Mosher\\Presentation\\": "src/" } }
Classmap
"autoload": { "classmap": [ "lib/", "ext/library.php" ] }
Directories / Individual Files
"autoload": { "files": [ "ext/functions.php" ] }