grei/melody2

One file composer scripts

Maintainers

Details

github.com/guangrei/melody2

Source

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

pkg:composer/grei/melody2

v1.0.0 2022-01-03 10:46 UTC

This package is auto-updated.

Last update: 2025-09-29 02:58:46 UTC


README

INSTALLATION

with composer

composer global require grei/melody2

or download melody.phar directly, from release.

EXAMPLE

Create a file named test.php:

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

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

or you can write richer script format:

<?php
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());

And simply run it:

$ melody run test.php