alexstandiford / underpin
4.2.1
2023-03-31 04:11 UTC
Requires
- php: ^8.1
- composer/installers: ^2.1
Requires (Dev)
- mockery/mockery: ^1.5
- phpunit/phpunit: ^9.5
- dev-master
- 4.2.1
- 4.2.0
- 4.1.0
- 4.0.0
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.1.0
- 2.0.0
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- dev-bugfix/to-string-for-param-collections
- dev-feature/camel-case
- dev-feature/cache
- dev-release/2.0.0
- dev-release/1.3.1
- dev-release/1.3.0
- dev-issue/31
- dev-issue/28
- dev-issue/1
- dev-release/1.2.0
- dev-issue/24
- dev-release/1.1.2
- dev-release/1.1.1
- dev-release/1.1.0
- dev-release/1.0.1
- dev-issue/10
This package is auto-updated.
Last update: 2023-03-31 04:27:08 UTC
README
Underpin 的目标是提供一个模式,使构建 PHP 项目更加容易。它为插件在成熟过程中需要的实用工具提供支持,例如,一个可靠的错误记录工具,一个用于升级例程的批量处理程序,以及一个决策树类,使得扩展 和 调试多层决策比传统的 WordPress 插件钩子要容易得多。
安装
Underpin 可以安装在任何可以编写代码的地方。
通过 Composer
composer require underpin/underpin
注意 这会将 Underpin 添加为 mu-plugin
,但由于 WordPress 处理必须使用插件的方式,这实际上 并没有将插件添加到您的网站。您还必须手动在 mu-plugin PHP 文件中引入该文件
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } // Load Underpin, and its dependencies. $autoload = plugin_dir_path( __FILE__ ) . 'vendor/autoload.php'; require_once( $autoload );
手动
如果您正在直接开发 Underpin,或者只是不想使用 Composer,请按照以下步骤使用
- 克隆此存储库,最好在
mu-plugins
目录中。 - 引入
Underpin.php
,最好作为mu-plugin
。
我最近发布了这个项目的 3.0 版本,遗憾的是,由于我在构建中采取的方法,我没有像应该那样很好地记录事物。我知道我错了。我会在某一天做到的...
项目如此之多,时间如此之少。