hypothesis/wp-hypothesis
Composer 安装命令:
composer require hypothesis/wp-hypothesis
包简介
An open platform for the collaborative evaluation of knowledge.
README 文档
README
Stable versions are available on the Hypothesis plugin page on WordPress.org.
Install this plugin
Via composer
This plugin can be installed with composer, from the standard package registry (packagist.org)
composer require hypothesis/wp-hypothesis
Via WordPress plugins directory
- Visit your WordPress plugins page (/wp-admin/plugins.php)
- Click the Add New button
- Search the WordPress plugins directory for Hypothes.is
- Click Install Now.
- Click Activate
- Visit your WordPress Settings > Hypothesis page to configure how it works on your site
Development
- Install
phpand thedomandmbstringextensions. - Download Composer, the PHP package manager.
- Run
make dev. This will start a local WordPress instance with this plugin mounted on it. - Access http://localhost:8080 (the first time you'll have to finish setting up WordPress by following presented instructions)
Publishing
Follow these steps to publish a new plugin version.
- Update the package version in
hypothesis.php,readme.txtandpackage.json - Update readme.txt, adding the new version with its list of changes, under the
Changelogsection. - Merge the changes into the
mainbranch1. We use Semantic Versioning. - Create a tag pointing at the version-change commit and generate a new GitHub release (details follow). Publishing a GitHub release will kick off a GitHub Action that will publish the plugin to wordpress.org
Note
The package will be automatically published in packagist.org just by pushing the new git tag.
Creating a GitHub release
Create a new GitHub release with these values:
- Tag: Create a new tag for the release, targeting the
mainbranch (your just-merged version bump should be at the tip)2. The tag should match the version number, e.g.v5.2.1. - Title: Use the tag name.
- Click the
Auto-generate release notesbutton to generate release notes and edit as needed. We use Keep a Changelog formatting.3 - Leave other fields alone/as defaults.
License
Footnotes
-
Unlike other PRs, a version-bump PR does not require review. But do wait for CI to complete first. ↩
-
You can create a tag manually as a separate step if you want to tag a non-tip commit. ↩
-
You can look at release notes for other recent releases as exemplars. You don't need to include every change (especially, e.g., dependency updates). ↩
hypothesis/wp-hypothesis 适用场景与选型建议
hypothesis/wp-hypothesis 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 273 次下载、GitHub Stars 达 29, 最近一次更新时间为 2024 年 01 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 hypothesis/wp-hypothesis 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hypothesis/wp-hypothesis 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 273
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 29
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2024-01-26