Download the PHP package zaeem2396/laravel-nats without Composer

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

Laravel NATS

Tests Static Analysis Code Style Pint

Laravel wrapper for NATS with two tracks and an index-first docs experience:

Quick Navigation

What To Use

NatsV2 (recommended)

Use NatsV2 for new code:

Legacy (still supported)

Use legacy Nats APIs only when you must keep existing workloads unchanged. Migration guide: docs/v2/MIGRATION.md.

Install

Requirements:

Laravel 13 applications require PHP 8.3+; the package minimum remains PHP 8.2 for Laravel 10-12.

Version map:

Roadmap: CHANGELOG.md

Docker Setup (Local NATS)

Start NATS with project compose file

This starts a local NATS server using the repository's docker-compose.yml.

Verify container is running

Match your .env to local Docker defaults

Stop services when done

5-Minute Quickstart (NatsV2)

1) Configure env

2) Publish

3) Subscribe

Documentation Index

Prefer this canonical map for quick navigation: docs/INDEX.md.

By use case

If you want to... Go here
Publish/subscribe on v2 quickly docs/v2/GUIDE.md
Build long-running consumers docs/v2/SUBSCRIBER.md
Run queue workers on basis client docs/v2/QUEUE.md
Work with JetStream streams/consumers docs/v2/JETSTREAM.md
Propagate trace headers or route by subject docs/v2/CONNECTION_SELECTION.md
Add a transactional outbox around publishes docs/v2/OUTBOX.md
Harden config and subject access docs/v2/SECURITY.md
Move from legacy APIs to v2 docs/v2/MIGRATION.md

Start here

Core feature guides

Production and operations

Examples

Queue Usage

Two queue drivers are available:

Use with Laravel worker:

Queue guide: docs/v2/QUEUE.md

Legacy Command References

For teams still using legacy stack workflows:

Security And Production Checks

For hardened environments (1.5.0+):

Full details: docs/v2/SECURITY.md

Testing And Quality Checks

For release prep, run composer ci and ensure CHANGELOG.md reflects the release scope.

Troubleshooting

Connection refused

Start NATS locally:

Authorization violation

Verify .env credentials and server auth mode (NATS_USER/NATS_PASS vs NATS_TOKEN).

Production TLS/config errors

If you get NatsConfigurationException, validate your nats_basis connection rows:

Then confirm TLS values in docs/v2/SECURITY.md.

API Stability

Public Laravel-facing APIs are stable under semver. Internal implementation classes (especially under core internals) may evolve.

See release notes: CHANGELOG.md

Contributing

Before opening a PR, run:

License

MIT. See LICENSE.


All versions of laravel-nats with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
basis-company/nats Version ^1.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 zaeem2396/laravel-nats contains the following files

Loading the files please wait ...