eleven-miles/zeus
Composer 安装命令:
composer require eleven-miles/zeus
包简介
Zeus Bundle
README 文档
README
Contains any useful components
To use this within your application, create your own Kernel class extending the one in this package, then
in your _construct function add parent::__construct(); this will then register all the base classes found
in Zeus.
The Zeus Kernel class constructor accepts an array of configuration options for the various modules that the base class sets up and manages, called in the registerClasses method. This allows for individual module configuration, as well as a top level option to disable all custom actions/filters called within each module.
The purpose of this additional level of configuration is to allow project specific customisation and reduce conflicts where existing methods may override new actions/filters when called in a custom theme.
Below is the full list of available configuration options (available within the Kernel class file ):
private $moduleConfigs = [ 'gravityforms' => [ 'disabled' => false, 'enableStyling' => true, 'pushToGTM' => true, 'populateCustomFields' => true, ], 'acf' => [ 'disabled' => false, 'hideAdmin' => true, 'settingsPage' => true, 'allowedBlocks' => true ], 'dashboard' => [ 'disabled' => false, 'disableWidgets' => true, 'disableComments' => true, 'removeAdminColumns' => true, ], 'duplicate' => [ 'disabled' => false, ], 'manifest' => [ 'disabled' => false, ], 'optimsewp' => [ 'disabled' => false, 'disableJquery' => true, 'disableScripts' => true, 'disableEmojis' => true, 'disableHeadLinks' => true, 'disableRestAPI' => true, 'disableAdminBar' => true, ], 'tinymce' => [ 'disabled' => false, ], 'twig' => [ 'disabled' => false, ], 'yoast' => [ 'disabled' => false, 'disableAdminFilters' => true, 'disableOptimisations' => true, ] ];
To use a customised configuration in your theme's extended Kernel, implement as below:
use NanoSoup\Zeus\Kernel as KernelBase; class Kernel extends KernelBase { public function __construct() { $kernelModuleConfig = [ 'acf' => [ 'addSettingsPage' => false, // Add as many of the configuration options above as required // ensuring you place options under the correct array key module name ] ]; parent::__construct($kernelModuleConfig); $this->registerClasses(); } }
eleven-miles/zeus 适用场景与选型建议
eleven-miles/zeus 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.05k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 09 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 eleven-miles/zeus 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 eleven-miles/zeus 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 6.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2022-09-06