Download the PHP package apiforge/apiforgephp without Composer

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

apiforgephp

API observability & intelligence for Laravel — local-first, privacy-first.

Packagist Version CI PHP

Track latency, error rates, and behavioral trends of your APIs. Everything stays on your machine.

Full documentation


Install

Requires PHP ≥ 8.2 and the pdo_sqlite extension (php8.x-sqlite3 package on Debian/Ubuntu).

Quick start

The service provider is auto-discovered by Laravel. Register the middleware in your bootstrap/app.php (Laravel 11+) or app/Http/Kernel.php (Laravel 10):

That's it. The local dashboard is now live at http://localhost:8000/_apiforge (adjust the port to match your Laravel app).

Dashboard

In local mode, the dashboard is served automatically at /_apiforge on your Laravel app's port — no separate process needed.

Configuration

Publish the config file (optional):

Or configure via environment variables:

Variable Default Description
APIFORGE_ENV APP_ENV Environment label (production, staging…)
APIFORGE_RELEASE APP_VERSION Release/version tag for regression tracking
APIFORGE_SERVICE APP_NAME Service name
APIFORGE_SAMPLING 1.0 Sample rate 0.0–1.0
APIFORGE_DASHBOARD true Enable/disable the local dashboard routes
APIFORGE_DASHBOARD_PREFIX _apiforge URL prefix for the local dashboard
APIFORGE_CLOUD_URL Cloud mode: SaaS API base URL
APIFORGE_API_KEY Cloud mode: project API key (af_…)

Cloud mode

Send metrics to the APIForge SaaS platform instead of storing them locally:

In cloud mode, events are buffered to a local temp file and flushed to the SaaS ingest API every 60 seconds. The local dashboard is disabled automatically.

Release tracking

Set the release tag to enable before/after deployment comparison:

Or dynamically in AppServiceProvider:

When a new release is detected, APIForge compares P90 latency before and after and surfaces regressions automatically.

What you get

Graceful shutdown

The middleware flushes automatically at the end of every request. No manual teardown is needed for standard PHP-FPM deployments.

For long-running processes (Laravel Octane, FrankenPHP, Swoole), call shutdown() on application termination if needed — the aggregator is otherwise request-scoped and carries no state between requests.

Known limitations

Limitation Detail
TTFB = total duration PHP-FPM sends responses atomically — true Time to First Byte cannot be measured at the middleware layer. lat_ttfb_* values equal lat_*.
Approximate inflight count PHP workers are isolated; the inflight counter is shared via a file lock, which is accurate to the order of magnitude but not microsecond-precise.

Privacy by design

Requirements

License

MIT — see LICENSE.


All versions of apiforgephp with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-pdo Version *
ext-pdo_sqlite Version *
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 apiforge/apiforgephp contains the following files

Loading the files please wait ...