eighteen73/satellite
最新稳定版本:v1.1.7
Composer 安装命令:
composer require eighteen73/satellite
包简介
A collection of developer tools for WordPress projects
README 文档
README
Warning
Satellite has now been retired with the release of Orbit 2.0, which encompasses all its features we use. If your project uses both Orbit and Satellite, please update to Orbit 2.0 before removing Satellite. Also notice you'll need to configure your email settings to continue to catch emails locally. We use Simple SMTP along with environment variables.
Satellite
Satellite applies a collection of developer tools for WordPress projects. It is only designed to be used in development environments and should not be installed in live environments at all.
The plugin is unapologetically opinionated to fit the needs and preferences of our web agency. We feel the choices we've made are sensible and pragmatic for the kinds of websites we work on. We understand not everyone will agree with the choices we have made.
Installation
These instructions assume you are using Nebula. That is a not a requirement (e.g. it has also been tested in Bedrock) but the configuration may need to be altered if you are not using it.
To install the plugin run the following command:
composer require --dev eighteen73/satellite
Satellite will be installed as a must-use plugin, so it is automatically enabled.
Configuration
The plugin loads configuration from environment settings. There is no UI and settings are not stored in the website's database.
You may store config in your website's environment settings file (e.g. config/environments/development.php) if you want to share it with orther developers, or in your .env file to keep it private. If config is stored in both places your .env file will take precedence.
This file's examples show configuration in .env format but it can be adjusted as follows of putting it into a evironment settings file. I.e. SATELLITE_PRODUCTION_URL=example.com would be changed to Config::define( 'SATELLITE_PRODUCTION_URL', 'website.example.com' ).
Feature specific configuration is mentioned in their descriptions below.
Features
Feature: Use remote files
Purpose
This plugin will remote-load uploaded files without having to sync them to your development environment. Note this only works when wp_get_environment_type() = local|development and will silently deactivate when that is not the case, or when the following config is not in place.
Config
SATELLITE_PRODUCTION_URL=https://example.com
Usage
There are no special instructions for use.
Feature: Mail catcher
Purpose
As a safety precaution to save developers from accidentally sending emails to real users, this plugin tries to override mail settings so all emails will be directed to a mail catcher instead.
You should always veryify that functionality works as expected in case you are using another email plugin that is especially aggressive at applying it's own settings.
Config
SATELLITE_SMTP_HOST=127.0.0.1 SATELLITE_SMTP_PORT=1025 SATELLITE_SMTP_ENCRYPTION=[none|tls|ssl] SATELLITE_SMTP_AUTH=[true|false] SATELLITE_SMTP_USERNAME= SATELLITE_SMTP_PASSWORD=
Usage
There are no special instructions for use.
Note that is plugin automatically disables some commonly used mail plugins, notably:
- wp-mail-smtp
- easy-wp-smtp
- mailgun
eighteen73/satellite 适用场景与选型建议
eighteen73/satellite 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.05k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2022 年 04 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 eighteen73/satellite 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 eighteen73/satellite 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-04-26