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
- Host: GitHub
- URL: https://github.com/treblle/laravel-api-manager
- Owner: Treblle
- Created: 2023-09-21T12:00:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-21T12:01:20.000Z (over 2 years ago)
- Last Synced: 2025-04-10T14:45:37.393Z (about 1 year ago)
- Language: PHP
- Size: 53.7 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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();
```