Download the PHP package brain-nucleus/client without Composer

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

Brain Nucleus Client for Laravel

Official client for sending events to Brain Nucleus from Laravel applications.

This repo is the canonical standalone source for the reusable client/package layer.

It is distinct from:

The package name brain-nucleus/client remains in place for compatibility. Any future package renaming should be staged carefully after downstream install/versioning impact is mapped.

🚀 Quick Start

1. Install via Composer

Note: First-time install? Add the repository to composer.json:

2. Add Environment Variables

Need an API key? Log into Brain Admin → API Keys → New API Key

3. Done! 🎉

That's it. The package auto-registers via Laravel's package discovery.


✅ What's Automatic (No Code Required)

Feature Description
Heartbeat health.ping sent every 5 minutes automatically
Singleton BrainEventClient ready for dependency injection
Command php artisan brain:heartbeat for manual testing

⚠️ What You Need to Implement

The package handles heartbeats automatically, but you must implement:

  1. Error Exception Handling → Send error.exception events
  2. Queue Failed Job Handling → Send queue.failed events

📋 See IMPLEMENTATION-CHECKLIST.md for complete code examples.


💻 Sending Events

Inject BrainEventClient anywhere in your application:

Async Events (Fire and Forget)

For non-blocking events:


⚙️ Configuration (Optional)

Publish the config file to customise behaviour:

config/brain.php:


🔄 Updating the Client


📚 Documentation

Document Purpose
IMPLEMENTATION-CHECKLIST.md Required implementations (error handling, queue failures)
INTEGRATION-GUIDE.md Advanced code patterns and examples
OPS-EVENT-SPEC.md Event specifications and fingerprinting
EVENTS.md Business event definitions
docs/PACKAGE-IDENTITY-PLAN.md Staged package naming recommendation and compatibility constraints

🔗 Quick Links


All versions of client with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/http Version ^9.0|^10.0|^11.0|^12.0
illuminate/support Version ^9.0|^10.0|^11.0|^12.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 brain-nucleus/client contains the following files

Loading the files please wait ...