Download the PHP package jardissupport/contract without Composer

On this page you can find all versions of the php package jardissupport/contract. 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 contract

Jardis Contract

PHP Version

Part of Jardis — the Domain-Driven Design platform for PHP. You model your domain; Jardis generates the production-ready hexagonal code (DTOs, Command/Query handlers, repositories, persistence). This package is part of the open-source foundation that generated code runs on.

Consolidated ports and adapters contracts for all Jardis packages — the interface layer that keeps hexagonal architecture honest across the entire ecosystem.


Overview

This package provides all interface contracts for the Jardis ecosystem in a single location. It replaces the previously separate jardisport/* packages.

Namespace Contracts Purpose
Kernel 7 DomainKernel, BoundedContext (deprecated), ContextResponse, DomainResponse, EventScope, ResponseStatus, GeneratedContextInterface (marker)
ClassVersion 2 Versioned class resolution
Connection 1 Generic connection abstraction
Data 3 Hydration, Identity, FieldMapper
DbConnection 3 ConnectionPool, DbConnection, DatabaseConfig
DbQuery 17 Query Builder, Conditions, Joins, Expressions, Results
DbSchema 2 Schema Reader, Schema Exporter
DotEnv 1 Environment variable loading
Messaging 10 Publisher, Consumer, MessageHandler + Exceptions
Repository 4 Generic CRUD, PkStrategy, Exceptions
Secret 2 Secret resolution + Exception
Validation 3 Validator, ValueValidator, ValidationResult
Mailer 4 Mailer, MailMessage, MailTransport + Exception
Filesystem 5 Filesystem (Reader/Writer), FileInfo + Exception
Workflow 6 Workflow engine + orchestration (Workflow, Builder, NodeBuilder, Config, Context, Result) — 7 named transitions: onSuccess, onFail, onTimeout, onSkip, onCancel, onEvent, onExit

70 contracts across 15 domains.


Installation


Namespace


Kernel — v2 additions (Kernel-Entkopplung)

Three additions to Kernel\ that let a generated domain drop its compile-time dependency on jardiscore/kernel's base classes while keeping the same runtime vocabulary.

ResponseStatus enum

JardisSupport\Contract\Kernel\ResponseStatus — an int-backed enum of domain-neutral response status codes (Success = 200, Created = 201, NoContent = 204, ValidationError = 400, Unauthorized = 401, Forbidden = 403, NotFound = 404, Conflict = 409, RuleViolation = 422, InternalError = 500), ported 1:1 from jardiscore/kernel's JardisCore\Kernel\Response\ResponseStatus. Generated domains import it from here instead of from jardiscore/kernel.

DomainKernelInterface::eventListenerRegistry()

The Kernel interface (the "Koffer") gained an 11th accessor: eventListenerRegistry(): ?EventListenerRegistryInterface. It is paired with eventDispatcher() — both are typically backed by the same underlying provider instance, one side for dispatching (PSR-14), one side for registering listeners. Generated {Agg}EventRouter scaffolds use this accessor to self-register on the domain facade's constructor. Nullable like every other service on the interface: without a registry, event routing simply stays inactive.

GeneratedContextInterface marker

JardisSupport\Contract\Kernel\GeneratedContextInterface is an empty marker interface. Every generated {Domain}Context implements it, so the resolve path recognizes generated context classes via is_subclass_of($resolved, GeneratedContextInterface::class) — independent of domain boundaries (cross-domain services included) and without requiring a shared package base class to extend. It replaces the detection role formerly played by BoundedContextInterface, which is now @deprecated (not removed — kept for code still written against the old jardiscore/kernel BoundedContext base class).


Design Principles


Migration from jardisport/*

Replace namespace imports:

Replace composer dependency:


Related Packages

Package Role
jardiscore/kernel Kernel contract implementation
jardiscore/foundation Full DDD platform on top of Kernel
jardissupport/* Support package implementations
jardisadapter/* Adapter implementations for external systems

Documentation

Full documentation, guides, and API reference:

docs.jardis.io/en/support/contract


License

Jardis is open source under the MIT License. Free for any purpose — commercial or non-commercial.


Jardis – Development with Passion Built by Headgent Development


All versions of contract with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-pdo Version *
psr/container Version ^2.0
psr/simple-cache Version ^3.0
psr/log Version ^3.0
psr/event-dispatcher Version ^1.0
psr/http-client Version ^1.0
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 jardissupport/contract contains the following files

Loading the files please wait ...