Download the PHP package comporu/cache without Composer

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

Cache SensioLabsInsight

A simple cache library. Implements different adapters that you can use and change easily by a manager or similar.

Latest version Latest version Software License Build Status Coverage Status Quality Score Sensiolabs Insight Total Downloads Today Downloads Gitter

Installation

With Composer

It is best installed it through packagist by including desarrolla2/cache in your project composer.json require:

Without Composer

You can also download it from [Github] (https://github.com/desarrolla2/Cache), but no autoloader is provided so you'll need to register it with your own PSR-0 compatible autoloader.

Usage

Adapters

Apcu

Use it if you will you have APC cache available in your system.

File

Use it if you will you have dont have other cache system available in your system or if you like to do your code more portable.

Memcache

Use it if you will you have mencache available in your system.

You can config your connection before

Memcached

Is the same like mencache adapter.

Memory

This is the fastest cache type, since the elements are stored in memory. Cache Memory such is very volatile and is removed when the process terminates. Also it is not shared between different processes.

Memory cache have a option "limit", that limit the max items in cache.

Mongo

Use it to store the cache in a Mongo database. Requires the (legacy) mongo extension or the mongodb/mongodb library.

You may pass either a database or collection object to the constructor. If a database object is passed, the items collection within that DB is used.

Note that expired cache items aren't automatically deleted. To keep your database clean, you should create a ttl index.

Mysqli

Use it if you will you have mysqlnd available in your system.

NotCache

Use it if you will not implement any cache adapter is an adapter that will serve to fool the test environments.

Predis

Use it if you will you have redis available in your system.

You need to add predis as dependency in your composer file.

other version will have compatibility issues.

If you need to configure your predis client, you will instantiate it and pass it to constructor.

Coming soon

This library implements other adapters as soon as possible, feel free to send new adapters if you think it appropriate.

This can be a list of pending tasks.

Contact

You can contact with me on @desarrolla2.


All versions of cache 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 comporu/cache contains the following files

Loading the files please wait ....