定制 konsulting/project-root 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

konsulting/project-root

Composer 安装命令:

composer require konsulting/project-root

包简介

A simple package to determine the working root directory for a composer dependency

README 文档

README

A simple package to help with resolving paths when working in a composer package.

Specifically, for some functionality you may need to refer to the packages root directory, but then need to use the project's root when the package is included as a dependency.

Rather than keep repeating dirty logic from before, we can use this package.

Installation

composer require konsulting/package-root

Usage

<?php

\Konsulting\ProjectRoot::forPackage('package-name')->resolve(__DIR__);

Contributing

Contributions are welcome and will be fully credited. We will accept contributions by Pull Request.

Please:

  • Use the PSR-2 Coding Standard
  • Add tests, if you’re not sure how, please ask.
  • Document changes in behaviour, including readme.md.

Testing

We use PHPUnit

Run tests using PHPUnit: vendor/bin/phpunit

统计信息

  • 总下载量: 606.03k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固