Download the PHP package cognesy/instructor-schema without Composer
On this page you can find all versions of the php package cognesy/instructor-schema. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cognesy/instructor-schema
More information about cognesy/instructor-schema
Files in cognesy/instructor-schema
Download cognesy/instructor-schema
More information about cognesy/instructor-schema
Files in cognesy/instructor-schema
Vendor cognesy
Package instructor-schema
Short Description TypeInfo-first schema package for Instructor
License MIT
Homepage https://instructorphp.com
Package instructor-schema
Short Description TypeInfo-first schema package for Instructor
License MIT
Homepage https://instructorphp.com
Please rate this library. Is it a good library?
Informations about the package instructor-schema
Cognesy Schema
packages/schema provides schema mapping and JSON Schema rendering/parsing for Instructor.
Main entry points
Cognesy\Schema\SchemaBuilder- fluent builder for runtime object schemas.Cognesy\Schema\SchemaFactory- buildSchemaobjects from PHP types, classes, objects, or JSON Schema providers.Cognesy\Schema\CallableSchemaFactory- buildSchemafrom callable signatures.Cognesy\Schema\TypeInfo- type normalization and helpers based on Symfony TypeInfo.Cognesy\Schema\JsonSchemaRenderer- renderSchemato JSON Schema.Cognesy\Schema\JsonSchemaParser- parse JSON Schema intoObjectSchema.
Quick start
Build schemas directly
Nullable and default metadata
nullable, hasDefaultValue, and defaultValue are preserved when converting:
- PHP reflection ->
Schema Schema-> JSON Schema- JSON Schema ->
Schema
Enum values are preserved as declared (string-backed and int-backed enums are both supported in JSON Schema output).
Parse JSON Schema
Tests
All versions of instructor-schema with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.3
cognesy/instructor-contracts Version ^2.5
cognesy/instructor-utils Version ^2.5
phpdocumentor/type-resolver Version ^1.8 || ^2.0
phpstan/phpdoc-parser Version ^1.29
symfony/property-info Version ^7.3 || ^8.0
symfony/type-info Version ^7.3 || ^8.0
cognesy/instructor-contracts Version ^2.5
cognesy/instructor-utils Version ^2.5
phpdocumentor/type-resolver Version ^1.8 || ^2.0
phpstan/phpdoc-parser Version ^1.29
symfony/property-info Version ^7.3 || ^8.0
symfony/type-info Version ^7.3 || ^8.0
The package cognesy/instructor-schema contains the following files
Loading the files please wait ...