An open API service indexing awesome lists of open source software.

https://github.com/treblle/laravel-api-manager

A Laravel package that allows you to configure your API Integrations in a file
https://github.com/treblle/laravel-api-manager

Last synced: 11 months ago
JSON representation

A Laravel package that allows you to configure your API Integrations in a file

Awesome Lists containing this project

README

          

# Laravel API Manager

```yaml
integrations:
github:
url: 'https://api.github.com/'
auth:
type: Bearer
value: !env 'GITHUB_TOKEN'
name: 'Authorization'

treblle:
url: 'https://api.treblle.com'
auth:
type: Header
token: !env 'TREBLLE_TOKEN'
name: 'X-API-KEY'
```

```php
use Treblle\ApiManager\Facades\Integration;

Integration::for('github')->get('something')->json();
```

```php
Http::baseUrl('https://api.github.com')->withToken(
token: '1234-1234-1234',
)->get('something')->json();
```