{"id":6826,"date":"2014-04-23T08:10:13","date_gmt":"2014-04-23T08:10:13","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/phpdox-composer-not-including-vendor-directory-collection-of-common-programming-errors\/"},"modified":"2014-04-23T08:10:13","modified_gmt":"2014-04-23T08:10:13","slug":"phpdox-composer-not-including-vendor-directory-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/phpdox-composer-not-including-vendor-directory-collection-of-common-programming-errors\/","title":{"rendered":"phpdox composer not including vendor directory-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m tring to install phpdox https:\/\/github.com\/theseer\/phpdox using composer. I&#8217;ve successfully installed it locally, but when I try on my server (centos 5.9) composer declares all is ok, but running phpdox throws:<\/p>\n<pre><code>Warning: require(TheSeer\/DirectoryScanner\/autoload.php): failed to open stream: No such file or directory in \/opt\/phpdox\/phpdox.php on line 45\nFatal 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\n<\/code><\/pre>\n<p>The <code>TheSeer\/DirectoryScanner<\/code> dependency is in the <code>vendor<\/code> directory of <code>phpdox<\/code>, so I coppied it into the root dir of <code>phpdox<\/code> 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.<\/p>\n<p>Think the issue might be with my installation of composer? I have downlaoded the <code>composer.phar<\/code> to <code>\/opt<\/code>, and as centos 5.9 doesn&#8217;t have openssl 1.0.1 I grabbed composer using: php -r &#8220;eval(&#8216;?&gt;&#8217;.file_get_contents(&#8216;https:\/\/getcomposer.org\/installer&#8217;));&#8221;<\/p>\n<p>So to make phpdox I&#8217;m using the commands:<\/p>\n<pre><code>cd \/opt\/phpdox\nphp ..\/composer.phar install\n<\/code><\/pre>\n<p>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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m tring to install phpdox https:\/\/github.com\/theseer\/phpdox using composer. I&#8217;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 &#8216;TheSeer\/DirectoryScanner\/autoload.php&#8217; (include_path=&#8217;.:\/usr\/lib\/php:\/usr\/local\/lib\/php&#8217;) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6826","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6826","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6826"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6826\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}