Download the PHP package moazam1/yelp-php without Composer
On this page you can find all versions of the php package moazam1/yelp-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yelp-php
Yelp PHP Client
A PHP client for authenticating with Yelp using OAuth and consuming the API.
Install
Via Composer
Usage
This package currently supports v2
and v3
(Fusion) of the Yelp API. Each version of the Yelp API maps to a different client, as the APIs are very different. Each client has separate documentation; links provided below.
Create client
Each version of the Yelp API maps to a different client, as the APIs are very different. A client factory is available to create appropriate clients.
v2 Client Example
v3 Client Example
Prior to December 7, 2017
accessToken
was required to authenticate requests. Since then,apiKey
is the preferred authentication method. This library supports bothaccessToken
andapiKey
, prioritizingapiKey
overaccessToken
if both are provided.https://www.yelp.com/developers/documentation/v3/authentication#where-is-my-client-secret-going
Version | Constant | Documentation |
---|---|---|
v2 | Stevenmaguire\Yelp\Version::TWO |
API-GUIDE-v2.md |
v3 | Stevenmaguire\Yelp\Version::THREE |
API-GUIDE-v3.md |
Exceptions
If the API request results in an Http error, the client will throw a Stevenmaguire\Yelp\Exception\HttpException
that includes the response body, as a string, from the Yelp API.
Advanced usage
Both the v2 client expose some public methods that allow overiding default behavior by providing alternative HTTP clients and requests.
Upgrading with Yelp API v2 support from yelp-php 1.x
to yelp-php 2.x
Testing
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.