Download the PHP package quintype/caching without Composer

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

quintype-caching-php

A composer package for caching for all quintype PHP projects. All publisher websites should be cached to reduce load to the server.

Important : If any change is made to the package, do the following.

Instructions to include the package into a project.

In composer.json, require Caching package.

Install or update the composer packages.

In the Laravel config/app.php file, add aliases to the packages for convenience.

Include both Caching class in the necessary controllers.

Create a constructor function to initialize the Caching object and to set default caching parameters..

Call the function using the created object. Pass all necessary details that will be used for setting cache headers to the function as an associative array.

The argument is an associative array with following keys:

  1. publisherId
  2. cdnTTLs: Corresponds to Surrogate-Control values.
    1. max-age: This controls how long the page is considered fresh in the Database.
    2. stale-while-revalidate: During this period, the page is served from CDN, but updated in the background.
    3. stale-if-error: During this time, the page is served from CDN in case the backend server crashes for whatever reason.
  3. browserTTLs: Corresponds to Cache-Control values
    1. max-age
  4. locationId(not required for story page): home or section-id
  5. storyGroup(not required for story page): top or stack-id
  6. storiesToCache:
    1. Array of all collections under a key for each of them, if driven through collections.
    2. Array of all the stories that have to be cached, if driven through stories.
  7. storiesFrom(required for collection driven page): collection

All versions of caching with dependencies

PHP Build Version
Package Version
No informations.
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 quintype/caching contains the following files

Loading the files please wait ....