Download the PHP package pantree/pantree-php without Composer

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

pantree/pantree-php

Packagist version

Official PHP & Laravel SDK for Pantree — error monitoring and encrypted health reporting.

Supports raw PHP 8.1+ and Laravel 10, 11, 12.
Requires ext-curl and ext-openssl.


Table of Contents


Installation

For Laravel, publish the config file:


Quick Start

Raw PHP

Laravel

Add your DSN to .env:

The PantreeServiceProvider is auto-discovered and wires up exception capture automatically. No manual registration required.

Manual capture from anywhere in your app:


Configuration

DSN constructor (recommended)

Your DSN is available in Project → Settings on your Pantree dashboard:

Raw PHP:

Laravel — set env vars:

Legacy constructor (raw PHP)

Legacy env vars (Laravel)

If you don't have a DSN, the following are used instead:


Capturing Errors

captureException(Throwable $e, array $extra = [])

captureMessage(string $message, string $level = 'info', array $extra = [])

send(array $event) — Raw PHP only

Low-level method for full control over the event payload.

Event fields

Field Type Description
message string Human-readable description (required)
title string Short error title / class name
stack string Stack trace
level string error / warning / info / debug
runtime string e.g. php, php-cli, laravel
environment string Deployment environment
url string $_SERVER['REQUEST_URI'] or custom
commit array ['message' => ..., 'author' => ...]
user array ['id' => ..., 'email' => ...]
context array Any additional key-value pairs

Health Reporting

Collects OS, memory, disk, network, machine ID, container detection, and Git info — encrypted with AES-256-GCM before sending. The SDK stores the last health report timestamp and sends at most one report every 10 minutes by default, even if sendHealthReport() is called from Laravel boot() or another hot path.

Raw PHP — cron script

Crontab:

Laravel — automatic scheduler

Set PANTREE_HEALTH_REPORTING=true in .env and make sure the Laravel scheduler runs:

The service provider registers a scheduled task automatically — no manual setup needed.


Package Layout


API Reference

See docs/api-reference.md.


Changelog

See CHANGELOG.md.


License

MIT


All versions of pantree-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-curl Version *
ext-openssl 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 pantree/pantree-php contains the following files

Loading the files please wait ...