Download the PHP package coretsia/core-dto-attribute without Composer

On this page you can find all versions of the php package coretsia/core-dto-attribute. 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-dto-attribute

coretsia/core-dto-attribute

core/dto-attribute is the canonical DTO marker package for explicit Coretsia DTO opt-in.

Scope: one behavior-free class attribute that marks a class as subject to the canonical Coretsia DTO policy.

Out of scope: validation, serialization, hydration, normalization, mapping, dependency injection, runtime discovery, service behavior, domain modeling, and transport execution.

Package identity

Monorepo versioning is repo-wide only via git tags vMAJOR.MINOR.PATCH.

The corresponding split repository is coretsia/core-dto-attribute and receives the same tag for the package subtree.

Per-package independent versions MUST NOT be used.

Dependency policy

This package is intentionally minimal and must remain safe to depend on from any layer that needs explicit DTO classification.

The package MUST NOT depend on:

Adding any Coretsia package dependency or dependency on repository machinery to this package would violate its marker-only ownership boundary.

Package responsibilities

This package owns exactly one public responsibility:

The canonical marker is:

The attribute targets classes only.

Applying the attribute declares that the class participates in the canonical Coretsia DTO policy.

The package does not inspect, instantiate, validate, transform, serialize, hydrate, normalize, map, discover, or execute marked classes.

Those responsibilities remain external to this package.

DTO marker

The canonical marker class is:

Typical usage:

A marked class explicitly opts into DTO policy.

An unmarked class is outside DTO policy enforcement scope unless another canonical policy explicitly places it within scope.

Marker presence is classification only.

It MUST NOT imply:

DTO policy

A DTO is a narrow data-transfer shape.

A DTO is not, by default:

Classes marked with #[Dto] are governed by the canonical DTO policy documented in:

The monorepo SSoT remains authoritative for DTO rules.

The split package does not duplicate that policy locally.

This README describes package ownership and marker semantics only.

Ownership boundaries

core/dto-attribute owns marker vocabulary.

It does not own DTO enforcement.

DTO policy enforcement and static-analysis tooling consume the marker externally.

Implementation owners remain responsible for any behavior applied to marked DTOs, including:

Importing or applying Coretsia\Dto\Attribute\Dto does not grant this package ownership over those behaviors.

Consumers MUST NOT treat the marker as an executable hook or service-registration mechanism.

Design constraints

The marker attribute is intentionally behavior-free.

It MUST NOT provide:

The marker MUST remain usable without requiring a Coretsia runtime container or platform package.

Its meaning is declarative:

Nothing more is implied by the package itself.

Observability

This package does not emit telemetry.

It does not define:

Applying or reflecting on the marker MUST NOT itself require observability infrastructure.

Any observability associated with processing a marked DTO belongs to the implementation owner performing that processing.

Errors

This package does not define runtime error codes or runtime exception mapping.

The marker itself does not perform operations that require validation or transformation failures.

DTO policy violations are reported by external policy-enforcement or static-analysis tooling.

Runtime validation, serialization, hydration, mapping, or transport failures remain owned by the packages performing those operations.

Security / Redaction

This package does not read or process DTO property values.

A class marked with #[Dto] may contain sensitive transport data, but this package does not:

Applying the marker MUST NOT make DTO values safe for diagnostics or observability by implication.

Consumers remain responsible for:

Marked DTOs MAY contain data that must not cross diagnostic or observability boundaries without owner-defined normalization or redaction.

The marker carries classification only and MUST NOT be treated as a security approval for the contents of the marked class.

References


All versions of core-dto-attribute 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-dto-attribute contains the following files

Loading the files please wait ...