seworqs/composer-editor
最新稳定版本:1.1.1
Composer 安装命令:
composer require seworqs/composer-editor
包简介
A high-level Composer JSON editor for PHP, offering enum-driven configuration, strict typing, and intuitive syntax for working with composer.json files.
关键字:
README 文档
README
A high-level Composer JSON editor for PHP, offering enum-driven configuration, strict typing, and intuitive syntax for working with composer.json files.
Installation
Install via Composer.
$> composer require seworqs/composer-editor
Usage
use Seworqs\Composer\Enum\EnumComposerPackageType; use Seworqs\Composer\ComposerEditor; $composer = ComposerEditor::createNew('path/to/composer.json'); $composer->addProjectName('vendor/some-project') ->addDescription('Some nice project!') ->addType(EnumComposerPackageType::LIBRARY) ... ->save(); $projectName = $composer->getProjectName(); // Get array of all scripts. $scripts = $composer->getScripts(); // Get specific script $script = $composer->getScript('cleanup');
Features
- Create and edit new Composer JSON file
- Edit existing Composer JSON file
- Use easy dot notation to get to your keys
- Bump version with seworqs/semver integration
See our examples
Classes and namespaces
| Namespace | Class | Description |
|---|---|---|
| Seworqs\ComposerEditor | ComposerEditor | Nice Composer editor |
License
Apache-2.0, see LICENSE
About SEworqs
Seworqs builds clean, reusable modules for PHP and Mendix developers.
Learn more at github.com/seworqs
Badges
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2025-04-14