PHPackages                             mensbeam/getters-and-setters - 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. mensbeam/getters-and-setters

ActiveLibrary

mensbeam/getters-and-setters
============================

Getter and setter method trait for PHP

v1.1.0(3y ago)0431MITPHPPHP &gt;=8.1

Since Jan 27Pushed 3y ago2 watchersCompare

[ Source](https://github.com/mensbeam/getters-and-setters)[ Packagist](https://packagist.org/packages/mensbeam/getters-and-setters)[ RSS](/packages/mensbeam-getters-and-setters/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (1)

Getters &amp; Setters
---------------------

[](#getters--setters)

Let's face it. Getters and setters in PHP sucks. Instead of having getter and setter accessor methods for classes we instead have the `__get` and `__set` magic methods to handle all properties. Not only are they unwieldy to use when you have many properties they also become difficult to handle when inheriting, especially when traits are involved. This trait attempts to create hackish getter and setter methods that can be extended by simple inheritance.

This trait was originally called MagicProperties and was available in the `mensbeam/framework` package. That one has been discontinued.

This is a stub. Documentation is forthcoming.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Total

4

Last Release

1178d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fa45644fa8847647e3d12802571072bbd4f3da8d27ed03f6f8df3c3859db6f6e?d=identicon)[dustinwilson](/maintainers/dustinwilson)

---

Top Contributors

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

---

Tags

gettergetters-and-setterssettertrait

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mensbeam-getters-and-setters/health.svg)

```
[![Health](https://phpackages.com/badges/mensbeam-getters-and-setters/health.svg)](https://phpackages.com/packages/mensbeam-getters-and-setters)
```

PHPackages © 2026

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