Download the PHP package lostlink/laravel-messenger without Composer

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

LostLink Laravel-Messenger

LostLink Laravel-Messenger is a Laravel package for sending messages to various services asynchronously without blocking the processing of your application. Messages are queued and sent during the PHP destruct() phase, ensuring that the application’s performance is not impacted by external service communication.

Features

Supported Drivers

Installation

  1. Install the package via Composer:

  2. Publish the configuration file (optional):

  3. Configure the environment variables for the drivers you wish to use.

Configuration

The package supports multiple drivers, and you can set the default driver using environment variables. Here’s an example configuration file:

Available Environment Variables

Option Description
LARAVEL_MESSENGER_DRIVER Specifies the driver to use (log, kinesis, or tinybird).
LARAVEL_MESSENGER_LOG_RATE_LIMIT_ENABLED Enable rate limiting for the log driver.
LARAVEL_MESSENGER_LOG_RATE_LIMIT_MAX_ATTEMPTS The maximum number of attempts before rate limiting is enforced for the Log driver. A value of 0 is the same a being disabled
LARAVEL_MESSENGER_LOG_RATE_LIMIT_DECAY_SECONDS The number of seconds before the rate limit resets for the log driver.
LARAVEL_MESSENGER_KINESIS_STREAM_NAME The name of the Kinesis stream.
LARAVEL_MESSENGER_KINESIS_STREAM_AWS_REGION The AWS region where the Kinesis stream is located. Defaults to AWS_DEFAULT_REGION if not set.
LARAVEL_MESSENGER_KINESIS_STREAM_AWS_KEY The AWS access key for Kinesis. Defaults to AWS_ACCESS_KEY_ID.
LARAVEL_MESSENGER_KINESIS_STREAM_AWS_SECRET_KEY The AWS secret key for Kinesis. Defaults to AWS_SECRET_ACCESS_KEY.
LARAVEL_MESSENGER_KINESIS_RATE_LIMIT_ENABLED Enable rate limiting for the Kinesis driver.
LARAVEL_MESSENGER_KINESIS_RATE_LIMIT_MAX_ATTEMPTS The maximum number of attempts before rate limiting is enforced for the Kinesis driver. A value of 0 is the same a being disabled
LARAVEL_MESSENGER_KINESIS_RATE_LIMIT_DECAY_SECONDS The number of seconds before the rate limit resets for the Kinesis driver.
LARAVEL_MESSENGER_TINYBIRD_DATA_SOURCE_NAME The name of the Tinybird data source.
LARAVEL_MESSENGER_TINYBIRD_TOKEN The API token for Tinybird.
LARAVEL_MESSENGER_TINYBIRD_ENDPOINT The Tinybird API endpoint. Defaults to https://api.us-east.aws.tinybird.co/v0/events.
LARAVEL_MESSENGER_TINYBIRD_RATE_LIMIT_ENABLED Enable rate limiting for the Tinybird driver.
LARAVEL_MESSENGER_TINYBIRD_RATE_LIMIT_MAX_ATTEMPTS The maximum number of attempts before rate limiting is enforced for the Tinybird driver. A value of 0 is the same a being disabled
LARAVEL_MESSENGER_TINYBIRD_RATE_LIMIT_DECAY_SECONDS The number of seconds before the rate limit resets for the Tinybird driver.

Usage

Sending messages with LostLink Laravel-Messenger is simple. After configuring your environment variables, you can use the send method:

Updating Configuration on the Fly

You can modify the configuration for a specific message by chaining and passing an array to the config([]) method. This allows you to override the default driver settings for that particular message. Here's an example:

Adding Custom Drivers

To create and add your own driver, simply extend the driver system by implementing the required interfaces.

  1. Make sure to publish the laravel-messenger config file

  2. Adjust the laravel-messenger config with the name and class of your custom driver

  3. Create a class that extends \LostLink\Drivers\Driver `

License

This package is open-sourced software licensed under the MIT license.


All versions of laravel-messenger with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0||^8.1||^8.2||^8.3
aws/aws-sdk-php Version ^3.288.0.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 lostlink/laravel-messenger contains the following files

Loading the files please wait ....