I'm trying to include a PHP library called Geocod.io in my custom module. I am also trying to use the Libraries API. So far I have:
- Downloaded geocod.io to sites/all/libraries
composer install
'ed in sites/all/libraries/geocodioStarted creating a
hook_libraries_info()
function with the following contents:return array( 'geocodio' => array( 'name' => 'Geocod.io', 'vendor url' => 'http://geocod.io', 'download url' => 'https://github.com/davidstanley01/geocodio-php', 'version arguments' => array(), 'files' => array( 'php' => array('geocodio/vendor/autoload.php'), ), ), );
I have no idea what to put for 'files', is the path the the autoloader the right thing to do? Are these two ways of including things even compatible? I'm a bit stumped as to what to do next, I want to use the geocod.io library and I want to do it the most correct way. Other questions that mention these issues don't seem to include anything about how to list the files/versions.