PHPackages                             new-inventor/parametrized - 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. new-inventor/parametrized

ActiveLibrary

new-inventor/parametrized
=========================

Trait for adding parameters for class

v1.0.1(9y ago)010MITPHPPHP &gt;=5.6.0

Since Feb 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/new-inventor/parametrized)[ Packagist](https://packagist.org/packages/new-inventor/parametrized)[ RSS](/packages/new-inventor-parametrized/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

\#Parametrized

Трейт для добавления функционала параметров к классу

\##Установка

через composer

`composer require new-inventor/parametrized`

\##Принцип работы

Подключаем трейт к классу

`use Parametrized;`

Прописываем статический параметр

`$defaults = [ => ];`

все.

Теперь можно устанавливать параметры несколькими способами:

```
class MyParams {
    use Parametrized;
    protected static $defaults = [
        'name' => '',
        'description' => null,
    ];
}

$params = new MyParams();
$params->load([
    'name' => 'Name',
    'description' => 'null,
]);

$params->name = 'Jack';
$params->name('Max');

```

Также есть несколько полезных функций

```
//преобразует параметры в массив
$params->toArray();

//Создает отображение параметров в другой массив.
$params->map(
    [
        'name' => 'title',
        'description' => 'descr'
    ],
    false
);

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

3357d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2084172da990b68442d9b2af5c9cd30a006522fc74984a586b02066168f89733?d=identicon)[George Ionov](/maintainers/George%20Ionov)

### Embed Badge

![Health badge](/badges/new-inventor-parametrized/health.svg)

```
[![Health](https://phpackages.com/badges/new-inventor-parametrized/health.svg)](https://phpackages.com/packages/new-inventor-parametrized)
```

PHPackages © 2026

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