rnab/soar
Composer 安装命令:
composer require rnab/soar
包简介
Manage php docker development environment
关键字:
README 文档
README
A bash wrapper around Docker Compose that simplifies PHP development workflows.
Soar provides convenient shortcuts for common tasks like running Symfony console commands, Magento CLI, Composer, database operations, and opening shells in containers. Any unrecognized command is passed directly to docker-compose.
Installation
Add the repository to your global Composer configuration:
composer global config repositories.soar vcs git@github.com:Roy-Nilsson-AB/soar.git
Then install the package:
composer global require rnab/soar
Add Composer's global bin directory to your PATH by adding this to your ~/.bashrc or ~/.zshrc:
export PATH="$HOME/.composer/vendor/bin:$PATH"
Then reload your shell or run source ~/.bashrc.
Quick Start
Run soar from your project directory (where your docker-compose.yml is located):
soar up -d # Start services soar console cache:clear # Run Symfony command soar shell # Open shell in PHP container soar db # Open MySQL client
Commands
| Command | Description |
|---|---|
soar up -d |
Start services in background |
soar stop |
Stop services |
soar restart |
Restart services |
soar ps |
Show container status |
soar console <cmd> |
Run Symfony console command |
soar magento <cmd> |
Run Magento CLI command |
soar magento install |
Install Magento with env vars |
soar magento clean |
Clear Magento generated files |
soar composer <cmd> |
Run Composer |
soar bin <tool> |
Run vendor bin tool (phpunit, phpstan, etc.) |
soar db |
Open MySQL client |
soar db import <file> |
Import SQL dump (supports .gz) |
soar db dump |
Export database |
soar db exec "<query>" |
Execute SQL query |
soar shell [container] |
Open shell in container (default: php) |
soar stopall |
Stop ALL Docker containers |
soar stopother |
Stop non-project containers |
Any unrecognized command is passed directly to docker-compose.
Configuration
Soar automatically sources .env and .env.$APP_ENV from your project directory.
See .env.example for available configuration options.
Service Names
Default service names can be overridden via environment variables:
DOCKER_PHP_SERVICE(default:php)DOCKER_DB_SERVICE(default:db)DOCKER_WEB_SERVER_SERVICE(default:nginx)
Documentation
For detailed documentation, see CLAUDE.md.
License
MIT
Author
Roy Nilsson (roy.nilsson@rnab.net)
rnab/soar 适用场景与选型建议
rnab/soar 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 06 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「docker」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 rnab/soar 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 rnab/soar 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 rnab/soar 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Docker based testing environment for shopware projects.
The Laragoon utility package
Docker compose for Robo Task Runner
Deployment command
JSON REST API
A laravel app skeleton that uses docker
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-07