Download the PHP package takuya/php-sysv-ipc-message-queue without Composer

On this page you can find all versions of the php package takuya/php-sysv-ipc-message-queue. 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 php-sysv-ipc-message-queue

php-sysv-ipc-message-queue

php sysv ipc message queue wrapper

IPC Message Queue for php

SysV IPC Message queue is available as php function. This package is Object Class wrapping msg_send.

This repository wrap function and frequently appearing Usage.

Installing

from Packagist.

from GitHub.

Examples.

Initialize and push to Queue

initialize and send data to queue.

Since msg_send is supporting serialize. we can push everything.

We can get queue message as is sent.

Notice, by serialize() , message size increased.(over 1024, large bytes);

I wrote this class , suppose to be used simple message. large size (>1024) is un-usual way.

Don't forget to remove queue never used.

use destroy() to remove queue.

Or use ipcs -q, ipcrm command to remove unnecessary used queue.

Queue will be remains unless explicitly deleted.

save and load when OS shutdown.

SysV IPC Message will be lost after shutdown. to prevent lost , try save and load messages.

Before shutdown

After restart

Multi Process (IPC)

Multi process (inter process). same name same queue.

consumer.php (worker)

producer.php ( maker )

run

Comparison

PHP's IPC System Message Queue function msg_send has auto serialization, This is very useful.

Compare SysV IPC Queue to another shared way. IPC Queue is easy to use.

type advantage to SysV mesg func dis-advantage to sysV func
tcp:// can listen another pc Manual serialization, data structure design, read size needs manually adjustment
Shared-Memory and Semaphore can share same data Be careful of R/W timming (Semaphore), manually blocking, Queue Data structure needs fully considered, manually serialization
File and flock() data persistence is easy Be careful of R/W timming(flock), Data structure fully considered, manually serialization
sqlite / sql Easy to data persistence Needs SQL knowledge or O/R mapper, manually serialization

PHP's SplQueue or SplStack cannot share data to another process, These require sql or file library to use.

In that reason, msg_send msg_receive is the easiest way to share Tasks.


All versions of php-sysv-ipc-message-queue with dependencies

PHP Build Version
Package Version
Requires ext-sysvmsg 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 takuya/php-sysv-ipc-message-queue contains the following files

Loading the files please wait ....