ghostwriter/root
Composer 安装命令:
composer require ghostwriter/root
包简介
Project root directory implementation in PHP
关键字:
README 文档
README
Project root directory implementation in PHP
Installation
You can install the package via composer:
composer require ghostwriter/root
Star ⭐️ this repo if you find it useful
You can also star (🌟) this repo to find it easier later.
Usage
use Ghostwriter\Root\AbstractRootDirectory; $appRootDirectory = new readonly class('/tmp/app') extends AbstractRootDirectory {} // returns the absolute path to the root directory $appRootDirectory->toString(); // /tmp/app // returns the absolute path to the src directory $appRootDirectory->path('src'); // /tmp/app/src // returns the absolute path to the src/Foo/Bar.php file $appRootDirectory->path('src', 'Foo', 'Bar.php'); // /tmp/app/src/Foo/Bar.php
Credits
Changelog
Please see CHANGELOG.md for more information on what has changed recently.
License
Please see LICENSE for more information on the license that applies to this project.
Security
Please see SECURITY.md for more information on security disclosure process.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2026-07-13