PHPackages                             ilyaserdyuk/notices - 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. ilyaserdyuk/notices

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

ilyaserdyuk/notices
===================

Notices for Zend Framework 2/3

1.0(8y ago)041MITPHPPHP ^5.6 || ^7.0

Since Jul 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/IlyaSerdyuk/notices)[ Packagist](https://packagist.org/packages/ilyaserdyuk/notices)[ RSS](/packages/ilyaserdyuk-notices/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

Notices for Zend Framework 2/3
==============================

[](#notices-for-zend-framework-23)

Extension for displaying messages in Zend Framework 2/3 and Twitter bootstrap 3 applications.

Installation
------------

[](#installation)

Use [Composer](http://getcomposer.org):

```
$ composer require ilyaserdyuk/notices:^1.0
```

And add to layout:

```
notices() ?>
```

How use
-------

[](#how-use)

Send messages from the controllers:

```
class IndexController extends AbstractActionController
{
    public function indexAction()
    {
        $this->notices()->addSuccessMessage('You successfully read this important alert message.');
        $this->notices()->addInfoMessage('This alert needs your attention, but it\'s not super important.');
        $this->notices()->addWarningMessage('Better check yourself, you\'re not looking too good.');
        $this->notices()->addErrorMessage('Change a few things up and try submitting again.');
    }
}
```

Output:

```

        &times;

    Well done!
    You successfully read this important alert message.

        &times;

    Heads up!
    This alert needs your attention, but it's not super important.

        &times;

    Warning!
    Better check yourself, you're not looking too good.

        &times;

    Oh snap!
    Change a few things up and try submitting again.

```

How to configure
----------------

[](#how-to-configure)

You can customize the output template, turn off escaping and change the label of messages. To do this, add to config file (config/autoload/global.php):

```
return [
    'view_helper_config' => [
        'notices' => [
            'auto_escape' => true,
            'template_string' => '{text}',
            'label_for_status' => [
                Message::CLASS_SUCCESS => 'Успешно:',
                Message::CLASS_INFO => 'Информация:',
                Message::CLASS_WARNING => 'Предупреждение:',
                Message::CLASS_ERROR => 'Ошибка:',
            ],
        ],
    ],
];
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.8% 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

Unknown

Total

1

Last Release

3219d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6680cc827681dc906500af352398eea6e1accfddc6c14a909766484fd4aee716?d=identicon)[IlyaSerdyuk](/maintainers/IlyaSerdyuk)

---

Top Contributors

[![IlyaSerdyuk](https://avatars.githubusercontent.com/u/3463730?v=4)](https://github.com/IlyaSerdyuk "IlyaSerdyuk (23 commits)")[![stepdi](https://avatars.githubusercontent.com/u/2643330?v=4)](https://github.com/stepdi "stepdi (1 commits)")

---

Tags

mvczf2zf3noticesmessager

### Embed Badge

![Health badge](/badges/ilyaserdyuk-notices/health.svg)

```
[![Health](https://phpackages.com/badges/ilyaserdyuk-notices/health.svg)](https://phpackages.com/packages/ilyaserdyuk-notices)
```

###  Alternatives

[zf-commons/zfc-base

A set of genetic (abstract) classes which are commonly used across multiple modules.

1441.1M25](/packages/zf-commons-zfc-base)[snapshotpl/zf-snap-geoip

MaxMind GeoIP Module for Zend Framework 2

1512.9k](/packages/snapshotpl-zf-snap-geoip)

PHPackages © 2026

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