Integrates the composer autoloader into pimcore. After installing, you can manage libraries with composer and use them with your pimcore installation.
- Install the plugin
- Follow the composer/composer installation instructions to install libraries into /vendor
- Develop using the newly installed libraries
- If you are using a SCM system (e.g. git, svn) on your project you'll probably want to ignore/exclude the
/vendor
directory
We want to use Symfony's console component. First, create a composer.json
file specifying the dependency.
{
"require": {
"symfony/console": "*"
}
}
Install composer if you don't have done so yet.
$ curl -s https://getcomposer.org/installer | php
Use composer to install the needed component(s) into /vendor
and create an autoloader file we can use later.
$ php composer.phar install
Use the library in your project.
<?php
class ExampleCommand extends Symfony\Component\Console\Command\Command
{
// do fancy stuff here
}