palanik / slim-apc-cache
Cache Middleware for PHP Slim micro framework using APC Cache
Installs: 70
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/palanik/slim-apc-cache
Requires
- slim/slim: 2.4.0
This package is auto-updated.
Last update: 2025-09-24 15:09:58 UTC
README
Cache Middleware for PHP Slim micro framework using APC Cache
How to Install
- Update your
composer.json
to require thepalanik/slim-apc-cache
package. - Run
composer install
to add SlimAPCCache your vendor folder.
{ "require": { "palanik/slim-apc-cache": "0.0.2.*" } }
##How to Use this Middleware
<?php require ('./vendor/autoload.php'); $app = new \Slim\Slim(); use palanik\SlimAPCCache\SlimAPCCache; $app->add(new SlimAPCCache(array( 'ttl' => 60, 'caching_prefix' => 'myapp_', ))); $app->get('/foo', function () use ($app) { echo "Hello Bar"; }); $app->run(); ?>