I'm trying to use the php-opencloud library with Laravel 4 (it's my first time with it, I'm a bit intimidated...)
I have added this to my composer.json, tried a composer update, which downloaded the lib correctly, but what's next? How can I autoload it?
"repositories": {
"php-opencloud": {
"type": "package",
"package": {
"name": "rackspace/php-opencloud",
"version": "1.4.1",
"source": {
"url": "https://github.com/rackspace/php-opencloud.git",
"type": "git",
"reference": "origin/master"
}
}
}
}
Most of the packages you install via Composer make use of autoloading:
That is basically just including a single file in your bootstrap and you're ready to go:
require 'vendor/autoload.php';
That is relative to the location where you placed your composer.json
file.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.