tombroucke/otomaties-core 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tombroucke/otomaties-core

Composer 安装命令:

composer require tombroucke/otomaties-core

包简介

Optimize WordPress installation for performance, security etc.

README 文档

README

Installation

composer require tombroucke/otomaties-core

Features

ACF

  • Hide ACF screen in production (WP_ENV == 'production') & staging environments (WP_ENV == 'staging'). To overrule: add_filter('acf/settings/show_admin', '__return_false');

Admin

  • Disable comments, remove from admin. To enable comments: add_filter('otomaties_open_comments', '__return_true');
  • Adds an environment indicator for staging and development environments. To disable: add_filter('otomaties_enable_environment_indicator', '__return_false');

Branding

  • Logo on login screen
  • Logo in toolbar
  • Admin footer

To disable: add_filter('otomaties_whitelabel', '__return_true'); or installed the mu-plugin: composer require tombroucke/whitelabel-otomaties-core

Frontend

  • Disable emojis. To enable: add_filter('otomaties_disable_emojis', '__return_false');
  • Set default image link type to 'file'. To change: add_filter('otomaties_set_default_image_default_link_type', '__return_false');
  • Clean up head section
  • Redirect single search result. To disable: add_filter('otomaties_redirect_single_search_result', '__return_false');
  • Add shortcode for e-mailaddress obfuscation: [email]info@example.com[email] or [email address="info@example.com"]

Security

Notices for

  • WP_DEBUG or DISALLOW_FILE_EDIT is TRUE
  • debug.log is publicly accesible
  • No security plugin active.

Login screen

  • Add generic error to login screen

SSL

  • Force HTTPS on attachments

General

  • Disable updating of critical options users_can_register & default_role. To disable: add_filter('otomaties_disable_update_critical_options', '__return_false');

Otomaties Connect

  • Otomaties connect can fetch data over the rest API. Secured authentication with a public/private key pair.
Connection

In your .env file or wp-config.php file, add the OTOMATIES_CONNECT_KEY constant from the Otomaties connect portal.

OTOMATIES_CONNECT_KEY='XXXX-XXXX-XXXX-XXXX'
define('OTOMATIES_CONNECT_KEY', 'XXXX-XXXX-XXXX-XXXX');

Revision

  • revision.txt needs to be in web root
  • format: 'YmdHis {{commit hash}}'
  • Show revision in admin footer for administrator role
  • Show revision in console for all environments except production

To disable revisions: add_filter('otomaties_display_revision', '__return_false');

Building

There is a separate command to build the vendor_prefixed directory. Additional production dependencies should be added in the composer.json file under extra.require-scoped, after which the vendor_prefixed should be rebuilt.

Prerequisites

  • jq (brew install jq)
  • php-scoper (composer global require humbug/php-scoper)

Build command

  • To build the vendor_prefixed directory, run bash scoper.sh.

tombroucke/otomaties-core 适用场景与选型建议

tombroucke/otomaties-core 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7.71k 次下载、GitHub Stars 达 8, 最近一次更新时间为 2020 年 11 月 23 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 tombroucke/otomaties-core 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 tombroucke/otomaties-core 我们能提供哪些服务?
定制开发 / 二次开发

基于 tombroucke/otomaties-core 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 7.71k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 12
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-23