定制 wpbp/requirements 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wpbp/requirements

Composer 安装命令:

composer require wpbp/requirements

包简介

Library for handling minimum system requirements in WordPress Plugins

README 文档

README

License Downloads

A small library to easily handle detection of minimum system requirements in WordPress plugins.

Screenshot

Features

  • Detects PHP versions incompatible with your Plugin.
  • Detects WordPress versions incompatible with your Plugin.
  • Detects WordPress plugins.
  • Detects absence of PHP extensions.
  • Displays errors to users without activating your Plugin.

Getting Started

new Plugin_Requirements( self::$plugin_name, self::$plugin_slug, array(
  'PHP' => new PHP_Requirement( '5.9.0' ),
  'WP' => new WordPress_Requirement( '3.9.0' ),
  'Extension' => new PHP_Extension_Requirement( array('mysql', 'mysqli', 'session', 'pcre','json', 'gd', 'mbstring', 'zlib' ),
  'Plugin' => new Plugin_Requirement( array( 
     array( 'Plugin not installed', 'slug/slug.php' ) , 
     array( 'Plugin not installed 2', 'slug/slug2.php' ) 
   ) )
) );

License

Fork of Mte90, Copyright © 2014 Darshan Sawardekar

统计信息

  • 总下载量: 306
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2016-07-01