diff --git a/README.md b/README.md index e674e58b..8eb40179 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,35 @@ _(*) Optional counterpart formats to increase HTML5 cross-browser support._ * simple install using `bower install jplayer` * see for more information. +## Composer install + +Install jPlayer via composer by adding the following lines to your `composer.json` in your project: + + // ... + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/happyworm/jPlayer" + } + ] + // ... + "require": { + // ... + "happyworm/jPlayer": "2.*" + // ... + } + // ... + "config": { + "component-dir": "your/desired/asset/path" + }, + // ... + +Then execute the following: + + php composer.phar update + +Composer will now download all components and install the needed files into `your/desired/asset/path`, ready to use. + ## License [jPlayer](http://jplayer.org/) is licensed under the [MIT license](http://opensource.org/licenses/MIT). diff --git a/composer.json b/composer.json new file mode 100644 index 00000000..b859b7bb --- /dev/null +++ b/composer.json @@ -0,0 +1,45 @@ +{ + "name": "happyworm/jplayer", + "description": "jPlayer allows you to create a media player with a consistent interface and experience across all browsers.", + "type": "component", + "homepage": "http://jplayer.org/", + "license": "MIT", + "keywords": [ + "audio", + "video", + "media", + "player", + "jplayer", + "html5", + "streaming" + ], + "authors": [ + { + "name": "Mark J Panaghiston", + "email": "markp@happyworm.com" + } + ], + "require": { + "robloach/component-installer": "*" + }, + "suggest": { + "components/jquery": ">=1.7.2" + }, + "extra": { + "component": { + "scripts": [ + "jquery.jplayer/jquery.jplayer.js" + ], + "files": [ + "jquery.jplayer/Jplayer.swf", + "add-on/*.js", + "popcorn/player/*.js", + "skin/blue.monday/*", + "skin/pink.flag/*" + ], + "shim": { + "deps": ["jquery"] + } + } + } +} \ No newline at end of file