pyro/custom-install
Composer 安装命令:
composer require pyro/custom-install
包简介
Provides extra PyroCMS install configurables, actions and commands. Exclude/Include modules, extensions or seeds from being installed, hooks, callbacks etc
关键字:
README 文档
README
This package allows you to:
- Exclude certain modules or extensions from being installed
- Exclude certain modules or extensions from being seeded
- Skip certain installer steps
- Start installation at step
- Thrown exceptions during installation will ask you if you want to continue to the next step or
- Add PyroCMS add-ons as composer dependency without automatically installing them
- Ignore trivial errors
- etc...
Installation
Provider
\Pyradic\CustomInstall\CustomInstallServiceProvider
Configuration
Use the provided config. Some examples:
return [ // call artisan commands before running install 'call_before' => [ ['db:seed', ['--class' => 'Name\\Space\\Class']] ], // dispatch bus commands before running install 'dispatch_before' => [ function($app){ return new \Name\Space\PreInstallActions(); } ], // call artisan commands after running install 'call_after' => [ ['db:seed', ['--class' => 'Namespace\\To\\Class']] ], // dispatch bus commands after running install 'dispatch_after' => [ function($app){ return new \Name\Space\PostInstallActions(); } ], // --skip_steps=11,22,46 'skip_steps' => [ // 11, 22, 46 ], // --start_from_step=1 'start_from_step' => 1, // --ignore_exceptions // if true, asks to continue // if true + no-interaction, continues with warning 'ignore_exceptions' => false, // skip seeds of certain modules 'skip_seed' => [ 'anomaly.module.users', ], // `include` takes precedence over `exclude` 'include' => [ 'pyro.module.*', 'anomaly.module.preferences', 'anomaly.module.configuration', 'anomaly.module.dashboard', 'anomaly.module.repeaters', 'anomaly.module.search', 'anomaly.module.settings', 'anomaly.module.users', 'anomaly.extension.default_authenticator', 'anomaly.extension.html_block', 'anomaly.extension.html_widget', 'anomaly.extension.private_storage_adapter', 'anomaly.extension.robots', 'anomaly.extension.sitemap', 'anomaly.extension.throttle_security_check', 'anomaly.extension.user_security_check', 'anomaly.extension.wysiwyg_block', 'anomaly.extension.xml_feed_widget', ], 'exclude' => [ '*' // excluding all, which makes it only install addons defined in `include` ], 'skip_base_migrations' => false, // skip database/migrations/* 'skip_base_seeds' => false, // skip database/seeds/* ];
install Command
You might prefer to check this in the console using the --help option.
Basically all custom_install.php configuration values can be overridden using the options.
Usage
install [--ready] [--call_before [CALL_BEFORE]] [--dispatch_before [DISPATCH_BEFORE]] [--call_after [CALL_AFTER]] [--dispatch_after [DISPATCH_AFTER]] [--skip_steps [SKIP_STEPS]] [--start_from_step [START_FROM_STEP]] [--ignore_exceptions] [--skip_install [SKIP_INSTALL]] [--skip_seed [SKIP_SEED]] [--include [INCLUDE]] [--exclude [EXCLUDE]] [--skip_base_migrations] [--skip_base_seeds] [--] [<method>]install list
Arguments
method
method name
- Is required: no
- Is array: no
- Default:
'install'
Options
--ready
Indicates that the installer should use an existing .env file.
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
--call_before
- Accept value: yes
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--dispatch_before
- Accept value: yes
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--call_after
- Accept value: yes
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--dispatch_after
- Accept value: yes
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--skip_steps
- Accept value: yes
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--start_from_step
- Accept value: yes
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--ignore_exceptions
- Accept value: no
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--skip_install
- Accept value: yes
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--skip_seed
- Accept value: yes
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--include
- Accept value: yes
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--exclude
- Accept value: yes
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--skip_base_migrations
- Accept value: no
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--skip_base_seeds
- Accept value: no
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--help|-h
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--quiet|-q
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--verbose|-v|-vv|-vvv
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--version|-V
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--ansi
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--no-ansi
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--no-interaction|-n
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--env
The environment the command should run under
- Accept value: yes
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
--app
The application this command should run under.
- Accept value: yes
- Is value required: no
- Is multiple: no
- Default: The value of this option in the
custom_install.phpconfiguration file
pyro/custom-install 适用场景与选型建议
pyro/custom-install 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 179 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 10 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「pyrocms」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 pyro/custom-install 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pyro/custom-install 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 pyro/custom-install 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A repeating data structure field type.
Useful development debugging tools for Twig on PyroCMS 3.x
The video field type provides a simple input for displaying embeddable videos from your favorite provider.
Manage portfolio projects and clients
Based on Accelerant Theme.
A currency dropdown field type.
统计信息
- 总下载量: 179
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-10-21