wp-fleet/auto-update
Composer 安装命令:
composer require wp-fleet/auto-update
包简介
PHP Package to handle the plugin and themes auto update functionality
README 文档
README
PHP Package to handle the WordPress plugins and themes auto update functionality.
Getting Started
Minimum requirements and dependencies
AutoUpdate requires:
- PHP >= 7.0
- WP Fleet plugin to be installed from https://wp-fleet.com/
- WordPress - latest
- Composer to be installed
Installation
Install via composer
composer require wp-fleet/auto-update
Usage
Basic usage
In your plugin's main file, require vendor file and call the auto update loader class as follows:
// Define update plugin info and call the function to manage it.
$update_args = [
'api_url' => 'https://your-website.tld/',
'plugin_full_path' => __FILE__,
'allowed_hosts' => [
'https://your-website.tld'
],
'plugin_name' => plugin_basename( __FILE__ ),
'license_key' => 'required',
];
( new WpFleet\AutoUpdate\Loader( $update_args ) );
Parameters and arguments:
api_url - [required] site url where WP Fleet plugin is installed.
plugin_full_path - [required] expects to receive __FILE__ value. The full path of the current plugin (that will be updated automatically)
allowed_hosts - [optional] the url of the allowed external hosts to allow plugin updated (where WP Fleet plugin is installed)
plugin_name - [optional] the name of the current plugin (that will be updated automatically)
license_key - [optional] if true|1|required, a new page will be added under WP Admin -> Plugins -> License Keys and user will have to submit a valid license key to be able to automatically update plugin. If no license key is required, set it to false.
license_page_parent_slug - [optional] set the admin parent page slug.
license_page_description - [optional] a description that will be displayed on the license page.
License
wp-fleet/auto-update code is licensed under MIT license.
wp-fleet/auto-update 适用场景与选型建议
wp-fleet/auto-update 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 72 次下载、GitHub Stars 达 2, 最近一次更新时间为 2021 年 01 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 wp-fleet/auto-update 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wp-fleet/auto-update 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 72
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-01-03