kmuenkel / json-schema-laravel
This is a Laravel Request-compatible override for opis/json-schema.
Installs: 186
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/kmuenkel/json-schema-laravel
Requires
- illuminate/validation: ^7.0|^8.0
- opis/json-schema: ^1.0
Requires (Dev)
- barryvdh/laravel-ide-helper: ^2.8
- friendsofphp/php-cs-fixer: ^2.16
- fzaninotto/faker: ^1.9
- mockery/mockery: ^1.4
- orchestra/testbench: ^5.7
- phpmd/phpmd: ^2.9
- phpunit/phpunit: ^9.4
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2025-09-29 02:29:14 UTC
README
This is simply an override class for the opis/json-schema package which leverages a Laravel interface, enabling it to be compatible with custom Request classes. To implement it, simply use the JsonSchema\JsonSchemaValidation
trait inyour custom instance of Illuminate\Foundation\Http\FormRequest
. Then either apply the schema filepath, storage path, URL, array, object, or string, as the output of your rules()
method.