themeplate/compatibility
最新稳定版本:v0.4.0
Composer 安装命令:
composer require themeplate/compatibility
包简介
Simple compatibility helper class
README 文档
README
Usage
use ThemePlate\Compatibility; ( new Compatibility( '6.0', '8.0' ) )->setup( 'My Project' );
Custom messages
use ThemePlate\Compatibility; $compatibility = new Compatibility( '5.0', '5.6' ); /* translators: %s package name */ $compatibility->message_header( 'Sorry! %s is not compatible.' ); /* translators: 1. required version, 2. installed version */ $compatibility->message_wp( __( 'Requires WP %1$s or higher but currently running at %2$s', 'custom_domain' ) ); /* translators: 1. required version, 2. installed version */ $compatibility->message_php( __( 'Requires PHP %1$s or higher but currently running at %2$s', 'custom_domain' ) );
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2023-01-28