There is no license information available for the latest version (v1.0.5) of this package.

脚手架

v1.0.5 2023-01-30 01:49 UTC

This package is auto-updated.

Last update: 2024-04-29 04:54:13 UTC


README

下载

composer require yueheng0112/sapp

创建入口文件 console

#!/usr/bin/env php
<?php
namespace sapp;
require __DIR__ . '/vendor/autoload.php';
(App::getInstance())->run();

示例

<?php
namespace app\controller;
class Index
{
    /**
     * @param $a
     * @param $b
     * @example  php think index/index a=3 b=2
     */
    public function index($a, $b)
    {
        echo "this is index\n";
        dump($a, $b);
    }

}

运行

php console index/index a=3 b=2