1. Go to this page and download the library: Download wpbp/requirements library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wpbp / requirements example snippets
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' )
) )
) );
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.