PHPackages                             unifreak/fetcher - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. unifreak/fetcher

ActiveLibrary[API Development](/categories/api)

unifreak/fetcher
================

fetch data from configured apis

v1.0.1(6y ago)03MITPHPCI failing

Since Jun 20Pushed 6y agoCompare

[ Source](https://github.com/UniFreak/Fetcher)[ Packagist](https://packagist.org/packages/unifreak/fetcher)[ Docs](https://www.github.com/Unifreak/Fetcher)[ RSS](/packages/unifreak-fetcher/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

中文用户参见

`Fetcher` wraps around `GuzzleHttp` package, it can be used to send http requests according to configured api entries

You can configure an api's url, request method, response structure, api signers etc. `Fetcher` then will send corresponding http request according to the configuration and decide whether received response is okay

Installation
============

[](#installation)

Simply run `composer require unifreak/fetcher`

For Laravel/Lumen: Registering Service Provider and Facade
----------------------------------------------------------

[](#for-laravellumen-registering-service-provider-and-facade)

If you are not using `laravel/lumen`, skip this step

If you are using `laravel` greater than version 5.5, then service provider and facade will be auto registerd (see ), so you can skip this step, too

If you are using `lumen`, simply add the following lines into your project's `/bootstrap/app.php` file:

```
