PHPackages                             hrevert/ht-settings-module - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hrevert/ht-settings-module

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hrevert/ht-settings-module
==========================

Flexible Settings module for Zend Framework 2 applications

0.1.0(11y ago)3451[1 issues](https://github.com/hrevert/HtSettingsModule/issues)MITPHPPHP &gt;=5.4

Since Jun 2Pushed 11y ago4 watchersCompare

[ Source](https://github.com/hrevert/HtSettingsModule)[ Packagist](https://packagist.org/packages/hrevert/ht-settings-module)[ Docs](https://github.com/hrevert/HtSettingsModule)[ RSS](/packages/hrevert-ht-settings-module/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (11)Versions (4)Used By (0)

HtSettingsModule
================

[](#htsettingsmodule)

[![Master Branch Build Status](https://camo.githubusercontent.com/41dd7cca5bfc6dafbb7e9aa1f34df7842db045c2549adf9a0e5259c5fd8dcdf6/68747470733a2f2f6170692e7472617669732d63692e6f72672f687265766572742f487453657474696e67734d6f64756c652e737667)](http://travis-ci.org/hrevert/HtSettingsModule)[![Latest Stable Version](https://camo.githubusercontent.com/2319fc9b135cc1a11bc7eaa0c22fc59e65d2923403cbd7b286466d90747e01bd/68747470733a2f2f706f7365722e707567782e6f72672f687265766572742f68742d73657474696e67732d6d6f64756c652f762f737461626c652e706e67)](https://packagist.org/packages/hrevert/ht-settings-module)[![Latest Unstable Version](https://camo.githubusercontent.com/09191b7af0c5be23dcde1e803c1a3a7a7aae7fb554d2871be0801b82f2468abe/68747470733a2f2f706f7365722e707567782e6f72672f687265766572742f68742d73657474696e67732d6d6f64756c652f762f756e737461626c652e706e67)](https://packagist.org/packages/hrevert/ht-settings-module)[![Total Downloads](https://camo.githubusercontent.com/fb6b5d225ad4ec6e4d813c18bb98398390e5eaac2377dff117c533aedb082b93/68747470733a2f2f706f7365722e707567782e6f72672f687265766572742f68742d73657474696e67732d6d6f64756c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/hrevert/ht-settings-module)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5965ebc44136d10e9e81d6da0bc039cea27d06ba8d9125df13e3691c4ef1ca9d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f687265766572742f487453657474696e67734d6f64756c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/hrevert/HtSettingsModule/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/9c95ffa313eec41d7f40a2dbcf23498447d6103b1ab7335f5d36b18d01eea038/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f687265766572742f487453657474696e67734d6f64756c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/hrevert/HtSettingsModule/?branch=master)

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.

Getting started guide
---------------------

[](#getting-started-guide)

##### Storing settings

[](#storing-settings)

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

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

##### Retrieving settings

[](#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
------------

[](#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](/docs/storage-adapters.md) for setting up a storage adapter

Docs
----

[](#docs)

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

Acknowledgements
----------------

[](#acknowledgements)

HtSettingsModule is inspired by [SyliusSettingsBundle](https://github.com/Sylius/SyliusSettingsBundle).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~26 days

Total

2

Last Release

4335d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a78ca1505c93127e0ac82e195481baf87cb6f3fae3bd4dcc18b5cfb85ce425ed?d=identicon)[hrevert](/maintainers/hrevert)

---

Top Contributors

[![ojhaujjwal](https://avatars.githubusercontent.com/u/4995501?v=4)](https://github.com/ojhaujjwal "ojhaujjwal (99 commits)")

---

Tags

SettingsZendFrameworkmodulezf2hrevert

### Embed Badge

![Health badge](/badges/hrevert-ht-settings-module/health.svg)

```
[![Health](https://phpackages.com/badges/hrevert-ht-settings-module/health.svg)](https://phpackages.com/packages/hrevert-ht-settings-module)
```

###  Alternatives

[hrevert/ht-img-module

Image manipulation module for Zend Framework 2

1829.6k2](/packages/hrevert-ht-img-module)[akrabat/akrabat-session

A Zend Framework 2 module for configuring sessions

134.5k](/packages/akrabat-akrabat-session)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
