Download the PHP package phpdot/path without Composer
On this page you can find all versions of the php package phpdot/path. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package path
Short Description Project-root discovery and named path resolution for PHPdot, configured via phpdot/config.
License MIT
Informations about the package path
phpdot/path
Project-root discovery and named path resolution for PHPdot. Paths are declared in config/path.php,
resolved to absolute paths at runtime, and reached through the PathRegistryInterface contract. The
project root is written in at install time (or auto-detected from Composer), and unmapped names throw
rather than being guessed.
Table of Contents
- Requirements
- Installation
- Usage
- Architecture
- Testing
- License
Requirements
| Requirement | Constraint |
|---|---|
| PHP | >= 8.5 |
composer-runtime-api |
^2.2 |
phpdot/config |
^0.5 |
phpdot/package |
^0.5 |
phpdot/container is a dev-only suggestion — the #[Config('path')] / binding attributes are inert
until a phpdot application reflects them.
Installation
Usage
PathRegistry is a container singleton bound to PathRegistryInterface — inject the contract and read
absolute paths by their name:
Every returned path is absolute. An unmapped name throws PathNotMapped — paths are explicit, never
guessed.
Architecture
At install time phpdot/package scaffolds config/path.php and the PathInstaller install hook writes
the absolute project root into base. At runtime ProjectRoot resolves the base (auto-detecting from
Composer when base is empty) and PathRegistry resolves every named path to an absolute path.
Testing
License
MIT.
This repository is a read-only mirror, generated by CI from phpdot/monorepo. Pull requests and issues belong in the monorepo.
All versions of path with dependencies
composer-runtime-api Version ^2.2
phpdot/config Version ^0.5
phpdot/package Version ^0.5