Download the PHP package maegnes/slim-caching-manager without Composer

On this page you can find all versions of the php package maegnes/slim-caching-manager. 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 slim-caching-manager

SlimCachingManager

Works under https://github.com/codeguy/Slim ~2.3 (>= 2.3 AND < 3.0)

The SlimCachingManager helps you to simplify caching and the delivery of the cached data of the Slim Framework resources. It stores the caching data for each resource (etag, expiry, lastmodified etc.) in ResourceHandlers which can be written on your own by implementing the IResourceHandler.

It's helpful for resources which doesn't have any physical changes to detect that the resource has been changed (e.g. database query results). It's possible to define resources (wildcard notation possible) which you'd like to have cached. SlimCachingManager will automatically check if the resource should or is being cached at the moment. The rest is quite simple.

You want to use SlimCachingManager? Just follow the steps at the bottom of the page. All your headers (Etag, Lastmodified, expiry) will be set by SlimCachingManager.

If you have any questions or suggestions to improve SlimCachingManager feel free to contact me. If you want to contribute just add a new branch and send me a pull request.

Best regards Magnus

Installation via Composer

Add the following dependency to your composer.json file.

{
    "require": {
        "maegnes/slim-caching-manager": "dev-master"
    }
}

Usage

  1. Create instance of Slim
  2. Add resources to the ResourceMapper which should be cached (Wildcards allowed!)
  3. Add a before.dispatch hook or middleware (in the example it's done by hook)
  4. Create instance of SlimCachingManager\ResourceMapper\Etag() or SlimCachingManager\ResourceMapper\Lastmodified() (depends on needed cache method)
  5. Inject your the ResourceHandler into ResourceMapper
  6. Inject the Slim application into ResourceMapper
  7. Call method setHeaders()

Example

If you don't want to use the "Textfile" Resourcehandler just write your own by implementing SlimCachingManager\ResourceHandler\IResourceHandler!

Have fun!


All versions of slim-caching-manager with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
slim/slim Version 2.*
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 maegnes/slim-caching-manager contains the following files

Loading the files please wait ....