yueheng0112 / sapp
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
Requires
- php: ^7.2.0
- symfony/var-dumper: ^5.4
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