Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0 版本计划 #281

Closed
0xxb opened this issue Dec 9, 2021 · 7 comments
Closed

2.0 版本计划 #281

0xxb opened this issue Dec 9, 2021 · 7 comments

Comments

@0xxb
Copy link
Collaborator

0xxb commented Dec 9, 2021

兰空图床从第一个版本开始,就使用 ThinkPHP 5.1 框架开发,经历了 19 个版本,在迭代的过程中,我尽量保持着代码的可读性与健壮性。

但回顾过往,看自己一行行写出来的代码,竟是如此的生涩。旧的东西总是要抛弃的,加之 PHP 8.1 都已经发布,为了使用更好的特性,这次的 2.0 版本,将会使用 Laravel 9 LTS 版本重写兰空图床,感谢 ThinkPHP 开发者,respect!

使用 Laravel 意味着兰空图床已无法安装在虚拟主机上,且安装条件较高,以下是硬性要求:

  • PHP >= 8.0
  • BCMath PHP 扩展
  • Ctype PHP 扩展
  • DOM PHP 拓展
  • Fileinfo PHP 扩展
  • JSON PHP 扩展
  • Mbstring PHP 扩展
  • OpenSSL PHP 扩展
  • PDO PHP 扩展
  • Tokenizer PHP 扩展
  • XML PHP 扩展
  • Imagick 拓展

新的版本将使用大名鼎鼎的 flysystem 实现上传策略,不再局限于旧版本需要自己适配。目前开源的实现库有且不限于这些:

需要注意的是,新版本的上传文件的流程依然是 本地->服务器->第三方储存。因为是重写,且数据库层面将有重大变动,旧版本无法升级到 2.0 版本。

目前新版本还在筹备调研当中,因为精力有限,旧版本只提供安全质量修复。如果你对 2.0 版本感兴趣,可以添加 TG 群组
一起探讨。

@0xxb 0xxb pinned this issue Dec 9, 2021
@louiejordan
Copy link

期待,2.0大概什么时候发布?

@0xxb
Copy link
Collaborator Author

0xxb commented Dec 10, 2021

期待,2.0大概什么时候发布?

业余时间开发,无法预算具体发布时间,不过开发过程中会使用 github 的 项目看板,关注这个即可。

@fcwys
Copy link

fcwys commented Dec 20, 2021

希望能有一个数据库迁移指南或工具

@0xxb
Copy link
Collaborator Author

0xxb commented Dec 21, 2021

希望能有一个数据库迁移指南或工具

比较困难,我尽量,现在已经确定的是旧版本的用户密码、文件夹无法迁移。

@Smalltred
Copy link

希望能新版本能有一个全新的UI

@HazukiKaguya
Copy link

希望能有一个数据库迁移指南或工具

比较困难,我尽量,现在已经确定的是旧版本的用户密码、文件夹无法迁移。

也就是每个用户绑定的图片信息是可以迁移的?那就够了。

@0xxb 0xxb closed this as completed in 4ee82c3 Mar 12, 2022
@0xxb 0xxb unpinned this issue Mar 12, 2022
@zdvas
Copy link

zdvas commented Feb 7, 2023

这个迁移的过程小白看不懂呀,有没有视频的演示,最怕数据库不会备份,挂了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
@louiejordan @0xxb @fcwys @HazukiKaguya @Smalltred @zdvas and others