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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package oaas-laravel

Treblle - API Intelligence Platform

Treblle API Intelligence

WebsiteDocumentationPricing

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

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:

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

PHP Build Version
Package Version
Requires php Version ^8.1
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package treblle/oaas-laravel contains the following files

Loading the files please wait ...