Skip to content

Instantly share code, notes, and snippets.

@derak-kilgo
Created October 28, 2014 04:12
Show Gist options
  • Save derak-kilgo/ff9377719a1b8e4877c8 to your computer and use it in GitHub Desktop.
Save derak-kilgo/ff9377719a1b8e4877c8 to your computer and use it in GitHub Desktop.
Load official pchart with composer
{
"name": "sample/sample-app",
"description": "How to add pchart to your application via composer",
"license": "GPLv3",
"repositories": [
{
"type": "package",
"package": {
"name": "pchart/pchart",
"version": "2.1.4",
"dist": {
"url": "http://www.pchart.net/release/pChart2.1.4.tar.gz",
"type": "tar"
},
"autoload": {
"classmap": [
"class/"
]
}
}
}
],
"require": {
"pchart/pchart": "2.1.4"
}
}
@derak-kilgo
Copy link
Author

There are about a dozen pchart forks on the packagist and none of them are the official pchart library.
Add this repository and require clause to your composer.json, and it will pull in and autoload the official pchart library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment