Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer support #235

Merged
merged 4 commits into from
Nov 27, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,35 @@ _(*) Optional counterpart formats to increase HTML5 cross-browser support._
* simple install using `bower install jplayer`
* see <http://bower.io/> 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).

Expand Down
45 changes: 45 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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"]
}
}
}
}