Raphael v2.1.2
// composer.json
{
"require": {
// ...
"bmatzner/raphael-bundle": "*"
}
}// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Bmatzner\RaphaelBundle\BmatznerRaphaelBundle(),
// ...
);
}$ php composer.phar update bmatzner/raphael-bundleGiven your server's public directory is named "web", install the public vendor resources
$ php app/console assets:install webOptionally, use the --symlink attribute to create links rather than copies of the resources
$ php app/console assets:install --symlink webRefer to the desired files in your HTML template, e.g.
<script type="text/javascript" src="{{ asset('bundles/bmatznerraphael/js/raphael.min.js') }}"></script>Refer to the source code of the included files for license information