{"modulePath":"github.com/inhere/kite-go","version":"v0.4.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package phpcmd\n\n## Variables\n\n```go\nvar PhpInfoCmd = \u0026gcli.Command{\n\tName: \"info\",\n\tDesc: \"system info for php\",\n\tFunc: func(c *gcli.Command, args []string) error {\n\t\tcmd := cmdr.NewCmd(\"php\", \"-v\")\n\n\t\treturn cmd.Run()\n\t},\n}\n```\nPhpInfoCmd instance\n\n```go\nvar PhpServeCmd = \u0026gcli.Command{\n\tName: \"serve\",\n\tDesc: \"start an php development server\",\n\tFunc: func(c *gcli.Command, args []string) error {\n\t\tcmd := cmdr.NewCmd(\"php\", \"-v\")\n\n\t\treturn cmd.Run()\n\t},\n}\n```\nPhpServeCmd instance\n\n```go\nvar PhpToolsCmd = \u0026gcli.Command{\n\tName: \"php\",\n\tDesc: \"some php tools command\",\n\tSubs: []*gcli.Command{\n\t\tPhpInfoCmd,\n\t\tPhpServeCmd,\n\t},\n}\n```\nPhpToolsCmd instance\n\n## Types\n\n```go\ntype PhpServeConf struct {\n\tRoot   string\n\tEntry  string\n\tPhpBin string\n\tAddr   string\n}\n```\nPhpServeConf struct run: php -S 127.0.0.1:8080 -t web web/index.php\n\n","path":"github.com/inhere/kite-go/internal/cli/devcmd/phpcmd","name":"phpcmd","synopsis":"","isRedistributable":true}
