PHPackages                             piano/accessor - 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. piano/accessor

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

piano/accessor
==============

A creator of getter and setter method by using annotations!

0.2(10y ago)3161PHP

Since May 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/diogocavilha/piano-accessor)[ Packagist](https://packagist.org/packages/piano/accessor)[ RSS](/packages/piano-accessor/feed)WikiDiscussions master Synced 3w ago

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

[![Build Status](https://camo.githubusercontent.com/5851c6d82ed0c504c350ff5c769de7823f89e2b9734bbef7c8aa4a762e51a874/68747470733a2f2f7472617669732d63692e6f72672f64696f676f636176696c68612f7069616e6f2d6163636573736f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/diogocavilha/piano-accessor)[![Latest Stable Version](https://camo.githubusercontent.com/6b396b471e2e631de3be8b51acaabe292ea05b299138dffcf6c33df5d6e78da5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7069616e6f2f6163636573736f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/piano/accessor)

Piano Accessor
==============

[](#piano-accessor)

This package allows us to create getters and setters just by using a few annotations.

Installing
==========

[](#installing)

```
composer require piano/accessor
```

Usage example
=============

[](#usage-example)

See the example:

This `User` class:

```
