Skip to content

Latest commit

 

History

History
62 lines (39 loc) · 1.75 KB

INSTALL.md

File metadata and controls

62 lines (39 loc) · 1.75 KB

SimpleCacheAPCu Installation

You will need to have the PECL APCu installed and available.

SimpleCacheAPCu is a library, it is not a stand alone application.

If you want to use it in a project that is managed by Composer, make sure the following is within your composer.json file:

"require": {
    "awonderphp/simplecacheapcu": "^1.2"
},

As long as your composer.json allows the Packagist repository, that should pull in this library when you run the command:

composer install

Manual Installation

For manual installation, there are two other libraries you must install where your autoloader can find them first:

  1. psr/simple-cache
  2. AWonderPHP/SimpleCache

Both of those libraries include exception classes that also must be installed where your autoloader can find them.

Once those two dependencies are installed, there are two class files:

  1. SimpleCacheAPCu
  2. SimpleCacheAPCuSodium

The first class provides PSR-16 without encryption, the second provides PSR-16 with encryption.

Both files use the namespace AWonderPHP\SimpleCacheAPCu.

RPM Installation

I have started a project called PHP Composer Class Manager but it is not yet ready for deployment, and as of today (March 21 2018) it will likely be awhile.

Class Usage

Please see the file USAGE.md for class usage.


EOF