Download the PHP package pulsehub/laravel without Composer

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

PulseHub Laravel SDK — User Guide

Heartbeat of all your systems.

The official Laravel package for PulseHub. Drop it into your Laravel app and every uncaught exception is sent live to your PulseHub dashboard, where it becomes a task you can triage through new → in_progress → in_review → done.


What this package does

In one line: catches errors from your Laravel app and POSTs them to your PulseHub server, live.

It also:


What about the URL?

There are two URLs in play. To make sure they don't get confused:

Setting What it is Example value
PULSEHUB_URL The server you POST to. Your PulseHub installation. https://pulsehub.diqcare.com
APP_URL Your Laravel app — leave it alone, that's not PulseHub. https://my-shop.example.com

The package never opens incoming ports. It only makes outbound HTTPS calls to PULSEHUB_URL carrying your bearer token.


1. Install (60 seconds)

Not on Packagist yet? Until the package is on Packagist, pick one of the two alternative install paths below — both let you keep using the same composer require pulsehub/laravel command.

Install from GitHub (works today) Add a VCS repository to your Laravel app's `composer.json`: Then run the bare command:
Install from a local clone (for SDK contributors) Clone the SDK next to your Laravel app and add a path repository: Then run: Symlink mode means edits in your clone show up in `vendor/pulsehub/laravel/` instantly — no reinstall needed.

After install

Open .env and add:

Where does the token come from? Register at https://pulsehub.diqcare.com/admin/register (it's a free SaaS — your workspace and a starter source are created automatically), go to API Tokens → Generate API token, copy the ph_live_... value immediately — it's only shown once.

Viewer-role users can't generate tokens; ask your workspace admin.


2. Capture exceptions

For Laravel 11+ apps, add one line to bootstrap/app.php:

That's it. Every uncaught Throwable in your app is now sent to PulseHub. Common noisy exceptions (404, validation, auth) are filtered out of the box; see config/pulsehub.php → ignore_exceptions to customize.

Manual reporting


3. Verify the connection

You'll see one of four outcomes:

Result What it means
Connected. HTTP 200. Token valid, server reachable. You're good.
Bad API key (HTTP 401/403) Token wrong or revoked. Generate a fresh one in the dashboard.
Endpoint not found (404) PULSEHUB_URL is pointing at the wrong host.
Server unreachable (5xx/network) PulseHub is down OR network/firewall is blocking outbound HTTPS.

These exact diagnoses also land in storage/logs/laravel.log whenever a real report fails — so if reports stop arriving, just tail your logs:


Live vs queued delivery

By default the package queues outbound calls so they never block a user request:

If you want immediate (live) sends — useful for tiny apps or debugging:

In dev environments with no queue worker (QUEUE_CONNECTION=sync) the package auto-downgrades to sync, so things "just work" without configuration.


Hourly health reports

The package auto-registers an hourly schedule. As long as your Laravel scheduler cron is running:

…PulseHub gets a snapshot every hour:

Run it manually any time:


Useful Artisan commands


Capturing 5xx responses (optional middleware)

If you want HTTP 5xx responses reported even when no exception was thrown:


Configuration reference

Full config lives in config/pulsehub.php. Most-used keys:

Key Default What it does
token null PulseHub bearer token. Required.
base_url pulsehub.io The PulseHub server URL.
source_name APP_NAME Label shown in the dashboard.
enabled true Master kill switch.
interval hourly Health report frequency. null to disable.
transport queue queue or sync.
retry.attempts 3 HTTP retry attempts.
sample_rate 1.0 Probability errors are forwarded (0–1).
ignore_exceptions (defaults) Classes to drop before sending.
before_send null Hook to mutate or drop the payload.
local_log.enabled false Persist every attempt to pulsehub_logs for debugging.

Events you can hook into


Troubleshooting

"PULSEHUB_TOKEN is not set" → You forgot to add the token to your .env, or you haven't restarted PHP-FPM / queue worker after adding it.

"Bad API key" in logs → Token revoked or copy/paste error. Generate a fresh one from the dashboard.

Reports not arriving despite "Delivered (HTTP 200)" → Check that the source slug in the dashboard matches PULSEHUB_SOURCE in your .env. The server identifies sources by their token, not by name.

"Server unreachable" but curl https://pulsehub.diqcare.com works → The queue worker is on a host with different outbound firewall rules. Try PULSEHUB_TRANSPORT=sync to isolate.

Reports stop arriving after deploy → The package config is cached. Run php artisan config:clear or php artisan config:cache.


Testing the package itself

22 tests covering payload shape, queue dispatch, retries, failure categorization, and CLI commands.


Publishing to Packagist (maintainer notes)

After Packagist is set up, anyone in the world can run composer require pulsehub/laravel — no VCS or path repository tricks.

One-time setup

  1. Push to GitHub (the repo is https://github.com/taiaburbd/PulseHub).
  2. Remove the "version" field from composer.json — Packagist derives versions from Git tags. The field is only there today so path-repo installs resolve as 1.0.0 instead of dev-main.
  3. Tag the first release:

  4. Submit at https://packagist.org/packages/submit, paste the GitHub URL. Packagist validates composer.json, scans tags, and the package goes live.
  5. Wire up the GitHub webhook (Settings → Webhooks → Add webhook) so Packagist picks up future tags automatically. Packagist provides the URL and secret in your package's "Settings" tab.

Cutting a new release

Why the version field is in composer.json today

Composer's path repository assigns dev-main to every package unless the package's own composer.json declares a version. That made composer require pulsehub/laravel (no version constraint) fail with "Could not find a version… matching your minimum-stability (stable)".

The version: 1.0.0 we added is a local development aid. Strip it before submitting to Packagist (Composer prints a warning reminding you).


License

MIT — see LICENSE.


All versions of laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
illuminate/queue Version ^10.0|^11.0|^12.0|^13.0
illuminate/console Version ^10.0|^11.0|^12.0|^13.0
guzzlehttp/guzzle Version ^7.5
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 pulsehub/laravel contains the following files

Loading the files please wait ...