Download the PHP package nextdeveloper/events without Composer

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

Events

This module enables the application to work between external applications and services. It provides two basic features: listen and fire. Events create eventable and listener objects in the database; when an event fires it starts a background process to trigger the related external application (IFTT-style integrations, NATS messaging, webhooks, etc.).

We needed this module to create generic third-party integrations without touching customer or end-user code directly.

The general inspiration comes from Apache Camel. (Thank you guys!)

Mechanics

This module receives an event, checks for related listeners, and triggers them via their own delivery mechanism. Supported mechanisms: Laravel Jobs (actions), NATS pub/sub, HTTP, WebSocket, gRPC.

Idea

The idea was to let customers manage their own events using an IFTT-style logic. Events are managed in two core tables:

NATS Support

This package includes first-class support for NATS — a high-performance messaging system used to orchestrate agents and deliver real-time events to browser clients.

What it does

Components

Component File Purpose
NatsService src/Services/NatsService.php Publish and subscribe wrapper
NatsAuthCalloutService src/Services/NatsAuthCalloutService.php Validates credentials, signs auth-response JWTs
NkeyHelper src/Services/NkeyHelper.php Ed25519 NKey encoding and JWT signing
NatsAuthConfigService src/Services/NatsAuthConfigService.php Manages auth config
NatsListenCommand src/Console/Commands/NatsListenCommand.php Long-running NATS subscriber worker
NatsAuthListenerCommand src/Console/Commands/NatsAuthListenerCommand.php Auth callout listener — validates every NATS connection
NatsKeygenCommand src/Console/Commands/NatsKeygenCommand.php Generate NKey pairs for server config
NatsGenerateAuthCommand src/Console/Commands/NatsGenerateAuthCommand.php Generate agent auth tokens

Artisan Commands

Both events:nats-listen and events:nats-auth-listen are long-running processes and should be managed by Supervisor alongside the queue worker.

Required .env Keys

Auth Callout — How It Works

Every client that connects to NATS (agent or browser) is validated in real time by NatsAuthCalloutService. The service looks up the token in the database and returns a signed JWT that grants scoped publish/subscribe permissions.

Token revocation is instant — remove or nullify events_token in the DB and the agent is rejected on its next connection attempt.

See docs/nats-auth-callout.md for the full JWT structure specification and implementation details.

Subject Naming Convention

Identity Subscribes to Publishes to
agent.compute.{uuid} agent.compute.{uuid}.cmd, agent.compute.broadcast, agent.broadcast agent.compute.{uuid}.evt
agent.storage.{uuid} agent.storage.{uuid}.cmd, agent.storage.broadcast, agent.broadcast agent.storage.{uuid}.evt
agent.network.{uuid} agent.network.{uuid}.cmd, agent.network.broadcast, agent.broadcast agent.network.{uuid}.evt
Browser client client.{account_uuid}.evt, client.{account_uuid}.{user_uuid}.evt nothing

Planned Feature List


Our Libraries

This library is part of the NextDeveloper / PlusClouds open-source ecosystem. Browse all available libraries and find the right building blocks for your next project:

https://plusclouds.com/us/solutions/libraries


Join the Community

We believe great software is built together. The PlusClouds developer community is a place where engineers share ideas, ask questions, showcase what they have built, and help shape the direction of these libraries. Whether you are integrating a single package or building an entire platform on top of our stack, you are very welcome here.

Come and join us — we would love to see what you build:

https://plusclouds.com/us/community


All versions of events with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2.0
league/fractal Version *
monolog/monolog Version *
basis-company/nats 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 nextdeveloper/events contains the following files

Loading the files please wait ...