I recently published a new package called Bag that provides immutable value objects for Laravel (and PHP in general). It relies on Laravel Collections and Validation and some other parts of the Laravel framework.
It's heavily inspired by spatie/laravel-data, so if you're familiar with it but are interested in the safety of immutable value objects, then you should definitely check out Bag. For a more detailed comparison of the two libraries, check out the Why Bag? page. Full docs can be found here.
I'm gearing up for a 1.0 release (see: the roadmap) and would love y'alls feedback. Feel free to either comment here, or open up issues on the GitHub repo.
You can install it using composer require dshafik/bag.
Thanks for reading, I'll leave you with Bag's cute little mascot:
https://preview.redd.it/tv90hmgt61yc1.png?width=1280&format=png&auto=webp&s=b5bb623104f2993b1ce03fb17633887b4dc69bb0 submitted by /u/dshafik
[link] [comments]
0 comments:
Post a Comment
Thanks