Download the PHP package fuseboxie/sdk without Composer

On this page you can find all versions of the php package fuseboxie/sdk. 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 sdk

Fuseboxie PHP SDK

Backend SDK for tracking AI usage and blocking AI calls when a Fuseboxie guard rule says no.

Install

Usage

Initialize the SDK once in your PHP backend:

On Windows PHP installs that do not have a default CA bundle configured, pass one explicitly:

Guard before the AI provider call:

Track after the provider returns:

Provider helpers:

You can also call trackUsage() manually when you already have normalized token counts:

Laravel

The package auto-discovers a Laravel service provider and facade when installed in a Laravel app.

Publish the config file:

Set your server-side environment values:

Add the middleware to routes that make AI calls. It captures the signed-in Laravel user ID and optional customer/role/request headers, then reuses them for every Fuseboxie call in that request:

Use the facade in your controller:

If your app stores tenant/customer IDs somewhere else, pass them directly in the guard/tracking arrays or customize the middleware header names in config/fuseboxie.php.

Checks

The SDK has no runtime dependencies beyond PHP JSON support. It uses cURL when available and falls back to PHP streams.


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
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 fuseboxie/sdk contains the following files

Loading the files please wait ...