myphp-cli
这个 myphp 命令的 MyPHP 为
项目包的脚本。的类型 myphp.config.ts。
MyPHP的命令行工具是PHP框架的一部分,其中项目 使用Composer安装:
composer require owner888/myphp
npm install -D myphp-cli
{
"scripts": {
"dev": "myphp dev",
"build": "myphp build"
}
}
myphp 按照这个顺序, $MYPHP_CLI_BINARY 设置时;bin / myphp
在MyPHP checkout中,该包是(a)的一部分 file: 依赖,
myphp init -template web 写);其他
vendor/owner888/myphp/bin/myphp 在当前目录或最近的目录中
目录上面有一个。它需要PHP 8.3或更高版本的FFI。
defineConfig 的配置类型 myphp.config.ts,这需要
myphp.json的位置:
import { defineConfig } from "myphp-cli";
export default defineConfig({
name: "My App",
identifier: "com.example.myapp",
devUrl: "http://localhost:5173",
});