gdbots/pbjc
gdbots/pbjc is a compiler for PBJ schemas that generates PHP classes and supporting code, helping teams define typed messages and keep generated models in sync with schema changes. It streamlines schema-driven development for PHP projects.
Consider it when:
Look elsewhere when:
spatie/data-transfer-object, cebe/php-openapi), all of which have active maintainers.To executives: This is a small, permissively licensed (Apache-2.0) schema compiler that turns one data-contract definition into PHP classes, JSON Schema and JavaScript. It could cut hand-written boilerplate and cross-team drift for our API and event contracts. The catch: it is effectively unmaintained (no release since 2019, negligible adoption), so we would treat it as vendored source we own, not a vendor dependency. Recommendation: worth a short spike and a fork-and-pin decision, not a strategic bet.
To engineering: Single source of truth for payload types; generated PHP, JS and validators remove the "did the frontend and backend agree?" class of bug. It is a build-time tool, so blast radius is contained. Risks: zero upstream activity, no security patching, sparse docs and examples — budget a few days to read the source and stand up a tested fork before relying on it. If we do not want to own a compiler, standardise on protobuf or OpenAPI codegen instead.
How can I help you explore Laravel packages today?