thisispiers/php-redis-implementation

Raw wrapper for real Redis fans

v1.0.1 2023-05-22 09:08 UTC

This package is auto-updated.

Last update: 2024-10-22 12:02:27 UTC


README

Yet another PHP redis implementation. Raw wrapper for real Redis fans. Main advantages:

  • Doesn't require any dependencies as all the communication goes via TCP/Unix socket.
  • All commands are passed as is, so you have all the freedom to play with Redis just like in redis-cli.
  • It won't get deprecated or obsolete. You write raw commands by yourself.
  • Doesn't matter which Redis version you have.
  • Supports chainable methods. Write multiple commands and send everything at once.
  • Custom error function to handle errors.
  • Simple and lightweight. All ~600 lines of code are straight forward.
  • Forces you to actually learn and understand Redis data structures and commands.

This fork makes it compatible with Composer and adds a minimal library for PHP 8 type checking.

Download

You can checkout latest version with:

$ git clone git://github.com/thisispiers/PHP-Redis-implementation

Install

composer require thisispiers/php-redis-implementation

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

Author

Based on http://redis.io/topics/protocol

License

MIT Do whatever you want, attribution is nice but not required