https://github.com/mcred/feedmenow-php
SDK Client Library for feedmenow.io APIs
https://github.com/mcred/feedmenow-php
Last synced: about 1 year ago
JSON representation
SDK Client Library for feedmenow.io APIs
- Host: GitHub
- URL: https://github.com/mcred/feedmenow-php
- Owner: mcred
- Created: 2018-02-10T01:36:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-12T20:05:42.000Z (over 8 years ago)
- Last Synced: 2025-02-02T02:16:21.625Z (over 1 year ago)
- Language: PHP
- Size: 62.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP Client for feedmenow.io APIs
[](https://travis-ci.org/mcred/FeedMeNow-PHP)
[](https://codeclimate.com/github/mcred/FeedMeNow-PHP/maintainability)
[](https://codeclimate.com/github/mcred/FeedMeNow-PHP/test_coverage)
### Installation
```bash
composer require mcred/feed-me-now-api
```
### Example Usage
```php
require "./vendor/autoload.php";
$feedMeNow = new FeedMeNow\FeedMeNow();
$response = $feedMeNow->providers()->get("Atlanta, GA");
$providers = $response->getData();
foreach($providers as $provider)
{
echo $provider->getName();
}
```
### Available Methods
```php
$feedMeNow->providers()->get("Atlanta,GA");
$feedMeNow->search()->get("Pizza", "Atlanta,GA");
```
### Acknowledgements
I wanted to build a library with PSR-7 HTTP Message Interfaces and took a lot of inspiration from the [Mailgun PHP Client](https://github.com/mailgun/mailgun-php). They did a great job building a SDK and you should check it out if you want to see some really great code.