承接 eloquent/composer-config-reader 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

eloquent/composer-config-reader

最新稳定版本:3.0.0

Composer 安装命令:

composer require eloquent/composer-config-reader

包简介

A light-weight component for reading Composer configuration files.

README 文档

README

No longer maintained

This package is no longer maintained. See [this statement] for more info.

[this statement]: https://gist.github.com/ezzatron/713a548735febe3d76f8ca831bc895c0# Phony for PHPUnit

Composer configuration reader

A light-weight component for reading Composer configuration files.

Current version image Current build status image Current coverage status image

Installation and documentation

Usage

Composer configuration reader is very simple to use, and a quick example should be self-explanatory:

$reader = new Eloquent\Composer\Configuration\ConfigurationReader;
$configuration = $reader->read('/path/to/composer.json');

echo $configuration->name(); // outputs the package name

Configuration objects

The following are the objects used to represent the configuration information. For a more detailed overview of the data available, simply look through the class definition (these classes are very simple).

The following classes all exist in the Eloquent\Composer\Configuration\Element namespace.

Configuration

This is the main configuration object and has methods to access all the information available in the Composer schema.

Example methods

  • name(): The package name.
  • description(): The package description.
  • dependencies(): Equivalent to Composer require.
  • devDependencies(): Equivalent to Composer require-dev.
  • autoloadPSR0(): The autoload information for PSR-0 namespaces/paths.
  • autoloadClassmap(): The autoload information for classmapped paths.

Helper methods

A number of helper methods exist on the main configuration object to simplify the process of extracting useful information:

  • projectName(): The project name without the vendor prefix.
  • vendorName(): The vendor name without the project suffix.
  • allDependencies(): Combines require and require-dev into a single array.
  • allPSR0SourcePaths(): A flat array of all PSR-0-compliant source paths.
  • allSourcePaths(): A flat array of all source paths.

Repository, PackageRepository

These objects describe the package's defined repositories.

All repositories are represented by the Repository class, except for package-type repositories which use the PackageRepository class.

See Repositories.

Example methods

  • type(): The repository type.
  • url(): The repository URL (not available for PackageRepository).

Stability

This object is an enumeration of package stabilities, with the following members:

  • DEV
  • ALPHA
  • BETA
  • RC
  • STABLE

It is currently only used to represent the value of the minimum-stability option.

Author

This object contains all information provided for a specific author.

See authors.

Example methods

  • name(): The author's name.
  • email(): The author's email address.

SupportInformation

This object describes the package's support contact information.

See support.

Example methods

  • email(): The support email address.
  • issues(): The URL of the issue tracking system.
  • wiki(): The URL of the wiki system.

ProjectConfiguration

This object describes configuration options specific to end-projects, such as the target directories for various resources provided by Composer.

See config.

Example methods

  • vendorDir(): The project's vendor directory path.
  • binDir(): The project's binary directory path.

ScriptConfiguration

This object describes the Composer scripts defined by the package.

See Scripts.

Example methods

  • preInstallCmd(): The pre-install scripts.
  • postInstallCmd(): The post-install scripts.

ArchiveConfiguration

This object describes the settings for creating package archives.

See archive.

Example methods

  • exclude(): A list of file exclusion patterns.

eloquent/composer-config-reader 适用场景与选型建议

eloquent/composer-config-reader 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.13M 次下载、GitHub Stars 达 32, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「configuration」 「parser」 「composer」 「reader」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 eloquent/composer-config-reader 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 eloquent/composer-config-reader 我们能提供哪些服务?
定制开发 / 二次开发

基于 eloquent/composer-config-reader 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 2.13M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 36
  • 点击次数: 37
  • 依赖项目数: 17
  • 推荐数: 0

GitHub 信息

  • Stars: 32
  • Watchers: 3
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知