2017 © Pedro Peláez
 

library ht-settings-module

Flexible Settings module for Zend Framework 2 applications

image

hrevert/ht-settings-module

Flexible Settings module for Zend Framework 2 applications

  • Sunday, November 2, 2014
  • by hrevert
  • Repository
  • 4 Watchers
  • 3 Stars
  • 33 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

HtSettingsModule

Master Branch Build Status Latest Stable Version Latest Unstable Version Total Downloads Scrutinizer Code Quality Code Coverage, (*1)

HtSettingsModule is a module for adding settings support to your Zend Framework 2 application. This module does not provide any GUI for settings. It just provides a way for easy persistence of application settings., (*2)

Getting started guide

Storing settings
// From ServiceManager
$this->getServiceLocator()->get('HtSettingsManager')->save($settingsEntity, 'settings_namespace');

// From Controller
$this->settings()->save($settingsEntity, 'settings_namespace');
Retrieving settings
// From Controller
$settingsEntity = $this->settings('settings_namespace');

// From view templates
$settingsEntity = $this->settings('settings_namespace');

// From ServiceLocatorAware classes
$settingsEntity = $this->getServiceLocator()->get('HtSettingsManager')->getSettings('settings_namespace');

Installation

  • Add "hrevert/ht-settings-module": "0.1.*" to composer.json and run php composer.phar update
  • Register HtSettingsModule as module in config/application.config.php
  • Copy the file located in vendor/hrevert/ht-settings-module/config/ht-settings-module.global.php to config/autoload and change the values as you wish
  • Read this for setting up a storage adapter

Docs

The official documentation of HtSettingsModule is available in the /docs folder. Please read the quickstart guide to quickly get your hands dirty with this module., (*3)

Acknowledgements

HtSettingsModule is inspired by SyliusSettingsBundle., (*4)

The Versions

07/06 2014

dev-develop

dev-develop https://github.com/hrevert/HtSettingsModule

Flexible Settings module for Zend Framework 2 applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hrevert Technologies

settings zf2 module zendframework

02/06 2014