Download the PHP package mitogh/on-cache-please without Composer

On this page you can find all versions of the php package mitogh/on-cache-please. 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 on-cache-please

On Cache Please Build Status

Because programmers are to lazy to write repeated code, this utility automatically storages the data of a callback in a transient to faster access the next time the data is accessed.

Description

This utility can help you to create faster cache storage of expensive external request or hard work into the DB to faster access the next time, to retrive the value from a cache rather than the function, this library make uses of transient api to save the data from the requests into the DB.

Requirements.

Installation.

The easiest way to install this library is using composer, in order to add this library as a dependency for your composer file you only need to run in your terminal:

To retrive the library from packagist. This will add the on-cache-please library as a dependency in your composer.json file.

The other way is directly include the file:

Into your functions.php file in your theme or in your plugin.

Methods and Properties

Here are listed only the public methods that are available to be used from the outside of the library.

OnCache::please

This static method is the public way to storaged the data from a function in a transient by a determined amount of time in order to decrease the number of request and download time.

Parameters

You can pass an array of arguments to the method please in order to update some default values and some required params as well.

Example

In this example we retrieve the data from http://codepen.io/jobs.json and store the result in a transient that has a duration (by default of 1 hour), so the next hour we are going to have the latest updated data wiouth having to make a request every time the page is loaded.

Library installed via composer.json

Library installed manually:


All versions of on-cache-please with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
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 mitogh/on-cache-please contains the following files

Loading the files please wait ....