https://github.com/sensorario/yelp-sample-code
https://github.com/sensorario/yelp-sample-code
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sensorario/yelp-sample-code
- Owner: sensorario
- Created: 2016-02-25T06:32:20.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-05T15:16:16.000Z (over 10 years ago)
- Last Synced: 2025-03-13T02:31:36.419Z (over 1 year ago)
- Language: PHP
- Size: 540 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.php
Awesome Lists containing this project
README
# PHP Yelp Wrapper
This is a wrapper for yelp api. It allow some nice requests, like /search/{something}/in/{location} instead of a complex query. Or /phone/+390000000000. It also use twig to render the content. Actually just json content.
## Configuration
Copy app/config.yml.dist in your app/config.yml file and put here your Yelp configurations.
```yaml
yelp:
api_keys:
consumer_key: ~
consumer_secret: ~
token: ~
token_secret: ~
api_host: api.yelp.com
```
### Run wrapper
```bash
php -S localhost:8888 -t scripts/
```
This will opern default route. On top of the page there is a menu with a little preset of query.
## Why this wrapper?
Is just an exercise!