2017 © Pedro Peláez
 

library zf2-application-variable

Zend Framework 2 module providing application level variables

image

chathura86/zf2-application-variable

Zend Framework 2 module providing application level variables

  • Tuesday, April 22, 2014
  • by chathura86
  • Repository
  • 1 Watchers
  • 0 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

zf2-application-variable

Application level variables for Zend 2, (*1)

(This is a customized version and not yet suitable for general use. I'll update this once it is suitable for general use. How ever feel free to use it if you know what you are doing.), (*2)

Requirements

  • Zend Framework 2 (https://github.com/zendframework/zf2). Tested on Zend Framework 2.0.0beta4.
  • PHP 5.3 or gather

Installation

  1. On your composer.json add: ``` json { "require": { "chathura86/zf2-application-variable": "dev-master" } }
  2. Run `php composer.phar install`
  3. Open ``configs/application.config.php`` and add ``'AppVariableBundle'`` to your ``'modules'`` parameter.


## How to setup
``` php
<?php
// configs/autoload/local.php
return array(
    // other configurations
    'AppVariableBundle' => array(
        'driver' => 'memory',           // available drivers memory|file
        'path' => sys_get_temp_dir()    // requred only for file based driver
    )
);
?>

How to use

php // in controller $this->getServiceLocator()->get('AppVariable') // VariableManager object, (*3)

The Versions

22/04 2014

dev-master

9999999-dev https://github.com/chathura86/zf2-application-variable

Zend Framework 2 module providing application level variables

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 application variables app variables