Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Json Schema Generator Laravel Package

evaisse/php-json-schema-generator

evaisse/php-json-schema-generator is a PHP library that builds JSON Schema definitions from classes using reflection and annotations. It maps property types, required fields, nested objects, and arrays, helping generate API contracts, validation schemas, and client models.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Accelerating API/schema documentation: Generate draft V4 JSON Schemas from representative JSON payloads to bootstrap internal API docs, contract examples, or integration guides.
  • Build vs. buy/use decision: Supports using a small dev-time utility rather than building a schema-inference service from scratch—provided draft V4 output is sufficient and generated schemas are reviewed.
  • Developer productivity roadmap: Useful for internal tooling such as Laravel Artisan commands that emit schemas from fixtures, webhook samples, or legacy API responses.
  • Test and fixture strategy: Helps create schema snapshots for contract tests, validate sample payload shape changes in CI, and document expected request/response structures.
  • Legacy/undocumented API discovery: Lets teams reverse-engineer rough schemas from captured payloads before deciding whether to invest in OpenAPI, a schema registry, or formal contract testing.
  • Not a core product dependency: Best treated as an internal developer aid or evaluation candidate, not as a customer-facing runtime component or strategic platform bet.

When to Consider This Package

  • You are in a PHP/Laravel codebase and need a quick, dev-time way to infer a JSON Schema draft V4 document from sample JSON.
  • Draft V4 is acceptable for your docs, validation, or tooling; you do not need draft 2019-09/2020-12, OpenAPI generation, or advanced schema composition.
  • The JSON samples are representative and manageable in size, and generated schemas will be reviewed by engineers before use.
  • You need a low-effort bootstrap for internal documentation, fixtures, CI checks, or migration discovery—not a guaranteed production-grade contract system.
  • You can pin the dependency, wrap it behind an internal interface, and vendor/fork if necessary given the low star count, unknown repository status, and maintenance risk.
  • Look elsewhere if you need active maintenance, security guarantees, high-scale/streaming JSON processing, complex $ref/union/conditional schema inference, OpenAPI-first workflows, or a supported enterprise dependency.
  • Also look elsewhere if schema generation must run in production request paths, drive billing/compliance decisions, or become part of a public API contract without additional validation and ownership.

How to Pitch It (Stakeholders)

  • To executives: This is a low-cost developer productivity experiment, not a platform commitment. It can shorten the time needed to document APIs and create schema-based tests from sample payloads, but its low adoption and unknown maintenance status mean we should limit exposure and measure value in one internal workflow first.
  • To engineering: Use it as a Composer dev dependency in Laravel tooling—for example, an Artisan command or test helper that converts fixture JSON into draft V4 schemas. Wrap it behind a small internal service/interface, pin the version, add fixture-based regression tests, and review generated schemas rather than trusting them blindly.
  • Decision framing: Approve a time-boxed spike for internal documentation or contract-test bootstrapping. Success criteria: reduced manual schema-writing effort, acceptable draft V4 output quality, and no production runtime dependency. If the spike succeeds, keep it as an internal utility; if requirements grow to OpenAPI, modern JSON Schema drafts, or supported long-term maintenance, replace it with a more actively maintained tool.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager