PHPackages                             entire-studio/dynamic-accessors - 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. entire-studio/dynamic-accessors

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

entire-studio/dynamic-accessors
===============================

Dynamic setters and getters. While it can be done, it doesn't mean you should do it.

v1.9.1(9mo ago)27MITPHPPHP &gt;=8.2CI passing

Since May 30Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/entire-studio/dynamic-accessors)[ Packagist](https://packagist.org/packages/entire-studio/dynamic-accessors)[ RSS](/packages/entire-studio-dynamic-accessors/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (13)Used By (0)

Dynamic Accessors
=================

[](#dynamic-accessors)

[![Packagist Version (including pre-releases)](https://camo.githubusercontent.com/2e3c13a778e397b494ee93e7760f9289ba13efa6da26733605ffc75ddbc69f5e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e746972652d73747564696f2f64796e616d69632d6163636573736f72733f696e636c7564655f70726572656c6561736573)](https://camo.githubusercontent.com/2e3c13a778e397b494ee93e7760f9289ba13efa6da26733605ffc75ddbc69f5e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e746972652d73747564696f2f64796e616d69632d6163636573736f72733f696e636c7564655f70726572656c6561736573)[![GitHub release (latest SemVer including pre-releases)](https://camo.githubusercontent.com/6a51e0fd3105d4d6ddb6fcb31539c6561a3806430114eedaab327b1ca96272aa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f656e746972652d73747564696f2f64796e616d69632d6163636573736f72733f696e636c7564655f70726572656c656173657326736f72743d73656d766572)](https://camo.githubusercontent.com/6a51e0fd3105d4d6ddb6fcb31539c6561a3806430114eedaab327b1ca96272aa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f656e746972652d73747564696f2f64796e616d69632d6163636573736f72733f696e636c7564655f70726572656c656173657326736f72743d73656d766572)[![CI](https://github.com/entire-studio/dynamic-accessors/actions/workflows/ci.yml/badge.svg)](https://github.com/entire-studio/dynamic-accessors/actions/workflows/ci.yml)[![codecov](https://camo.githubusercontent.com/24c3c336ef3d051f75adc953d1cef8b416fcf45870e673164951e7c1b92cec52/68747470733a2f2f636f6465636f762e696f2f6769746875622f656e746972652d73747564696f2f64796e616d69632d6163636573736f72732f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d424c434a345756323544)](https://codecov.io/github/entire-studio/dynamic-accessors)

Dynamic setters and getters. While it can be done, it doesn't mean you should do it.

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

[](#installation)

Install the latest version with

```
$ composer require entire-studio/dynamic-accessors
```

Examples
--------

[](#examples)

### Basic - accessors on class properties

[](#basic---accessors-on-class-properties)

```
