mahmoodr786/yelp-apiv3

Yelp API V3 PHP Class

Installs: 168

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/mahmoodr786/yelp-apiv3

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

This package is not auto-updated.

Last update: 2025-10-20 18:55:20 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);