fungio/json-builder
A Laravel/PHP package for assembling JSON programmatically. It provides a fluent, chainable API to build nested arrays and objects cleanly, so you can generate structured JSON for APIs, configs, or dynamic payloads without hand-writing arrays. Keeps complex JSON construction readable and maintainabl...
json_encode behavior in Laravel.Consider it when:
JsonResponse/json_encode does not expose cleanly.Look elsewhere when:
json_encode flags, JsonResponse, or a maintained serializer.Executives: This is a tiny MIT-licensed utility that gives engineering precise control over JSON escaping—useful for security-sensitive HTML embedding and legacy PHP support. But it has no adoption and no community, so treat it as a vendor-and-own utility, not a strategic dependency. Recommend a time-boxed spike and internal ownership before adoption.
Engineering: Use it only where default JSON escaping is wrong for the output contract—HTML script contexts, legacy PHP, or deterministic snapshots. Wrap it behind an interface, vendor the code if adopted, and avoid spreading it through the codebase. Prefer native PHP 8+ flags for new work; treat this as a small internal utility, not a framework component.
How can I help you explore Laravel packages today?