Download the PHP package alphasoft-fr/messenger-filesystem-transport without Composer

On this page you can find all versions of the php package alphasoft-fr/messenger-filesystem-transport. 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 messenger-filesystem-transport

Messenger FilesystemTransport

FilesystemTransport is a transport for Symfony Messenger based on the file system. It allows for handling asynchronous messages without using a database or an external message broker such as RabbitMQ or Redis. This is a simple and lightweight solution, ideal for small to medium-sized projects.

📖 Documentation

English


FilesystemTransport is a transport for Symfony Messenger based on the file system. It allows for handling asynchronous messages without using a database or an external message broker such as RabbitMQ or Redis. This is a simple and lightweight solution, ideal for small to medium-sized projects.

📦 Installation

To install the package via Composer, use the following command:

🚀 Features

📚 Benefits

🛠️ Configuration

Activating the Bundle

To activate the bundle, you need to add it manually in the config/bundles.php file of your Symfony project:

Here is an example configuration for using FilesystemTransport :

In this example, messages will be stored in the var/messages directory of your Symfony project.

Configuration Options

🔧 Usage

Sending Messages

To send asynchronous messages, you can use the transport like any other Symfony Messenger transport:

📄 Example of Processing Logs

The "log" option must be enabled:

When a message is processed successfully, a log entry is added in processed.log:

In the event of a failed message, a similar entry is added in failed.log to facilitate error tracking and analysis.

🧪 Tests

To run unit tests, clone the repository and use PHPUnit:

📝 License

This project is licensed under the MIT. You are free to use, modify, and redistribute it under the terms of this license.

🤝 Contribution

Contributions are welcome! If you want to propose improvements or report an issue, feel free to open an issue or submit a pull request.

  1. Fork the project.
  2. Create a branch for your feature (git checkout -b feature/new-feature).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push your branch (git push origin feature/new-feature).
  5. Open a Pull Request.

Français

FilesystemTransport est un transport pour Symfony Messenger basé sur le système de fichiers. Il permet de gérer des messages asynchrones sans avoir recours à une base de données ou à un broker de message externe tel que RabbitMQ ou Redis. C'est une solution simple et légère, idéale pour des projets de petite à moyenne envergure.

📦 Installation

Pour installer le package via Composer, utilisez la commande suivante :

🚀 Fonctionnalités

📚 Avantages

🛠️ Configuration

Activation du Bundle

Pour activer le bundle, vous devez l'ajouter manuellement dans le fichier config/bundles.php de votre projet Symfony :

Voici un exemple de configuration pour utiliser FilesystemTransport :

Dans cet exemple, les messages seront stockés dans le répertoire var/messages de votre projet Symfony.

Options de Configuration

🔧 Utilisation

Envoi de messages

Pour envoyer des messages asynchrones, vous pouvez utiliser le transport comme n'importe quel autre transport de Symfony Messenger :

📄 Exemple de Log de Traitement

L'option "log" doit etre activé :

Lorsqu'un message est traité avec succès, une entrée de log est ajoutée dans processed.log :

En cas de message échoué, une entrée similaire est ajoutée dans failed.log pour faciliter le suivi et l'analyse des erreurs.

🧪 Tests

Pour exécuter les tests unitaires, clonez le dépôt et utilisez PHPUnit :

📝 Licence

Ce projet est sous licence MIT. Vous êtes libre de l'utiliser, de le modifier et de le redistribuer sous les termes de cette licence.

🤝 Contribution

Les contributions sont les bienvenues ! Si vous souhaitez proposer des améliorations ou signaler un problème, n'hésitez pas à ouvrir une issue ou à soumettre une pull request.

  1. Forkez le projet.
  2. Créez une branche pour votre fonctionnalité (git checkout -b feature/nouvelle-fonctionnalite).
  3. Commitez vos changements (git commit -am 'Ajoute une nouvelle fonctionnalité').
  4. Poussez votre branche (git push origin feature/nouvelle-fonctionnalite).
  5. Ouvrez une Pull Request.

All versions of messenger-filesystem-transport with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
symfony/messenger Version ^5.4|^6.0|^7.0
ext-json 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 alphasoft-fr/messenger-filesystem-transport contains the following files

Loading the files please wait ....