PHP code example of eabay / oow
1. Go to this page and download the library: Download eabay/oow 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/ */
eabay / oow example snippets
php
namespace Plugins;
/** @Plugin */
class HelloWorld
{
/** @Hook(tag="wp_footer",priority=50) */
public function sayHello()
{
echo 'Hello World';
}
}
php
/*
Plugin Name: Hello World
*/
use Oow\Plugin\PluginManager;
use Plugins\HelloWorld;
$manager = new PluginManager;
$manager->addPlugin(new HelloWorld);