phpdox composer not including vendor directory-Collection of common programming errors
I’m tring to install phpdox https://github.com/theseer/phpdox using composer. I’ve successfully installed it locally, but when I try on my server (centos 5.9) composer declares all is ok, but running phpdox throws:
Warning: require(TheSeer/DirectoryScanner/autoload.php): failed to open stream: No such file or directory in /opt/phpdox/phpdox.php on line 45
Fatal error: require(): Failed opening required 'TheSeer/DirectoryScanner/autoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /opt/phpdox/phpdox.php on line 45
The TheSeer/DirectoryScanner
dependency is in the vendor
directory of phpdox
, so I coppied it into the root dir of phpdox
and the above file was found but the next dependency threw an error. As I have said on my localhost (ubuntu 13.04) all works.
Think the issue might be with my installation of composer? I have downlaoded the composer.phar
to /opt
, and as centos 5.9 doesn’t have openssl 1.0.1 I grabbed composer using: php -r “eval(‘?>’.file_get_contents(‘https://getcomposer.org/installer’));”
So to make phpdox I’m using the commands:
cd /opt/phpdox
php ../composer.phar install
Like I said the only difference between my centos server and my ubuntu localhost is the way I downloaded composer, which is making me think that this is a composer issue. Any help would be well appreciated.