2017 © Pedro Peláez
 

library hubert-cache

Hubert extension for caching

image

falkm/hubert-cache

Hubert extension for caching

  • Tuesday, September 19, 2017
  • by falkmueller
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Hubert Cache Extension

Installation

Hubert is available via Composer:, (*1)

{
    "require": {
        "falkm/hubert-cache": "1.*"
    }
}

Usage

Create an index.php file with the following contents:, (*2)

<?php

require 'vendor/autoload.php';

$app = new hubert\app();

$config = array(
    "factories" => array(
         "cache" => array(hubert\extension\cache\factory::class, 'get')
        ),
    "config" => array(
        "display_errors" => true,
        "cache" => array(
                "path" => __dir__.'/cache/',
            )
        ),
    "routes" => array(
        "home" => array(
            "route" => "/", 
            "method" => "GET|POST", 
            "target" => function($request, $response, $args){
                hubert()->cache->set("test", "hubert");
                echo  hubert()->cache->get("test");
            })
    ),

);

hubert($config);
hubert()->core()->run();

For more see the example in this repository., (*3)

components

License

The MIT License (MIT). Please see License File for more information., (*4)

The Versions

19/09 2017

dev-master

9999999-dev http://falk-m.de/

Hubert extension for caching

  Sources   Download

MIT

The Requires

 

The Development Requires

by Falk Müller

framework php

19/09 2017

1.0.0

1.0.0.0 http://falk-m.de/

Hubert extension for caching

  Sources   Download

MIT

The Requires

 

The Development Requires

by Falk Müller

framework php