Download the PHP package webappid/lazy without Composer
On this page you can find all versions of the php package webappid/lazy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download webappid/lazy
More information about webappid/lazy
Files in webappid/lazy
Download webappid/lazy
More information about webappid/lazy
Files in webappid/lazy
Vendor webappid
Package lazy
Short Description A lightweight utility for copying data between arrays and PHP objects, with optional type autocasting.
License MIT
Package lazy
Short Description A lightweight utility for copying data between arrays and PHP objects, with optional type autocasting.
License MIT
Please rate this library. Is it a good library?
Informations about the package lazy
Lazy
Lazy is a simple PHP library that allows you to transform data from JSON arrays into PHP objects (POPOs), or copy data between two PHP classes with ease — optionally with type autocasting.
🚀 Features
- Transform associative arrays (e.g., from JSON) into PHP objects
- Copy data from one PHP object to another
- Autocast values to match property types using docblocks
- Lightweight, no external dependencies
🧱 Example: Array to Object
Suppose you have the following array:
And a plain PHP class (POPO) like this:
You can map the array to the object using Lazy:
🔄 Example: Object to Object
You can also copy values between two PHP objects:
💬 Support
If you have any questions or feedback, feel free to reach out:
- 📧 Email: [email protected]
- 💬 Telegram: @DyanGalih
🧘 Happy Coding!
Be Lazy. Be Efficient. Happy Coding with Lazy!
All versions of lazy with dependencies
PHP Build Version
Package Version
The package webappid/lazy contains the following files
Loading the files please wait ....