Download the PHP package bilaliqbalr/laravel-redis without Composer

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

Laravel Redis

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads


As name suggested this package will let you use Redis as a database instead of using it just for caching purpose. It works almost the same way as using Laravel Eloquent but with some differences. With this package forget the pain of naming keys and managing them in Redis. Some of the core features are as follows:

  1. No need to create migration files, just provide required columns in $fillable and this package will take care of the rest
  2. Perform CRUD operations just like doing them in Laravel
  3. Search model functionality
  4. Managing relations
  5. Laravel auth backed by Redis

Installation

You can install the package via composer:

You can publish the config file with:

Usage

To create new redis model run this command

Prefixes

Prefixes are used to maintain the key structure for specific model, this package creates prefixes by default using Model name, and in case you want to change it you can do this as follow

Change connection

You can change redis connection in model as well

Searching model by specific column

In case you need to get model based on specific field, you can do this by using $searchBy where you just need to specify column names in the list and this package will store a new key value pair where key is {model}:column:%s (%s is the column value) where value will be the model id to fetch required model.

To get model based on that title field, you can do this as follows

Other operations like create, update and delete works same as in Laravel

Get all records keys

Add new searchBy fields

If you need to add new searchBy field after you have records in your redis database, then you need to run this command to make old records searchable with new column

Managing model relations

With this package you can even create relation between models but that is not like the one in Laravel, as redis is not a relational database.

Auth

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-redis with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
illuminate/contracts Version ^8.61|^9.0
illuminate/support Version ^8.61|^9.0
predis/predis Version ^1.1
spatie/laravel-package-tools Version ^1.4.3
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 bilaliqbalr/laravel-redis contains the following files

Loading the files please wait ....