PHP code example of grei / melody2

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

    

grei / melody2 example snippets



<<<COMPOSER
packages:
    - "grei/tanggalmerah: *"
COMPOSER;

$t = new Grei\TanggalMerah();
var_dump($t->check());



declare(strict_types=1);
/**
 * Created by PhpStorm.
 * Filename: test.php
 * Descr: melody test file
 * User: Guangrei
 * Date: Jan 03, 2022
 * Time:  17:35:02 WIB
 */
<<<COMPOSER
packages:
    - "grei/tanggalmerah: *"
COMPOSER;

$t = new Grei\TanggalMerah();
var_dump($t->check());

bash
$ melody run test.php