Weave Code
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

Symfony Config Schema Gen Laravel Package

adamwojs/symfony-config-schema-gen

Generate JSON Schema from your Symfony app’s configuration. Adds a config:dump-schema console command to export schemas (JSON by default), with options like schema id, pretty-print, strict mode, and extension whitelisting.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Developer Experience (DX) & Tooling: Accelerates schema generation for Symfony configurations, reducing manual effort in maintaining JSON Schema definitions. Aligns with roadmap items focused on automating documentation or reducing technical debt in configuration management.
  • Build vs. Buy: Justifies buying (adopting) this lightweight package over building a custom solution for schema generation, especially if the team already uses Symfony. Low maintenance burden (GPL-2.0 license) and minimal dependencies make it a low-risk choice.
  • Use Cases:
    • API/CLI Tooling: Integrate into CI/CD pipelines to auto-generate and validate config schemas for new releases.
    • Self-Service Platforms: Enable developers to dynamically generate schemas for third-party integrations or plugins.
    • Compliance/Validation: Enforce schema validation in dev environments (e.g., pre-commit hooks) to catch misconfigurations early.
    • Legacy Modernization: Migrate older Symfony projects to structured config validation without rewriting existing YAML/XML configs.

When to Consider This Package

  • Adopt if:

    • Your project uses Symfony (or Symfony components) and relies on configuration bundles (e.g., framework.yaml, custom extensions).
    • You need JSON Schema for:
      • API documentation (Swagger/OpenAPI).
      • IDE autocompletion (e.g., PHPStorm, VSCode).
      • Runtime validation (e.g., Symfony’s ConfigCache or custom validators).
    • Your team prioritizes reducing manual schema maintenance or standardizing config formats.
    • You’re in development mode (bundle is marked dev => true; not for production).
  • Look elsewhere if:

    • You’re not using Symfony (this is Symfony-specific).
    • You need complex schema transformations (e.g., merging multiple schemas, custom logic).
    • Your config schemas require non-standard JSON Schema features (e.g., dynamic references, conditional fields).
    • You’re constrained by the GPL-2.0 license (e.g., proprietary projects; consider alternatives like webmozart/path-util for path-based schemas).
    • You need real-time schema generation (this is a CLI tool; not a runtime library).

How to Pitch It (Stakeholders)

For Executives: *"This package automates the generation of JSON Schema from Symfony configurations, saving our team hours of manual work per release. By integrating it into our CI pipeline, we can:

  • Reduce bugs from misconfigured apps (schemas validate configs early).
  • Improve onboarding with auto-generated IDE tooltips for developers.
  • Cut maintenance costs by eliminating redundant schema updates. It’s a low-risk, high-reward tool—like adding spellcheck to your configs."*

For Engineering/DevOps: *"This is a Symfony-specific CLI tool that dumps your config structure (e.g., framework.yaml) into a JSON Schema. Key benefits:

  • One command (config:dump-schema) replaces manual schema editing.
  • Works with Symfony Flex/non-Flex projects; minimal setup.
  • Outputs clean JSON for docs, validation, or APIs.
  • Dev-only dependency (won’t bloat production). Use case: Add it to your composer.json dev tools, then run it in pre-commit or CI to keep schemas in sync with your configs."*

For Developers: *"Tired of maintaining JSON Schema files separately from your Symfony configs? This tool auto-generates schemas from your actual config structure. Example:

php bin/console config:dump-schema > config.schema.json
  • Pros: No more out-of-sync schemas; supports all Symfony config extensions.
  • Cons: Symfony-only; requires CLI access. Perfect for: Projects with complex configs (e.g., plugins, microservices) or teams that value DX."*
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.
nasirkhan/laravel-sharekit
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony