redlock-php icon indicating copy to clipboard operation
redlock-php copied to clipboard

Namespace added

Open pdscopes opened this issue 8 years ago • 2 comments

Firstly, thank you for writing this brilliant distributed semaphore using Redis!

For me to be able to use this I require a namespace for the RedLock class, which I have added along with some PHPDoc documentation and PHPUnit tests.

pdscopes avatar Jul 29 '16 08:07 pdscopes

Could this PR be merged? I need the namespace support for my project :)

annuh avatar Jul 28 '17 05:07 annuh

You can use my code directly if this doesn't get a merged (doesn't look likely) by add a my repo as a VCS repository to your composer file, i.e.:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/pdscopes/redlock-php"
    }
  ],
  ...
  "require": {
    "ronnylt/redlock-php": "~1.0.0"
  }
}

pdscopes avatar Jul 28 '17 08:07 pdscopes