Require this package, with Composer, in the root directory of your project.
$ composer require plients/yelp
use Plients\Config;
$client = new Plients\Yelp\Client();
$client->setConfig(new Config([
'consumerKey' => 'CONSUMER_KEY',
'consumerSecret' => 'CONSUMER_SECRET',
'token' => 'TOKEN',
'tokenSecret' => 'TOKEN_SECRET',
]));
$response = $client->api('Search')->search([
'term' => 'Sushi',
'location' => 'Chicago, IL'
]);
$response = $client->api('Search')->search([
'phone' => '867-5309',
'location' => 'Chicago, IL'
]);
$response = $client->api('Search')->getBusiness('union-chicago-3');
$response = $client->api('Search')->getBusiness('union-chicago-3', [
'actionlinks' => true
]);
$ phpunit
If you discover a security vulnerability within this package, please send an e-mail to hello@basecode.sh. All security vulnerabilities will be promptly addressed.
Mozilla Public License Version 2.0 (MPL-2.0).