Download the PHP package zero-to-prod/schema-validator without Composer
On this page you can find all versions of the php package zero-to-prod/schema-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zero-to-prod/schema-validator
More information about zero-to-prod/schema-validator
Files in zero-to-prod/schema-validator
Package schema-validator
Short Description An OpenApi Schema Validator for the Laravel Framework
License MIT
Informations about the package schema-validator
Schema Validator
An OpenApi Schema Validator for the Laravel Framework.
Use an OpenAPI 3.* schema as the contract for validating data.
Requirements
- PHP
^8.5 - Laravel 13
Installation
Usage
SchemaValidator::make() validates data against an OpenApi 3.* Schema Object
and returns Illuminate\Validation\Validator:
Configuration
CLI install. It asks for every value the package can be configured with and
writes config/schema-validator.php:
Rerunning it is safe: the file reports created, unchanged or updated, and
is only overwritten once you confirm. Agents can do the same through the
install tool.
To publish the configuration file by itself instead:
Agent development
The package registers an MCP server so coding agents can read how it is meant to be used.
It requires laravel/mcp.
Register it with your agent:
Three tools are exposed:
readme— this document.api— the exact signature of every public class, property and method. Anything unlisted is internal and may change in any release.install— whatschema-validator:installdoes, without a prompt to answer. Takesenabledandhandle, each defaulting to the current setting. A file that already says something else is left alone and reported until the call passesoverwrite: true.
Point the handle somewhere else, or turn the server off, in
config/schema-validator.php:
Development
composer check requires a coverage driver (Xdebug or pcov); without one Pest
cannot satisfy the --min=100 gate.
License
MIT. See LICENSE.
All versions of schema-validator with dependencies
illuminate/console Version ^13.0
illuminate/support Version ^13.0
illuminate/validation Version ^13.0