PHPackages                             open20/amos-news - 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. open20/amos-news

ActiveComponent

open20/amos-news
================

Sistema AMOS per le news

1.43.1(3mo ago)093PHPPHP &gt;=5.4.0

Since Feb 22Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/regionelombardia-open20/open2-news)[ Packagist](https://packagist.org/packages/open20/amos-news)[ Docs](http://www.open20.it/)[ RSS](/packages/open20-amos-news/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (22)Versions (67)Used By (0)

Amos News
=========

[](#amos-news)

News management.

### Installation

[](#installation)

You need to require this package and enable the module in your configuration.

add to composer requirements in composer.json

```
"open20/amos-news": "dev-master",

```

or run command bash:

```
composer require "open20/amos-news:dev-master"
```

Enable the News modules in modules-amos.php, add :

```
 'news' => [
	'class' => 'open20\amos\news\AmosNews',
 ],
```

add news migrations to console modules (console/config/migrations-amos.php):

```
'@vendor/open20/amos-news/src/migrations'

```

If a frontend or a public site are used in your project and news need to be visible outside backend, enable form/wizard fields to allow publication in frontend/home page with params:

```
'news' => [
        'class' => 'open20\amos\news\AmosNews',
        'params' => [
            'site_publish_enabled' => true,
            'site_featured_enabled' => true
        ]
    ],
```

The content is suitable to be used with cwh content management. To do so:

- Activate cwh plugin
- Open cwh configuration wizard (admin privilege is required) url: /cwh/configuration/wizard
- search for news in content configuration section
- edit configuration of news and save

If tags are needed enable this module in "modules-amos.php" (backend/config folder in main project) in tag section. After that, enable the trees in tag manager.

If platform uses report and/or comments and you want to enable News to be commented/to report a content, add the model to the configuration in modules-amos.php:

for reports:

```
 'report' => [
     'class' => 'open20\amos\report\AmosReport',
     'modelsEnabled' => [
        .
        .
        'open20\amos\news\models\News', //line to add
        .
        .
     ]
     ],

```

for comments:

```
  'comments' => [
    'class' => 'open20\amos\comments\AmosComments',
    'modelsEnabled' => [
        .
        .
        'open20\amos\news\models\News', //line to add
        .
        .
 	],
  ],

```

### Configurable fields

[](#configurable-fields)

Here the list of configurable fields, properties of module AmosNews. If some property default is not suitable for your project, you can configure it in module, eg:

```
 'news' => [
	'class' => 'open20\amos\news\AmosNews',
	'validatePublicationDate' => false, //changed property (default was true)
 ],
```

- **validatePublicationDate** - boolean, default = true
    If this attribute is true the validation of the publication date is active.
    By default, you can ONLY validate news with publication\_date greater or equal than TODAY.
    Set to false to allow validation for news with publication\_date less than TODAY.
- **filterCategoriesByRole** - boolean, default = false
    If true, enables category role check via table news\_category\_roles\_mm.
    By default news category are available to all users.
    In case categories are in association with rbac roles, populate table 'news\_category\_roles\_mm' and set to true the Module property filterCategoriesByRole in configurations:

```
    'news' => [
      'class' => 'open20\amos\news\AmosNews',
      'filterCategoriesByRole' => true
    ]
```

- **hidePubblicationDate** - boolean, default = false
    The news created are always visible, hide fields publication\_from, publication\_to
- **newsRequiredFields** - array, default = \['news\_categorie\_id', 'titolo', 'status', 'descrizione\_breve'\]
    Mandatory fields in news form: by default news category, title and status are mandatory.
    If in your platform, for example, you don't want title to be a mandatory field, overwrite newsRequiredFields property as below:

```
'news' => [
    'class' => 'open20\amos\news\AmosNews',
    'newsRequiredFields' => ['news_categorie_id', 'status']
],
```

- **defaultCategory** - integer The ID of the default category pre-selected for the new News

```
'news' => [
    'class' => 'open20\amos\news\AmosNews',
    'defaultCategory' => 3
],
```

- **autoUpdatePublicationDate** - boolean, default = false
    This set the auto update of the publication date on the save if the news is published

```
'news' => [
    'class' => 'open20\amos\news\AmosNews',
    'autoUpdatePublicationDate' => true
],
```

- **$enableCategoriesForCommunity** - boolean, default = false
- **$showAllCategoriesForCommunity** - boolean, default = false
- **$whiteListRolesCategories** - default = \['ADMIN', 'BASIC\_USER'\]

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance81

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~74 days

Recently: every ~246 days

Total

35

Last Release

100d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6eb97765ff9c2a6c83df362376ac9fe8f21e4ac4c3b65fd1e2380233178fe500?d=identicon)[open2.0](/maintainers/open2.0)

---

Top Contributors

[![StefanoCavazzini](https://avatars.githubusercontent.com/u/27275250?v=4)](https://github.com/StefanoCavazzini "StefanoCavazzini (2 commits)")[![waltermazza](https://avatars.githubusercontent.com/u/46817459?v=4)](https://github.com/waltermazza "waltermazza (1 commits)")

---

Tags

yii2 newsamos

### Embed Badge

![Health badge](/badges/open20-amos-news/health.svg)

```
[![Health](https://phpackages.com/badges/open20-amos-news/health.svg)](https://phpackages.com/packages/open20-amos-news)
```

PHPackages © 2026

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