PHP code example of morningtrain / wp-economic

1. Go to this page and download the library: Download morningtrain/wp-economic 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/ */

    

morningtrain / wp-economic example snippets


    use MorningTrain\WordPress\Economic\Economic;

    Economic::setup(
    ECONOMIC_APP_SECRET_TOKEN,
    ECONOMIC_GRANT_TOKEN);
    
    Economic::useLogger(new fooLogger());