Download the PHP
package roadrunner/symfony-lock-driver without Composer
On this page you can find all versions of the php package
roadrunner/symfony-lock-driver. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor roadrunner Package symfony-lock-driver Short Description Symfony Lock store backed by the RoadRunner lock plugin: use RoadRunner distributed locks through the symfony/lock API License
MIT Homepage https://roadrunner.dev/
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.
This package is a bridge between the RoadRunner Lock plugin and the Symfony Lock component.
It provides a RoadRunnerStore, so symfony/lock can manage distributed locks through the RoadRunner server shared by all your workers.
Get Started
Installation
Configuration
The Lock plugin is driven over RPC, so the RPC plugin must be enabled in .rr.yaml:
Without a lock section the plugin uses the in-memory backend. To share locks between several RoadRunner instances, configure the Redis backend as described in the Lock plugin documentation.
Usage
Create a RoadRunnerStore on top of the RoadRunner Lock client and pass it to the Symfony LockFactory:
Read more about using the Symfony Lock component here.
Store options
RoadRunnerStore accepts two timing options:
Option
Default
Description
$initialTtl
300.0
Default lock time-to-live, in seconds. When it elapses the lock is released automatically; 0 means it never expires on its own.
$initialWaitTtl
0
Default time to wait for the lock to become free, in seconds. 0 is effectively non-blocking: the in-memory backend caps a 0 wait at 1ms (the Redis backend makes a single attempt), so acquiring an already-held lock fails almost immediately. A positive value blocks for up to that duration.
Contributing
Contributions are welcome! If you find an issue or have a feature request, please open
an issue or submit a pull request.
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 roadrunner/symfony-lock-driver 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.