GetSetGo is a dynamic setter-getter library for PHP 5.4+. Its developed by me and Muhammed Usman, and yes, it's well unit tested. You can use methods like setFoo('bar') and getFoo(), which you don't have to create (in your class). GetSetGo will make these methods work for you automatically as long as you have a $foo property in your class. It makes use of Traits, so using it is super simple, you don’t have to extend any class, as you can extend a single class only, we don’t force you to use ours. You can restrict to only getter or setter or you can specify a Type for property using annotations. View on GitHub – Packagist
Installation
GetSetGo uses Composer to make it easy to use. If you don't know how to use composer then learn it and add the following line in your composer.json file in the require section :