servergrove/shell-alias-bundle
Composer 安装命令:
composer require servergrove/shell-alias-bundle
包简介
This bundle generates a list of shell aliases for commands registered in the Symfony application
README 文档
README
The ServerGroveShellAliasBundle is a Symfony2 bundle that generates a list of shell aliases for commands registered in the Symfony application. The list of aliases can then be included in /etc/bash_profile or ~/.profile configuration files so the commands can be autocompleted with the tab key.
Usage
$ php app/console generate:shell:aliases
$ php app/console generate:shell:aliases --prefix=myapp --php=/usr/local/bin/php --absolute
The list of aliases that it generates would look like this:
alias console-help="php app/console help"
alias console-list="php app/console list"
alias console-assets-install="php app/console assets:install"
alias console-cache-clear="php app/console cache:clear"
alias console-cache-warmup="php app/console cache:warmup"
alias console-config-dump-reference="php app/console config:dump-reference"
alias console-container-debug="php app/console container:debug"
alias console-router-dump-apache="php app/console router:dump-apache"
alias console-router-debug="php app/console router:debug"
alias console-router-match="php app/console router:match"
alias console-server-run="php app/console server:run"
alias console-translation-update="php app/console translation:update"
alias console-init-acl="php app/console init:acl"
alias console-twig-lint="php app/console twig:lint"
alias console-swiftmailer-spool-send="php app/console swiftmailer:spool:send"
alias console-assetic-dump="php app/console assetic:dump"
Then, you can start typing the name of the command and auto-complete with the tab key: console-s[TAB] will complete to console-server-run.
If the absolute option is defined, the aliases will include the absolute path of the Symfony application, so you can call these commands from anywhere in the filesystem.
Installation:
Add the bundle with Composer:
$ php composer.phar require "servergrove/shell-alias-bundle dev-master"
Enable it in your app/AppKernel.php
public function registerBundles()
{
$bundles = array(
...
new ServerGrove\Bundle\ShellAliasBundle\ServerGroveShellAliasBundle(),
);
...
}
More information:
servergrove/shell-alias-bundle 适用场景与选型建议
servergrove/shell-alias-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.22k 次下载、GitHub Stars 达 21, 最近一次更新时间为 2012 年 11 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cli」 「shell」 「aliases」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 servergrove/shell-alias-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 servergrove/shell-alias-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 servergrove/shell-alias-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Allow to apply migrations from multiple paths or aliases
AMWSCAN (Antimalware Scanner) is a php antimalware/antivirus scanner console script written in php for scan your project. This can work on php projects and a lot of others platform.
Shell command module for PHP.
PHP library for the MUMSYS project
Some stuff for testing
PHP Automation Tools
统计信息
- 总下载量: 1.22k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 21
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-11-04