How do I use this?!

Issue #13 invalid
James created an issue

So I just cloned in your repo as a submodule, but nothing works 'out of the box', even the examples throw errors like (trying the issues.php example):

Warning: require_once(/Applications/MAMP/htdocs/bitbucket-api/API/example/repositories/../../vendor/autoload.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/bitbucket-api/API/example/repositories/issues.php on line 5

Fatal error: require_once(): Failed opening required '/Applications/MAMP/htdocs/bitbucket-api/API/example/repositories/../../vendor/autoload.php' (include_path='.:/Applications/MAMP/bin/php/php5.4.10/lib/php') in /Applications/MAMP/htdocs/bitbucket-api/API/example/repositories/issues.php on line 5

How do I setup my project directory to make this all work? You require_once() autoload.php, which isn't even part of your repository?? Totally confusing :( Maybe it would be helpful to include some install instructions in your readme?? And if Buzz is a requirement, that should be documented as well - as they don't have any documentation either. Frustrating!

Comments (2)

  1. Alexandru Guzinschi

    This library is intended to be used through composer, not as a git submodule.

    • autoload.php will be written by composer.

    • all the dependencies (like buzz) will also be installed by composer.

  2. James reporter

    Ahhh well that makes sense. Thank you for explaining, I'll get composer setup and install via composer. Thanks for clarifying!

  3. Log in to comment