Download the PHP package coretsia/core-contracts without Composer

On this page you can find all versions of the php package coretsia/core-contracts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package core-contracts

coretsia/core-contracts

core/contracts is the boundary-only contracts package for the Coretsia Framework monorepo.

Scope: public interfaces, ports, enums, small value objects, public context key identifiers, and contract-level shapes that define cross-package boundaries.

Out of scope: runtime implementations, DI wiring, filesystem scanning, platform adapters, integrations, generated artifacts, and tooling-only behavior.

Package identity

Versioning is monorepo-wide.

The monorepo tag vMAJOR.MINOR.PATCH is the single version source of truth, and the split repository receives the same tag for the corresponding package subtree.

Per-package independent versions MUST NOT be used.

Dependency policy

This package is boundary-only and MUST stay lightweight.

Contracts MUST NOT introduce concrete runtime dependencies or vendor-specific implementation types that would leak implementation details across package boundaries.

Contracts MUST remain:

Contract areas

This package contains contracts for cross-package capabilities such as:

Implementations live outside core/contracts.

CLI ports

CLI contracts prevent package-local cross-package interfaces and keep CLI behavior implementation-owned.

Cli\Input\InputInterface

Cli\Output\OutputInterface

Output adapters MUST enforce:

The interface intentionally does not define styling, verbosity, formatting, or terminal capability policy.

Cli\Command\CommandInterface

Runtime contracts

Runtime contracts are format-neutral and transport-neutral.

Examples include:

UnitOfWorkHandle is a contracts-owned opaque low-level lifecycle handle.

It is not a Kernel context/result schema object.

It may expose only the normalized safe context array through UnitOfWorkHandle::context().

A runtime implementation may associate private lifecycle state with the exact handle object identity.

Such state is not part of the contracts-owned handle context shape and MUST NOT be exposed through UnitOfWorkHandle::context().

It MUST NOT expose Stopwatch tokens, wall-clock timestamps, transport objects, service instances, mutable runtime state, or Kernel-owned runtime internals.

The contracts package does not own DI tags, reset discovery, hook discovery, lifecycle execution, lifecycle timing state, config defaults, config rules, or provider wiring.

Runtime discovery and execution are owned by runtime implementation packages.

Context contracts

Context contracts define the public vocabulary and read-only access boundary for runtime context data.

The canonical public context key registry is:

ContextKeys defines stable key identifiers only.

Importing ContextKeys does not grant write ownership over context values.

The read-only context access port is:

Runtime readers SHOULD depend on ContextAccessorInterface when they need access to current context values.

Runtime readers MAY import ContextKeys to avoid raw string key drift.

The contracts package does not own context storage, mutable context writes, write validation, reset behavior, lifecycle writes, context propagation, logging, tracing, or export policy.

Those responsibilities are owned by runtime implementation packages.

Known implementation owners include:

Config and env contracts

Config and env contracts define stable ports and safe shapes for:

The contracts package does not implement config loading, config merging, env loading, ruleset discovery, validation execution, or generated config artifacts.

Package config/rules.php files are implementation-owned by their package owners and MUST remain declarative data.

Observability and errors contracts

Observability and error contracts define boundaries and safe shapes only.

They MUST NOT require concrete logger, tracer, metrics, HTTP, database, queue, or vendor-specific clients.

Diagnostic shapes MUST NOT expose:

Notes for implementers

Implementations belong in owner packages such as:

Implementation packages MAY depend on core/contracts.

core/contracts MUST NOT depend back on implementation packages.

Importing contract-level vocabulary classes such as Coretsia\Contracts\Context\ContextKeys does not imply ownership of the corresponding runtime behavior.

Implementation packages MUST enforce their own write, lifecycle, propagation, and safety rules at their owner boundaries.

Observability

This package does not emit telemetry directly.

It defines observability-related contract boundaries and safe shapes only.

Errors

This package does not define runtime error mapping behavior directly.

Error mapping, exception normalization, and transport-specific error responses are owned by higher layers.

Security / Redaction

This package does not process sensitive runtime payloads directly.

Contracts that expose diagnostic or exported shapes MUST be safe by construction and MUST NOT require storing raw secrets, raw env values, raw request data, raw response data, credentials, tokens, cookies, authorization headers, private customer data, or absolute local paths.

Context contracts expose key identifiers and read-only access only.

They MUST NOT require exposing secrets, credentials, tokens, cookies, authorization headers, raw request payloads, raw response payloads, raw SQL, private customer data, transport objects, runtime objects, or mutable context storage.

References


All versions of core-contracts with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package coretsia/core-contracts contains the following files

Loading the files please wait ...