1. Go to this page and download the library: Download kirtangajjar/ee 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/ */
kirtangajjar / ee example snippets
/**
* Delete an option from the database.
*
* Returns an error if the option didn't exist.
*
* ## OPTIONS
*
* <key>
* : Key for the option.
*
* ## EXAMPLES
*
* $ wp option delete my_option
* Success: Deleted 'my_option' option.
*/
$delete_option_cmd = function( $args ) {
list( $key ) = $args;
if ( ! delete_option( $key ) ) {
EE::error( "Could not delete '$key' option. Does it exist?" );
} else {
EE::success( "Deleted '$key' option." );
}
};
EE::add_command( 'option delete', $delete_option_cmd );
bash
php ee.phar --info
bash
$ wp --info
OS: Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 x86_64
Shell: /bin/zsh
PHP binary: /usr/local/bin/php
PHP version: 7.0.22
php.ini used: /etc/local/etc/php/7.0/php.ini
EE root dir: /home/ee/.ee
EE vendor dir: /home/ee/.ee/vendor
EE packages dir: /home/ee/.ee/packages/
EE global config: /home/ee/.ee/config.yml
EE project config:
EE version: 1.5.0
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.