PHPackages                             nekoos-pood/propertyable - 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. nekoos-pood/propertyable

Abandoned → [nekoos/php-property-decorator](/?search=nekoos%2Fphp-property-decorator)Library[Utility &amp; Helpers](/categories/utility)

nekoos-pood/propertyable
========================

Simple manager for

v1.1.0(4y ago)22.1kMITPHPCI failing

Since Aug 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/NekoOs/php-property-decorator)[ Packagist](https://packagist.org/packages/nekoos-pood/propertyable)[ RSS](/packages/nekoos-pood-propertyable/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (10)Used By (0)

PHP Property Decorator
======================

[](#php-property-decorator)

Properties combine aspects of both fields and methods. To the user of an object, a property appears to be a field, accessing the property requires the same syntax. To the implementer of a class, a property is one or two code blocks, representing a get accessor and/or a set accessor.

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

[](#installation)

```
composer require "nekoos/php-property-decorator:dev-master"
```

Usage
-----

[](#usage)

### General use

[](#general-use)

This library provides your with a built-in @property decorator as DocBlock which makes use of getter and setters much easier in Object-Oriented Programming.

```
use NekoOs\Decorator\Concerns\HasDecoratorProperties;

require_once "vendor/autoload.php";
/**
 * @property int $age {read getAge} {write setAge}
 */
class SomeClass
{
    use HasDecoratorProperties;

    private $age;

    public function getAge() : int
    {
        return $this->age;
    }

    public function setAge(int $value): void
    {
        $this->age= $value;
    }
}

$someClass = new SomeClass();

$someClass->age = '33';

var_dump($someClass->age);      # int(33)
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~167 days

Total

5

Last Release

1782d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.0.0

v1.0.1PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f6943e57a600055ce38141834bb9616c01b189c3770a07e9a990a49b92e3619?d=identicon)[NekoOs](/maintainers/NekoOs)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nekoos-pood-propertyable/health.svg)

```
[![Health](https://phpackages.com/badges/nekoos-pood-propertyable/health.svg)](https://phpackages.com/packages/nekoos-pood-propertyable)
```

PHPackages © 2026

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