sergiors / applyzer
A simple way to invoke setter methods
Installs: 254
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 1
Open Issues: 0
pkg:composer/sergiors/applyzer
Requires
- php: >=5.3
Requires (Dev)
- phpunit/phpunit: ~4.4
This package is not auto-updated.
Last update: 2025-10-11 22:24:51 UTC
README
A simple way to invoke setter methods.
When you work with setter methods, is very boring call the setter methods every time;
If you work something similar as below:
$user = new User(); $user ->setName($_POST['name']) ->setLastName($_POST['last_name']) ->setEmail($_POST['email']);
Now, with the Applyzer, the code will look like this:
$user = new User(); $user = Applyzer::apply($_POST, $user);
Installation
You can install with Composer
php composer.phar require sergiors/applyzer
License
Licensed under the MIT License.