Services_Openstreetmap
Services_Openstreetmap copied to clipboard
Need installation instructions
How is one supposed to figure out how the hell to get the included examples to work?
I have installed composer and run composer.phar install, but nothing works out of the box. OpenStreetMap.php itself has some hard-coded require() calls to libraries installed via composer; even removing those and including the autoloader generated by composer (in the vendor folder) produces other require() errors coming from the libraries themselves (e.g. equire_once(Net/URL2.php): failed to open stream: No such file or directory in /..../examples/vendor/pear/http_request2/HTTP/Request2.php
)
So either the composer package information is screwed up, or some instructions are needed in order to set up Services_Openstreetmap properly.
Copy/paste the example files you want to try to the /Services_Openstreetmap
parent folder
Nope, doesn't work
Warning: require_once(HTTP/Request2.php): failed to open stream: No such file or directory in /home/path/to/Services_Openstreetmap/Services/OpenStreetMap.php on line 16
And even if it did (or if you are supposed to copy and paste the example file somewhere other than /Services_Openstreetmap
), that should be in the readme
If you mean the parent _of_ /Services_Openstreetmap
, still doesn't work:
Fatal error: require_once(): Failed opening required 'Services/OpenStreetMap.php' (include_path='/home/teo/xxx:.:/opt/lampp/lib/php') in /home/teo/xxx/tmp/example3_genericdemo.php on line 21
It would be good to have it work without need for Composer and especially without need for PEAR.
https://github.com/pear/Net_URL2 copy Net folder. all required libs available in pear root directory