davidtsadler / ebay-sdk-examples

Several examples of using the eBay SDK for PHP
http://devbay.net
Apache License 2.0
184 stars 100 forks source link

error 01-search-for-items.php on line 42 #55

Closed rodriayala closed 4 years ago

rodriayala commented 6 years ago

Hi i try to use that app and i have that problem:

Fatal error: Class 'DTS\eBaySDK\Browse\Services\BrowseService' not found in /var/www/html/ebay-sdk-examples/browse/01-search-for-items.php on line 42

Any idea what it could be?

thanks.

rbur0425 commented 6 years ago

You need to autoload the package. Are you using composer?

Do you have this at top of code?

/**
 * Include the SDK by using the autoloader from Composer.
 */
require __DIR__.'/../vendor/autoload.php';
/**
 * Include the configuration values.
 *
 * Ensure that you have edited the configuration.php file
 * to include your application keys.
 */
$config = require __DIR__.'/../configuration.php';