@@ -47,9 +47,9 @@ git clone https://github.com/inhere/php-console.git // github
4747
4848``` php
4949// file: examples/app
50- use inhere\console\io \Input;
51- use inhere\console\io \Output;
52- use inhere\console \App;
50+ use Inhere\Console\IO \Input;
51+ use Inhere\Console\IO \Output;
52+ use Inhere\Console \App;
5353
5454$meta = [
5555 'name' => 'My Console App',
@@ -83,10 +83,10 @@ $app->run();
8383添加命令的方式有三种
8484
8585- 如上所示,使用闭包可以快速的添加一个简单的命令
86- - 通过继承 ` inhere\console \Command` 添加独立命令
86+ - 通过继承 ` Inhere\Console \Command` 添加独立命令
8787
8888``` php
89- use inhere\console\utils \AnsiCode;
89+ use Inhere\Console\Utils \AnsiCode;
9090
9191/**
9292 * Class Test
@@ -96,8 +96,8 @@ class TestCommand extends Command
9696{
9797 /**
9898 * execute
99- * @param inhere\console\io \Input $input
100- * @param inhere\console\io \Output $output
99+ * @param Inhere\Console\IO \Input $input
100+ * @param Inhere\Console\IO \Output $output
101101 * @return int
102102 */
103103 public function execute($input, $output)
@@ -109,10 +109,10 @@ class TestCommand extends Command
109109
110110注册命令,在 ` $app->run() ` 之前通过 ` $app->command('test', TestCommand::class) ` 注册独立命令。
111111
112- - 通过继承 ` inhere\console \Controller` 添加一组命令(命令行的控制器类)
112+ - 通过继承 ` Inhere\Console \Controller` 添加一组命令(命令行的控制器类)
113113
114114``` php
115- use inhere\console \Controller;
115+ use Inhere\Console \Controller;
116116
117117/**
118118 * default command controller. there are some command usage examples
@@ -150,7 +150,7 @@ class HomeController extends Controller
150150
151151## 输入
152152
153- > 输入对象是 ` inhere\console\io \Input` 的实例
153+ > 输入对象是 ` Inhere\Console\IO \Input` 的实例
154154
155155在终端中执行如下命令,用于演示参数选项等信息的解析:
156156
@@ -268,7 +268,7 @@ echo $name; // 'simon'
268268
269269## 输出
270270
271- > 输出对象是 ` inhere\console\io \Output` 的实例
271+ > 输出对象是 ` Inhere\Console\IO \Output` 的实例
272272
273273基本输出:
274274
@@ -299,9 +299,9 @@ $output->write('hello <info>world<info>');
299299
300300![ alt text] ( images/output-color-text.png " Title ")
301301
302- 来自于类 ` inhere\console\utils \Show` 。
302+ 来自于类 ` Inhere\Console\Utils \Show` 。
303303
304- > output 实例拥有 ` inhere\console\utils \Show` 的所有格式化输出方法。不过都是通过对象式访问的。
304+ > output 实例拥有 ` Inhere\Console\Utils \Show` 的所有格式化输出方法。不过都是通过对象式访问的。
305305
306306### 标题文本输出
307307
@@ -491,7 +491,7 @@ Show::helpPanel([
491491
492492## 用户交互方法
493493
494- 需引入类 ` inhere\console\utils \Interact`
494+ 需引入类 ` Inhere\Console\Utils \Interact`
495495
496496### 从给出的列表中选择一项
497497
643643
644644### ` inhere/http ` [ github] ( https://github.com/inhere/php-http ) [ git@osc] ( https://git.oschina.net/inhere/php-http )
645645
646- http 工具库(` request ` 请求 ` response ` 响应 ` curl ` curl请求库,有简洁、完整和并发请求三个版本的类)
646+ http 工具库(` request ` 请求 ` response ` 响应 ` curl ` curl请求库,有简洁、完整和并发请求三个版本的类)
0 commit comments