Download the PHP package larafleet/agent without Composer

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

LaraFleet Agent

Tests

The official monitoring agent for LaraFleet – the monitoring platform for Laravel applications.

Installation

The install command prompts for your API key from the LaraFleet dashboard and updates .env automatically.

How it works

The agent runs larafleet:heartbeat every 5 minutes via the Laravel Scheduler. Only the standard cron entry is required — no queue worker or Supervisor needed:

Cheap collectors (Queue, Scheduler, Disk) run on every heartbeat. Expensive collectors (Composer, npm, Laravel/PHP version, Env) run once per hour.

Heartbeat type Frequency Payload
full Hourly (and first run) All fields
quick Every 5 min (between full) Queue, Scheduler, Disk only

This reduces snapshot rows in the dashboard from ~288 to ~24 per project per day.

What data is sent?

Category Details Frequency
Queue status Failed jobs, queue size Every 5 min
Scheduler Last run, missed Every 5 min
Disk/storage Directory size in MB Every 5 min
Laravel version Application::VERSION Hourly
PHP version + extensions PHP_VERSION, get_loaded_extensions() Hourly
Composer packages Installed, outdated (major/minor/patch) Hourly
Composer security advisories via composer audit Hourly
npm packages Installed, outdated Hourly
npm security advisories via npm audit Hourly
Env snapshot Whitelisted keys only (configurable) Hourly
Deployment Timestamp (mtime of vendor/autoload.php), Git hash Hourly

Exception Reporting

Unhandled exceptions are automatically forwarded to LaraFleet — no extra setup required after installation. The agent hooks into Laravel's exception handler and sends a signed report to POST /api/exceptions.

What is reported:

Field Description
exception.class Exception class name
exception.message Exception message
exception.file / line Source location
exception.trace Full stack trace
exception.fingerprint SHA-256 hash for deduplication
request.url Request URL (path only, no query string)
request.query / input GET and POST parameters (sensitive fields filtered)
request.user_id Authenticated user ID (no other user data)
context Laravel version, PHP version, environment

Filtering: the following request keys are replaced with [FILTERED] before transmission: password, password_confirmation, current_password, token, api_key. Custom keys can be added via exceptions.dontFlash.

Disabling:

Or extend exceptions.dontReport in config/larafleet-agent.php to suppress specific exception classes:

Security

Configuration

All options in config/larafleet-agent.php:

Key Default Description
endpoint https://app.larafleet.com/api/heartbeat Server URL
api_key — From your LaraFleet project settings
interval_minutes 5 Scheduler run frequency in minutes
dispatch command command (synchronous, recommended) or job (Queue)
timeout 10 HTTP timeout in seconds
queue null Queue connection for dispatch=job mode
npm_enabled true Enable npm data collection
env_whitelist see config Allowed env keys
deployment_file vendor/autoload.php File used for deployment detection
collectors.intervals.composer 3600 Composer collector interval in seconds
collectors.intervals.npm 3600 npm collector interval in seconds
collectors.intervals.environment 3600 Version/Env collector interval in seconds
exceptions.enabled true Enable exception reporting
exceptions.dontReport see config Exception classes that are never reported
exceptions.dontFlash see config Request keys replaced with [FILTERED]

Dispatch mode

By default the heartbeat runs synchronously inside the Scheduler process (dispatch=command). For apps that already have a running Queue Worker, set LARAFLEET_DISPATCH=job in .env to offload the heartbeat to the queue instead.

License

MIT


All versions of agent with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/queue Version ^11.0|^12.0|^13.0
illuminate/console Version ^11.0|^12.0|^13.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 larafleet/agent contains the following files

Loading the files please wait ...