Download the PHP package christianklisch/phpcache without Composer

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

PHPCache v. 0.1.2

PHPCache is a simple file based object cache, caching big or complex calculated data in filesystem.

Use it for:

Features:

Installation

You can either install the script manually using the require method:

or use the composer:

This is currently the first release of PHPCache, so in this example you'll be able to update your script with any updates made to PHPCache.

Deploying

Include the script in your project either with Composer or via the manual require method and create a new instance of the class, using the appropriate parameters if needed:

Possible parameters include:

Primitive data type

Then cache an primitive data type with:

This will cache the string of the first parameter into a file named by second parameter. Use the second parameter setting key for primitive data types.

Object data type

Cache an object data type with:

This will cache the object in the first parameter into a file named by second parameter. Use the second parameter setting key as filename for object cache.

Object data type with automatic ID-getter

Define for each object type the id-key/primary key remove second id-parameter:

Now the objects id is automatically determined by PHPCache logic. Caching configuration is

Check for cached data

Check with the given key if data is cached. Can be used to call a new cacheVal().

Cache whole function calls

Like the value-caching you can cache results of complex logical function calls. The defined function will only be called in case of absence cached function results.

Please don't use function parametes. Submit your variables via the use()-keyword. It is important using one parameter named 'key' for caching. The name and count of other parameters is not important. Write the call of your complex logic inside the anonymous function. This code will be called, if your key isn't found in cache.

Delete old cached data

Delete old cached data in caching directory with:

Garbage Collector is not called automatically.

Clear caching directory

Delete all cached data in caching directory with:

Contributors

Copyright and license

Copyright 2014 Christian Klisch, released under the Apache license.


All versions of phpcache with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
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 christianklisch/phpcache contains the following files

Loading the files please wait ....