bfg/object
A lightweight Laravel/PHP package for object utilities, offering simple helpers to create, inspect, and manipulate object data in a clean, consistent way. Easy to drop into existing projects and use alongside Laravel or standalone PHP code.
Arr-style helpers should live in a maintained third-party dependency or in your own app/Support layer. Given the signals here (1 star, 0 dependents, no visible adoption), the build side of that trade-off looks stronger.data_get, Arr::get, collections, spatie/laravel-data), adopting a parallel helper API creates two idioms for the same job. That's a consistency cost that shows up in code review and onboarding, not in benchmarks.Consider it when:
Look elsewhere when:
data_get(), Arr::get(), Arr::wrap(), collect()->toArray(), or spatie/laravel-data for structured DTOs. Choosing a novelty dependency over framework primitives needs a strong justification and there isn't one here.To executives: This is a very small utility package for moving data between objects and arrays. It carries no strategic value and no meaningful adoption: one star, no downstream dependents, and no evidence of a maintenance community. Recommendation is not to add it as a production dependency. The capability it offers is either already in Laravel or can be written in-house in under a day, so there is no cost to saying no and a real cost — supply-chain exposure and an unowned maintenance burden — to saying yes. No roadmap impact either way.
To engineering: Treat this as a reference implementation, not a dependency. Read the source, confirm whether it offers anything Arr, data_get, or a small internal helper doesn't already cover, and if it does, port those few functions into your own support layer with attribution. If the team genuinely wants it, the bar is: verified test suite, supported PHP/Laravel versions, and a documented owner on our side who will vendor it if upstream goes quiet. Absent that, default to framework primitives so we keep one idiom for data access across the codebase.
How can I help you explore Laravel packages today?