Download the PHP
package bozerkins/php-message-queue without Composer
On this page you can find all versions of the php package
bozerkins/php-message-queue. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor bozerkins Package php-message-queue Short Description Simple message queue on php using files License
MIT
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.
A simple php implementation of message queue (or message queue) which
can write messages and read messages in a FIFO manner.
Installation
Creating a queue
To define a queue you first need to define some environment configurations.
An environment of a queue messaging system defined what folders will be used for operations.
You can write to queue and read from queue. These are the basic operations.
NOTE that you can use this with multiple processes. The Message Queue uses flock(), so there shouldn't be a problem.
For several optimization reasons the queue does not delete messages by itself.
To free some disk space from already read messages just run this command from time to time.
Please note that this operation is disk write heavy (when lot's of messages are being passed)
To optimize reads from the queue the library uses a caching construction.
Messages are added into file system based cache in chunks, by default single chunk size is 100 messages.
If you intend to read more than 100 messages from the queue at once please change the configuration option 'rotate_amount' to a bigger number.
Contacts
If you wish to improve the library, feel free to submit merge request or contact me at [email protected]
All versions of php-message-queue with dependencies
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 bozerkins/php-message-queue contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.