Download the PHP package ordent/cache-url-redis without Composer

On this page you can find all versions of the php package ordent/cache-url-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 cache-url-redis

ORDENT / CACHE-URL-REDIS

AIO cache management service based on URL and Auth JWT Implementation.

How To Use

  1. Install the package via composer

  2. Implement the providers in your app configurations at config/app.php

  3. Add a constant in the start of your bootstart/app.php to measure the execution time of your api.

  4. Add our middleware in App\Http\Kernel to short circuit the computation process to redis when the URL key is found.

  5. Don't forget to set up your CACHE env implementation.

Output

  1. We measure and deliver the endpoint execution time via response header X-Elapsed-Time.
  2. You need to send a Header in order to use the caching mechanism. If the header is not found on the request, the request will be computed normally. The header you need to set is X-Cache-URL with either value of with-auth or without-auth.
  3. When the value without-auth is being used, the application will short circuit the computation process to Redis with finding the key of request URL.
  4. However if the value with-auth is used, the application will use the Redis with key format : {application-url}:{authorization-header-value} with authorization-header-value is your JWT token with Bearer format removed.
  5. As of now the cache will last 60 minutes and won't cache another value unless you use header X-Cache-URL-Invalidate, you can use it to invalidate the cache value after transaction or any other database change.

All versions of cache-url-redis with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
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 ordent/cache-url-redis contains the following files

Loading the files please wait ....