Download the PHP package rokke/contracts without Composer

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

rokke/contracts

CI Latest Version PHP

Public platform contracts for the Rokke Framework — the interfaces and shared vocabulary that define how the platform and its modules communicate.

What this is

rokke/contracts is the dependency anchor of the Rokke ecosystem. Platform modules (rokke/http, rokke/orm, rokke/queue, …) depend on this package to implement platform extension points, without knowing anything about the runtime engine.

This package contains only interfaces and enums. No implementations, no runtime dependencies — just the language of the platform.

Installation

Requires PHP 8.4+.

Contracts

Rokke\Contracts\Module\ModuleInterface

Every platform module implements this. The runtime discovers, boots, and stops modules through this interface.

Rokke\Contracts\Lifecycle\LifecycleEventsInterface

Subscribe to application lifecycle events. Modules use this to react to state changes without controlling transitions.

Available hooks: onBootstrapping, onStarting, onRunning, onStopping, onStopped.

Rokke\Contracts\Lifecycle\ApplicationState

Enum representing the application lifecycle state. Used as shared vocabulary when subscribing to lifecycle events.

Rokke\Contracts\Pipeline\PipelineInterface

Fluent pipeline — send a payload through middleware layers to a final handler.

Rokke\Contracts\Container\ServiceContainerInterface

Dependency injection container extending PSR-11. Supports singleton, scoped, transient, and pooled bindings.

Rokke\Contracts\Resources\ResourceProviderInterface

Consume pooled resources. acquire checks out a resource; release returns it to the pool.

Rokke\Contracts\Context\ContextInterface

Per-coroutine isolated state. Set values at the start of a request; they disappear automatically when the coroutine ends.

Rokke\Contracts\Events\EventBusInterface

Dispatch domain events synchronously, as a coroutine, in the background, or across nodes.

Rokke\Contracts\Configuration\ConfigurationInterface

Read configuration, environment variables, and secrets.

Rokke\Contracts\Time\ClockInterface

Testable time abstraction.

Governing criterion

A contract lives here if and only if multiple legitimate implementations can exist outside the runtime engine.

Stability

This package is intentionally the most stable in the Rokke ecosystem. Breaking changes require architectural justification. Treat every interface here as a signed API contract.

New interfaces start as internal contracts inside their first module and are promoted here only after two or more independent modules prove the abstraction.

License

MIT


All versions of contracts with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
psr/container Version ^2.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 rokke/contracts contains the following files

Loading the files please wait ...