yaquawa / look-alike
A tiny lib for copy properties from one to another.
Installs: 90
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.2
Requires (Dev)
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2024-10-29 05:29:17 UTC
README
A tiny lib for copy properties from one to another even if the property is not public.
Installation
composer require yaquawa/look-alike
Usage
use Yaquawa\LookAlike\LookAlike; $lookAlike = new LookAlike($targetObjectOrClass); $lookAlike->syncProperties($objectOrClass, ['property_1', 'property_2']);