chathura86 / zf2-application-variable
Zend Framework 2 module providing application level variables
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/chathura86/zf2-application-variable
Requires
- php: >=5.3.3
- zendframework/zendframework: 2.*
Requires (Dev)
- zendframework/zendframework: dev-master
This package is not auto-updated.
Last update: 2025-11-03 21:00:12 UTC
README
Application level variables for Zend 2
(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.)
Requirements
- Zend Framework 2 (https://github.com/zendframework/zf2). Tested on Zend Framework 2.0.0beta4.
- PHP 5.3 or gather
Installation
- On your
composer.jsonadd:
{
"require": {
"chathura86/zf2-application-variable": "dev-master"
}
}
- Run
php composer.phar install - Open
configs/application.config.phpand add'AppVariableBundle'to your'modules'parameter.
How to setup
<?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
// in controller $this->getServiceLocator()->get('AppVariable') // VariableManager object