cognesy / instructor-contracts
Shared contracts and value objects for Instructor PHP library
dev-main
2026-06-29 07:55 UTC
Requires
- php: ^8.3
- cognesy/instructor-utils: ^2.3
Requires (Dev)
- icanhazstring/composer-unused: ^0.9.0
- jetbrains/phpstorm-attributes: ^1.2
- maglnet/composer-require-checker: ^4.16
- pestphp/pest: ^2.34
- phpstan/phpstan: ^1.11
- roave/security-advisories: dev-latest
- vimeo/psalm: ^6.0
This package is auto-updated.
Last update: 2026-06-29 07:56:35 UTC
README
Shared contracts (interfaces) and value objects for the Instructor PHP library.
This package holds the small, dependency-light abstractions that multiple Instructor packages depend on — validation, transformation, and deserialization contracts plus their associated value objects — so that higher-level packages can share them without creating circular dependencies between each other.
It depends only on cognesy/instructor-utils.
Contents
Cognesy\Instructor\Validation\—ValidationResult,ValidationError, and theCanValidateSelf/CanValidateObject/CanValidateValuecontracts.Cognesy\Instructor\Transformation\— theCanTransformSelf/CanTransformDatacontracts.Cognesy\Instructor\Deserialization\— theCanDeserializeClass/CanDeserializeSelfcontracts.
License
MIT