cognesy/instructor-contracts

Shared contracts and value objects for Instructor PHP library

Maintainers

Package info

github.com/cognesy/instructor-contracts

Homepage

Issues

pkg:composer/cognesy/instructor-contracts

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

dev-main 2026-06-29 07:55 UTC

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 the CanValidateSelf / CanValidateObject / CanValidateValue contracts.
  • Cognesy\Instructor\Transformation\ — the CanTransformSelf / CanTransformData contracts.
  • Cognesy\Instructor\Deserialization\ — the CanDeserializeClass / CanDeserializeSelf contracts.

License

MIT