Skip to content
This repository has been archived by the owner on Sep 28, 2019. It is now read-only.

faustbrian/yelp

Repository files navigation

Yelp PHP Client

Build Status PHP from Packagist Latest Version License

Installation

Require this package, with Composer, in the root directory of your project.

$ composer require plients/yelp

Usage

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
]);

Testing

$ phpunit

Security

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.

Credits

License

Mozilla Public License Version 2.0 (MPL-2.0).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages