schranz/mono
Composer 安装命令:
composer require schranz/mono
包简介
A binary to run commands in a monorepo
README 文档
README
Managing a monorepository?
Mono helps you to initialize subtree split and run composer and other commands for all your package directories.
Installation
composer require schranz/mono --dev
Usage
Init Split Command
First create your mono repository and push it to Github.
Create your packages into different directories make sure
for to create for all packages you want to split a composer.json with a name in it.
Then run:
vendor/bin/mono init-split
It will create the configuration for frankdejonge/use-subsplit-publish
Github Action. Make sure to configure your PERSONAL_ACCESS_TOKEN as a secret in your Github repository.
And configure the user in the newly created .github/workflows/publish-subsplits.yml file.
Run Command
To install the dependencies of all your mono repositories, just run:
vendor/bin/mono run composer install
To update them run:
vendor/bin/mono run composer update
To run a custom custom composer script use:
vendor/bin/mono run composer fix # runs in my case rector + php-cs-fixer vendor/bin/mono run composer lint # runs in my case various linters (phpstan, php-cs, ...)
Mono is used and was build for managing schranz-search monorepository.
Upgrade dependency
If you have one dependency used in multiple packages and want to upgrade it in all packages you can use:
vendor/bin/mono upgrade-dependency phpstan/phpstan
Mono search for all packages which has then phpstan/phpstan in it and update it to the latest stable version.
Rename branch
If you want to rename a branch on all your packages in your mono repository you can use the following command:
PERSONAL_ACCESS_TOKEN=<token> vendor/bin/mono rename-branch 0.3 0.4
Mono search for all your packages and uses the Github API to rename a specific given branch to the new name.
You require at least a
PERSONAL_ACCESS_TOKENwithcontents:writeoradmins:write(default branch) scope.
Projects using mono
Let me know via an issue if you are using mono.
schranz/mono 适用场景与选型建议
schranz/mono 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.7k 次下载、GitHub Stars 达 14, 最近一次更新时间为 2023 年 06 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「monorepo」 「mono」 「monorepository」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 schranz/mono 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 schranz/mono 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 schranz/mono 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A package to easily make use of Mono Icons in your Laravel Blade views.
PHP Implementation of Mono API
Pug (ex-Jade) facade engine for PHP, HTML template engine structured by indentation
Powerful class discovery system for Laravel with attribute-based scanning, directory traversal, and monorepo support
Monorepo helper Composer plugin.
Simplifies work with path repositories
统计信息
- 总下载量: 4.7k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-27