PHPackages                             aedart/athenaeum-properties - 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. aedart/athenaeum-properties

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

aedart/athenaeum-properties
===========================

Provides means to dynamically deal with inaccessible properties, by implementing some of PHP's magic methods

9.25.1(2mo ago)01.7k↓33.3%1BSD-3-ClausePHPPHP ^8.3

Since Apr 15Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/aedart/athenaeum-properties)[ Packagist](https://packagist.org/packages/aedart/athenaeum-properties)[ Docs](https://aedart.github.io/athenaeum/)[ RSS](/packages/aedart-athenaeum-properties/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (166)Used By (1)

Athenaeum Properties
====================

[](#athenaeum-properties)

Provides means to dynamically deal with inaccessible properties, by implementing some of PHP's [magic methods](https://www.php.net/manual/en/language.oop5.magic.php).

The usage of getters- and setters-methods is enforced, ensuring that if a property is indeed available, its corresponding getter or setter method will be invoked.

The term 'overload', in this context, refers to [PHP’s own definition hereof](http://php.net/manual/en/language.oop5.overloading.php).

Example
-------

[](#example)

```
use Aedart\Properties\Overload;

/**
 * @property string|null $name Name of a person
 */
class Person
{
    use Overload;

    protected string|null $name = null;

    public function getName() : string
    {
	    return $this->name;
    }

    public function setName(string $value)
    {
        if(empty($value)){
            throw new InvalidArgumentException('Provided name is invalid');
        }

        $this->name = $value;

        return $this;
    }
}
```

Elsewhere in your application, you can invoke the following:

```
$person = new Person();
$person->name = 'Alin'; // Invokes the setName(...)

echo $person->name;	// Invokes the getName(), then outputs 'Alin'
echo isset($person->name); // Invokes the __isset(), then outputs true

unset($person->name); // Invokes the __unset() and destroys the name property
```

Documentation
-------------

[](#documentation)

Please read the [official documentation](https://aedart.github.io/athenaeum/) for additional information.

Repository
==========

[](#repository)

The mono repository is located at [github.com/aedart/athenaeum](https://github.com/aedart/athenaeum)

Versioning
----------

[](#versioning)

This package follows [Semantic Versioning 2.0.0](http://semver.org/)

License
-------

[](#license)

[BSD-3-Clause](http://spdx.org/licenses/BSD-3-Clause), Read the LICENSE file included in this package

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance87

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

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

Total

165

Last Release

66d ago

Major Versions

4.2.1 → 5.0.02020-10-04

5.27.0 → 6.0.02022-04-05

6.8.1 → 7.0.02023-02-16

7.33.0 → 8.0.02024-03-18

8.22.0 → 9.0.02025-03-04

PHP version history (6 changes)v4.0PHP &gt;=7.4.0

6.0.0PHP ^8.0.2

7.0.0PHP ^8.1

7.21.0PHP ^8.1.22

8.0.0PHP ^8.2

9.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b0ca9598955b15d361ffb37656bc1a2e698e8f0850645c1c3872f0b018ac9d2?d=identicon)[aedart](/maintainers/aedart)

---

Top Contributors

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

---

Tags

magic-methodsoverloadingpropertiespropertiesAthenaeumoverloadingmagic methods

### Embed Badge

![Health badge](/badges/aedart-athenaeum-properties/health.svg)

```
[![Health](https://phpackages.com/badges/aedart-athenaeum-properties/health.svg)](https://phpackages.com/packages/aedart-athenaeum-properties)
```

###  Alternatives

[vanilo/properties

Vanilo Properties (Attributes) Module

11105.2k2](/packages/vanilo-properties)[antares/accessible

PHP library that allows you to define your class' getters, setters and constructor with docblock annotations.

123.9k1](/packages/antares-accessible)

PHPackages © 2026

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