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

Json Schema Laravel Package

swaggest/json-schema

PHP library for JSON Schema (Draft 4/6/7): import schemas, validate JSON data, and define high-level PHP structures with schema-based rules. Supports $ref/definitions, formats, and detailed validation errors for robust data validation.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: The package integrates seamlessly with Laravel's Composer-based dependency management and complements existing validation patterns. It provides a schema-driven approach that aligns with API-first development and OpenAPI specifications, offering stronger validation guarantees than Laravel's built-in rules for complex nested structures. The ClassStructure implementation maps well to Laravel's DTO patterns and Eloquent models, enabling schema-defined data contracts.

Integration feasibility: High feasibility due to Composer installation and PHP 7.4+ compatibility. Can be integrated via middleware for global request validation, custom validation rules, or directly in controllers. However, existing Laravel validation logic (FormRequests, Validator facade) would require refactoring for full adoption, as there's no native Laravel integration out-of-the-box.

Technical risk: Critical risk from 0 dependents indicating low adoption and potential maintenance issues. Suspicious future release date (2024-12-22) suggests possible data error. Performance impact when validating dynamic properties on set (as noted in docs) could affect high-throughput systems. No known security

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4