Download the PHP package dirthara/container without Composer
On this page you can find all versions of the php package dirthara/container. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dirthara/container
More information about dirthara/container
Files in dirthara/container
Package container
Short Description Dependency injection container for the Dirthara framework
License MIT
Homepage https://dirthara.github.io/docs/
Informations about the package container
Dirthara Container
A PSR-11 dependency injection container with autowiring for the Dirthara framework.
Usage guides and API documentation live in docs, starting with
getting started. They are published on the Dirthara documentation site at
https://dirthara.github.io/docs/, which documents every package in the framework.
Installation
Requires PHP ^8.5 (PHP 8.5 or a later PHP 8 release). Composer installs the runtime dependency, psr/container.
Install with:
Docker development environment
Requires Docker with Docker Compose. The development image provides PHP 8.5 CLI, Composer 2.10.3, Mago 1.47.3, and Xdebug.
The container runs as the non-root developer user. The build arguments LOCAL_UID and LOCAL_GID default to 1000;
the command above uses your host IDs so generated files remain editable. Set PHP_VERSION to override the default
8.5 image. Rebuild when the Dockerfile or build arguments change.
Open a shell or stop the environment with:
Tests
Tests belong in tests, under Dirthara\Container\Tests. Source belongs in src, under Dirthara\Container.
Code quality
Run the same checks as CI:
Run individual checks:
composer mago runs the formatting, import-order, lint, analysis, and configured architecture checks. composer ci
also runs tooling tests, unit tests, and the coverage gate.
Apply formatting and import sorting with composer fmt, or include automatic lint fixes with composer cs:
composer cs includes potentially unsafe lint fixes; review its changes.
Run coverage separately with:
Xdebug is inactive by default and enabled for the coverage run. The report is written to build/coverage/clover.xml.
The gate requires 100% line coverage of src and lists uncovered lines.
Contributing
Each supported version has its own branch, beginning with 0.1; there is no main. See CONTRIBUTING.md for
branching, release, and pull request requirements, and AGENTS.md for agent instructions.
Security
Report vulnerabilities through GitHub's private advisory form. See SECURITY.md for the reporting process and scope.
License
Copyright (c) 2026 Dirthara. Released under the MIT License.