Download the PHP package treblle/oaas-laravel without Composer
On this page you can find all versions of the php package treblle/oaas-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download treblle/oaas-laravel
More information about treblle/oaas-laravel
Files in treblle/oaas-laravel
Package oaas-laravel
Short Description Laravel SDK for Treblle Observability as a Service (OaaS)
License MIT
Informations about the package oaas-laravel
Treblle - API Intelligence Platform
Website • Documentation • Pricing
Treblle is an API intelligence platfom that helps developers, teams and organizations understand their APIs from a single integration point.
Treblle Laravel OaaS SDK
A Laravel SDK for Treblle Observability as a Service (OaaS). Easily retrieve and filter requests from APIs monitored by Treblle and expose that data to your end-customers.
Requirements
- PHP 8.1 or higher
- Laravel 10.0 or higher
- Guzzle HTTP 7.0 or higher
Installation
Install the package via Composer:
Laravel Setup
The package will automatically register its service provider. Publish the configuration file:
Configuration
Add your Treblle OaaS API token to your .env file:
You can obtain your API token from the Treblle Identity Dashboard under Developer Settings.
Usage
Basic Usage
To use the SDK you will need to pass your Workspace ID (found in Workspace Settings on the Treblle Dashboard) and your API ID (found in API Settings on the Treblle Dashboard)
Advanced Filtering
The SDK provides a fluent API for filtering requests:
Pagination
Request Details
Get detailed information about a specific request:
Available Filters
| Filter Method | Description |
|---|---|
whereCustomer(string $customerId) |
Filter by external user/customer ID |
whereLocation(string $location) |
Filter by geographic location |
withParams(string $params) |
Filter by request parameters |
whereMethod(HttpMethod $method) |
Filter by HTTP method |
whereDevice(Device $device) |
Filter by device type (iOS/Android/Desktop) |
whereHttpCode(int\|string $code) |
Filter by HTTP status code |
whereSuccessful() |
Filter for 2xx responses |
whereClientError() |
Filter for 4xx responses |
whereServerError() |
Filter for 5xx responses |
whereTimePeriod(TimePeriod $period) |
Filter by time period |
whereTimeRange(string $start, string $end) |
Filter by custom date range (YYYY-MM-DD HH:MM:SS format) |
allTime() |
Get all requests regardless of time period |
withProblems() |
Only requests with problems |
withoutProblems() |
Only requests without problems |
Sorting Options
| Sort Method | Description |
|---|---|
sortByCreatedAtDesc() |
Most recent first (default) |
sortByCreatedAtAsc() |
Oldest first |
sortByLoadTimeFastest() |
Fastest requests first |
sortByLoadTimeSlowest() |
Slowest requests first |
Helper Methods
Request summary objects provide helpful methods:
Configuration Options
The configuration file allows you to customize various aspects:
Error Handling
The SDK throws OaaSException for API errors:
Data Models
The SDK provides rich data models:
RequestCollection- Collection of request summaries with paginationRequestSummary- Summary information about a requestRequestDetails- Complete request details including headers, body, compliance, etc.PaginationMeta- Pagination metadataPaginationLinks- Pagination navigation links
License
This package is open-sourced software licensed under the MIT license.
Support
For support, please visit Treblle's documentation or contact [email protected].
All versions of oaas-laravel with dependencies
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
guzzlehttp/guzzle Version ^7.0