PHP code example of dapigguy / libpiggyeconomy
1. Go to this page and download the library: Download dapigguy/libpiggyeconomy 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/ */
dapigguy / libpiggyeconomy example snippets
libPiggyEconomy::init()
libPiggyEconomy::getProvider($providerInformation)
class AmazingPlugin extends PluginBase{
public $economyProvider;
public function onEnable(): void{
$this->saveDefaultConfig();
libPiggyEconomy::init();
$this->economyProvider = libPiggyEconomy::getProvider($this->getConfig()->get("economy"));
}
}