Download the PHP package gerfaut/yelpv3-php without Composer
On this page you can find all versions of the php package gerfaut/yelpv3-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yelpv3-php
DEPRECATED - Yelp PHP Client
DEPRECATED
The base project of this fork is now officially supporting YELP V3 Fusion : https://github.com/stevenmaguire/yelp-php.
Use that one instead.
A PHP client for authenticating with Yelp using OAuth2 and consuming the Fusion API (v3).
More information about Yelp Fusion (v3) API.
Install
Via Composer
Usage
Create client
Search by keyword and location
Yelp documentation and available parameters : https://www.yelp.com/developers/documentation/v3/business_search
Search by phone number
Yelp documentation : https://www.yelp.com/developers/documentation/v3/business_search_phone
Locate details for a specific business by Yelp business id
Yelp documentation : https://www.yelp.com/developers/documentation/v3/business
Get reviews for a specific business by Yelp business id
Yelp documentation : https://www.yelp.com/developers/documentation/v3/business_reviews
Retrieve autocomplete suggestions for keywords, businesses and categories, based on the input text
Yelp documentation : https://www.yelp.com/developers/documentation/v3/autocomplete
Retrieve list of businesses which support certain transactions.
Yelp documentation : https://www.yelp.com/developers/documentation/v3/transactions_search
Currently 'delivery' is the only transaction type supported by Yelp and is the default value.
Configure defaults
Exceptions
If the API request results in an Http error, the client will throw a Gerfaut\Yelp\Exception\ApiException
that includes the response body, as a string, from the Yelp API.
If the Deserialization process results in an error, the client will throw a Gerfaut\Yelp\Exception\DeserializeException
that includes the Exception from JMS\Serialize librabry.
Testing
Using your global phpunit install:
Or using the vendors (from the root folder):
Contributing
Please see CONTRIBUTING for details.
Credits
- Christophe Leemans
- Steven Maguire for his v2 library
- compworkmail for his very nice start of v3 implementation
- All Contributors
License
The MIT License (MIT). Please see License File for more information.