grei/melody2

一个文件的 composer 脚本

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

This package is auto-updated.

Last update: 2024-09-29 06:29:14 UTC


README

安装说明

使用 composer

composer global require grei/melody2

或者直接从 发布版 下载 melody.phar。

示例

创建一个名为 test.php 的文件

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

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

或者你可以编写更丰富的脚本格式

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

然后简单运行它

$ melody run test.php