1. Go to this page and download the library: Download underdev/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/ */
underdev / requirements example snippets
/*
Plugin Name: My Test Plugin
Version: 1.0
*/
/**
* If installed by download
*/
or/autoload.php' );
$gins' => array(
'akismet/akismet.php' => array( 'name' => 'Akismet', 'version' => '3.0' ),
'hello-dolly/hello.php' => array( 'name' => 'Hello Dolly', 'version' => '1.5' )
),
'theme' => array(
'slug' => 'twentysixteen',
'name' => 'Twenty Sixteen'
),
'function_collision' => array( 'my_function_name', 'some_other_potential_collision' ),
'class_collision' => array( 'My_Test_Plugin', 'My_Test_Plugin_Other_Class' ),
'custom_check' => 'thing to check', // this is not default check and will have to be registered
) );
/**
* Add your own check
*/
function my_plugin_custom_check( $comparsion, $r ) {
if ( $comparsion != 'thing to check' ) {
$r->add_error( 'this thing to be that' );
}
}
$
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.