Download the PHP package phphleb/conductor without Composer

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

Use of mutexes in a project (including projects based on the HLEB2 framework)

PHP License: MIT

The use of mutexes is worthwhile in cases, when access to any code is to be locked, until it is executed in the current process or the set locking time period expires. For example, repetitive simultaneous API requests can cause a parallel recording one and the same value into the data base. In order to avoid such event, a section of the code responsible for recording is to be transformed by mutex methods. There are only three such mutex methods: acquire, release and unlock.

FileMutex

When setting the time period for locking (the second argument acquire in seconds), it should be taken into account that, if an active process is unable to unlock the mutex on its own, other processes from the non-sequential queue that have addressed to this code will continue working only after this time period has expired. That is why they will be completed, in a case of a long delay, at the web server level by timeout waiting for a response from the script.

Installation in a project based on the framework HLEB

Create a console commands php console mutex/db-stat, php console mutex/predis-stat and php console mutex/file-stat to get statistics on active mutexes:

Installation in another project

Using Composer (or copy the files into the vendor folder of the project):

Own configuration (to be installed once):

Files of a mutex type are usually applied only for one backend server; otherwise, you can try to synchronize the folder with the tag files of mutexes. However, if it is possible, it will be better to use mutexes based on storing the tags in the data base.

DbMutex

The locks with the stored status in the data bases – similar implementation of mutexes. The same methods – acquire, release и unlock – are used, as well as connecting your own configuration. The difference lies in the class used for initializing the mutex.

By default, the configuration settings are taken from the mutex.db.type (config/database.php).

Supported MySQL / MariaDB / PostgreSQL.

PredisMutex

Redis is connected in the same way.

Requires predis/predis library.

The configuration will be loaded from the redis.db.type setting.


All versions of conductor with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2.0
phphleb/updater Version *
ext-readline Version *
ext-pdo Version *
phphleb/hredis Version dev-main
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 phphleb/conductor contains the following files

Loading the files please wait ....