2017 © Pedro Peláez
 

library newx-console

A console application

image

beansir/newx-console

A console application

  • Tuesday, March 13, 2018
  • by 1052049021@qq.com
  • Repository
  • 0 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

NewX Console

安装说明

使用composer一键安装, (*1)

composer require beansir/newx-console

搭建结构

  • console // 控制台目录
    • config
      • config.php
      • function.php
    • Home.php
  • command // 脚本执行文件

创建脚本执行文件command

#!/usr/bin/env php
<?php
defined('PROJECT_PATH') or define('PROJECT_PATH', __DIR__);

require PROJECT_PATH . '/vendor/beansir/newx-console/command';

配置文件

console/config/config.php, (*2)

<?php
return [
    'app' => [
        'timezone' => 'Asia/Shanghai', // 时区
    ],
    'database' => [
        'default' => [
            'host'      => '127.0.0.1',
            'user'      => 'user',
            'password'  => 'password',
            'db'        => 'db',
            'type'      => 'mysqli'
        ],
    ],
];

运行脚本

command home/index param1 param2 ...

The Versions

13/03 2018

dev-master

9999999-dev

A console application

  Sources   Download

MIT

The Requires

 

by bean

command console newx

13/03 2018

v1.2

1.2.0.0

A console application

  Sources   Download

MIT

The Requires

 

by bean

command console newx

08/03 2018

v1.1

1.1.0.0

A console application

  Sources   Download

MIT

The Requires

 

by bean

command console newx

08/03 2018

v1.0

1.0.0.0

A console application

  Sources   Download

MIT

The Requires

 

by bean

command console newx