mahmoodr786/yelp-apiv3

Yelp API V3 PHP Class

dev-master 2016-12-09 13:23 UTC

This package is not auto-updated.

Last update: 2022-05-23 02:15:44 UTC


README

A PHP Class for Yelp API V3

  • Manages access token
  • Adds the token to headers with every request.

Installation

composer require mahmoodr786/yelp-apiv3

Load the class.

require "vendor/autoload.php";
use mahmoodr786\YelpAPI\YelpAPI;

Create an instance

$api = new YelpAPI(
    'ClientID',
    'Secret'
);

Query

$params = [
	'term' => 'food',
	'radius' => '500',
	'location' => '84123'
];
$data = $api->getData('businesses/search', $params);
print_r($data);