8000 GitHub - zhanghong/tpadmin: 一个基于ThinkPHP5.1+的非侵入式的后台开发框架
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zhanghong/tpadmin

Repository files navigation

tpadmin

the admin framework based on thinkphp 5.1.

StyleCI TravisCi

安装

最方便的安装方式就是使用Composer ( https://getcomposer.org/ ),在这之前务必先搭建好thinkphp5.1项目

1、安装 Tpadmin :

$ composer require zhanghong/tpadmin

2、配置

添加行为在 application/tags.php

return [

    'app_init'     => [
        \tpadmin\behavior\Boot::class,
    ],

    // ...
];

3、初始化和数据迁移

#初始化
$ php think tpadmin:init
#安装数据库迁移扩展包
$ composer require topthink/think-migration=2.0.*
#创建Tpadmin数据表
$ php think migrate:run
#添加初始化数据
$ php think tpadmin:seed

进入tpadmin后台

打开后台地址,例如:

http://yourdomain/admin

About

一个基于ThinkPHP5.1+的非侵入式的后台开发框架

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0