Skip to content

迁移助手,目前支持 owl-admin迁移至hyperf,后续支持双向迁移

Notifications You must be signed in to change notification settings

hyperf-plus/owl-admin-to-hyperf

Repository files navigation

owl-admin 迁移助手

介绍

owl-admin 迁移助手,目前仅支持owl-admin迁移到hyperf,后续会支持双向迁移。

owl-admin相当强大,但是基于laravel,而hyperf是基于swoole的,两者的底层架构不同,所以迁移是有一定难度的,这个工具就是为了解决这个问题而生的,

为什么要用hyperf来做这个后台

后台不需要高性能,laravel完全够用了,这个问题我也想过,但是我还是选择了hyperf,原因如下:

  • 平时api接口基本全都是基于hyperf,需要重新再维护一套laravel的后台,不如直接用hyperf来做。
  • 模型、service等等只需要创建一次、极大的减少了重复劳动。
  • 代码风格统一,维护方便。
  • hyperf深度使用者,可以更好的发挥hyperf的优势,开发效率远高于laravel。
  • 归根到底最主要原因就是易维护、方便高效

迁移步骤

git clone git@github.com:hyperf-plus/owl-admin-to-hyperf.git

cd owl-admin-to-hyperf


# 克隆owl仓库
git clone git@github.com:slowlyo/owl-admin.git --depth 1


# 创建包路径
mkdir -p packages

进入packages
cd packages

将UI和admin两个包克隆下来

git clone git@github.com:hyperf-plus/ui.git
git clone git@github.com:hyperf-plus/admin.git

安装项目依赖

cp .env.example .env
composer install

About

迁移助手,目前支持 owl-admin迁移至hyperf,后续支持双向迁移

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages