GithubHelp home page GithubHelp logo

slimkit / plus Goto Github PK

View Code? Open in Web Editor NEW
2.2K 108.0 471.0 86.01 MB

💝The Plus (ThinkSNS+) is a powerful, easy-to-develop social system built with Laravel.

Home Page: https://slimkit.github.io/plus/

License: Other

PHP 48.28% HTML 0.01% Vue 21.53% Shell 0.05% JavaScript 18.68% CSS 2.36% Blade 8.29% SCSS 0.08% Less 0.70%
thinksns web component php laravel composer user sns think app

plus's Introduction

Plus (ThinkSNS+) Logo

Plus (ThinkSNS+)

Codacy Badge Codacy Badge StyleCI Build Status QQ Group

Plus (ThinkSNS+) 是使用 Laravel 框架开发;一个功能强大、易于开发和动态拓展的社交系统。Plus 是遵循 PSR 规范 代码统一,并功能块松耦合。你安装完成 Plus 并不意味着已经成功安装了所有功能,因为 Plus 使用 模块化 的 原则,所以你安装完成后拥有了所有可以被请求的 REST 接口和后台管理面板,你可能还需要安装如下模块:

  • 一个对搜索引擎支持良好的大屏 Web 界面 👉 ThinkSNS Plus PC
  • 极大程度还原原生 APP 体验的 SPA (Single Page Application) 应用 👉 ThinkSNS Plus SPA
  • 一个更加强大的大屏 Web 界面应用 (但它是收费的) 👉 Plus PC

如果你关注 ThinkSNS 所属公司更多开源产品,请看ThinkSNS 官网

特点

Plus 是基于 Laravel 所开发,它拥有下面的几个主要特点:

  1. 跟随 Laravel 一同升级,但是我们放弃 LTS 版本,长期的框架不变,虽然会趋于稳定,但是 Plus 是一款长期规划维护的开源项目,随时升级框架以便我们可以尽情的使用新的技术和特性
  2. 前后端分离,Plus 安装完成只拥有功能快的 REST 接口部分,可以利用接口开发任何形态的客户端
  3. 后台管理面板采用 Vue.js 开发
  4. 使用 PHP 7 严格模式,以数据类型来限制开发人员的不规范开发
  5. 完全符合 PSR 规范,代码风格选择的是比 PSR-2 更加严格的规范
  6. 完善的文档,是的!在开源社区中, 一个开源项目的文档很重要。

文档

你可以在我们的文档网站上看到所有文档 👉 https://slimkit.github.io

它被分为以下几个部分:

当然,有一些并不在网站上,而是在 Plus 代码仓库中:

安装

安装 Plus 是一件非常简单的事情,但是你要先做到以下几点必须:

  • PHP 版本必须大于 7.1.3
  • 你已下载并安装过 Composer
  • 你拥有一个 MySQL 或者 PostgreSQL 等数据库

下载程序:

composer create-project slimkit/plus

基本配置:

下载完成后进入程序的 storage/configure/ 目录,你会看到一个 plus.yml.example 文件,复制一份命名为 plus.yml 然后打开这份 Yaml 配置文件,进行你数据库等信息的配置。

生成数据表以及默认填充数据:

php artisan migrate --seed

软链公开磁盘并发布静态资产:

php artisan storage:link
php artisan vendor:publish --all

运行 Plus 程序:

php artisan serve

现在你可以访问 http://127.0.0.1:8000 查看你安装的 Plus 程序了,但是上述只是一份简单的安装,更加详细或者可以运行在 正式环境的安装指南请参阅 👉 安装指南

交流 & 支持

你可以申请加入官方 QQ 群进行交流,群号 143325287

贡献

这个仓库的贡献者并不代表只是 Plus 的贡献者,我们也会把 Laravel 的贡献者加入感谢名单,因为他们为 Laravel 所做出的贡献,也使得 Plus 项目更加强大。

感谢所有为 Plus 贡献的人!

我们按照开源项目社区的建议,为 Plus 提供了我们期望参与者遵守的行为准则,请 阅读准则 全文,以便了解哪些行为是我们不会容忍的。

阅读我们的 贡献指南,了解我们的开发过程, 如题提出错误修正或者建议,我们在贡献指南中包含了所有的贡献者名单。

赞助

首先,我们有一个特约赞助商 👉 成都 · 智艺创想,该赞助商为 Plus 团队提供了一个开发的基础,提供工作场所以及提供商务处理事宜,并且开发了如下商业项目:

  • ThinkSNS Plus Android 客户端
  • ThinkSNS Plus iOS 客户端
  • 一个强大且全面的大屏 Web 界面应用
  • 问答模块
  • 圈子社群模块

如果你对这些商业模块感兴趣,可以联系 QQ 3515923610 了解更多细节。

赞助商

感谢所有赞助商!(如果你也支持这个项目,√成为赞助商)

优秀项目推荐

  • PHP CORS 专为 PHP 开发的“跨域资源共享”中间件,快速解决 PHP 设置跨域问题
  • Notadd 基于 Nest.js 的微服务开发架构,异步高性能应用、AOP(面向切面编程)

License

Plus 代码采用企业定制许可证发布,请参阅完整的许可证文本

Copyright © 2018 Chengdu ZhiYiChuangXiang Technology Co., Ltd. All rights reserved.

plus's People

Contributors

barryvdh avatar bencorlett avatar boxshadow avatar cloverpander avatar crynobone avatar cviebrock avatar daylerees avatar dependabot[bot] avatar driesvints avatar ericlbarnes avatar franzliedke avatar grahamcampbell avatar hhhcode avatar huhaophp avatar jasonlewis avatar jeffreyway avatar jesseobrien avatar josephsilber avatar laurencei avatar lipyoung avatar medz avatar mutoe avatar neoascetic avatar sparksp avatar taylorotwell avatar themsaid avatar this-baishi avatar tillkruss avatar tobsn avatar zsyd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plus's Issues

获取动态列表缺少数据

  • TS+ Version: v#.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

获取动态列表 ,返回数据格式缺少评论列表,缺少置顶数据

Steps To Reproduce:

Fixed step:

  • fixed.

composer安装依赖错误

Description:

composer安装依赖的时候
[ErrorException]
ZipArchive::extractTo(D:\phpStudy\wwwroot\thinksns-plus/vendor/composer/6d15e
4ee/zhiyicx-plus-component-feed-acef364\documents/Feed娑堟伅瀵圭収琛?md): failed to open stream: Invalid argument

用户关注数量错乱。

  • TS+ Version: later

Description:

刷新后列表上其他人状态也显示未关注,且点击到其他人的主页,也显示未关注,但是在我的关注列表里却有此人

Steps To Reproduce:

首页-动态详情-点赞榜-取消关注其中一个人-刷新

  • 修复关注数量错乱的bug

【增加删除信息处理协议】

设计删除信息时,需要考虑:

删除有一个问题 是这样的

10个人点赞 删除了5个 那么 外面看还是10个赞

进去列表看 需要显示10个人 被删除的人显示占位信息。只有进入主页后再提示被删除

消息-置顶审核

  • TS+ Version: v#.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

消息-置顶审核 暂无数据(和消息中的点赞、评论一样的消息)

Steps To Reproduce:

Fixed step:

  • fixed.

[Test Bug 提交]

  • TS+ Version: v#.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

Steps To Reproduce:

Fixed step:

  • fixed.

功能优化:创建新用户时,可以直接给该用户选择用户组

创建新用户时,可以直接给该用户选择用户组,勾选完毕后,可回到“”“用户管理”信息列表,也可跳转到用户详情页进行编辑,编辑完成后,回到”“用户管理”信息列表。
原因:从运营层面讲,很多用户添加用户时,除了基本的用户名,手机号,密码外,划归用户组属于第一步操作范畴

APIs V1登录错误

  • TS+ Version: v#.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

(1/1) ErrorException
Undefined variable: loginrecord
in AuthController.php (line 81)
at HandleExceptions->handleError(8, 'Undefined variable: loginrecord', 'D:\plus\htdocs\thinksns-plus\app\Http\Controllers\APIs\V1\AuthController.php', 81, array('request' => object(Request), 'phone' => *.0, 'password' => '123456', 'user' => object(User), 'deviceCode' => 'Win7', 'token' => object(AuthToken)))
in AuthController.php (line 81)

Steps To Reproduce:

plus.dev/web/login
登录注册

Fixed step:

DB::transaction(function () use ($token, $user)

  • fixed.

iOS端的动态点击发送失败闪退

  • TS+ Version: v#.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

点击重新发送导致闪退

Steps To Reproduce:

发送动态-发送失败-重新发送-闪退

发布动态

  • TS+ Version: v#.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

发布动态2.0 无法上传大图

Steps To Reproduce:

Fixed step:

  • fixed.

首页无法显示

  • TS+ Version: thinkssnsplus+
  • PHP Version: php 7.1.7
  • Database Driver & Version: mysql 5.7

Description:

按照 https://github.com/slimkit/thinksns-plus/blob/master/docs/get-started/installed.md 的安装流程安装完成后,进入到public目录,发现首页无法显示

首页无法显示

Steps To Reproduce:

85bdedda-8b7e-43f2-be22-77d9a921d505

Fixed step:

  • fixed.

获取动态点赞列表数据不对

  • TS+ Version: v#.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

获取动态点赞列表 返回数据格式不正确(目前只有用户id);

Steps To Reproduce:

Fixed step:

  • fixed.

后台登录问题 登录失败?

后台账号密码 都为root吧?
现在输入root 提示登录失败

还有就是 需要执行迁移数据表 和填充数据吗? 这个出错了呢

后台问题

  • TS+ Version: v#.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

安装教程种的输入 {APP_URL}/admin 进入后台
然而public下压根就没admin这货啊

个人主页

  • TS+ Version: v#.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

个人主页 暂无接口

Steps To Reproduce:

Fixed step:

  • fixed.

php artisan migrate报错

  • TS+ Version: v#.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

[Illuminate\Database\QueryException]
SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_s
chema.tables where table_schema = forge and table_name = migrations)

[PDOException]
SQLSTATE[HY000] [2002] Connection refused

Steps To Reproduce:

Fixed step:

  • fixed.

功能开发问题

禁用用户,禁言用户 等对于用户的操作分类,是放在核心里面还是放在哪个里面!
default

进入资讯,出现上一次删除的订阅板块

  • TS+ Version: v#.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

进入资讯,出现上一次删除的订阅板块

Steps To Reproduce:

资讯-订阅-删除所有订阅-保存-返回到首页-再次进入资讯-删除的部分订阅又再次出现

访问后台网页奔溃

  • TS+ Version: github clone的最新版
  • PHP Version: 7.0
  • Database Driver & Version: mysql 5.6

Description:

php artisan serv 启动后,访问首页是正常的,访问后台就网页一直在转圈,过一段时间后就奔溃了

8285782a-1856-4d5b-98fa-81793fbc750e

动态点赞

  • TS+ Version: v#.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

动态点赞 ,已经点赞的返回的是未点赞,点赞数一直增加

Steps To Reproduce:

Fixed step:

  • fixed.

点赞消息推送

  • TS+ Version: v#.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

点赞消息推送 只返回了action

Steps To Reproduce:

Fixed step:

  • fixed.

拓展应用开发疑问?

你好,首先感谢你们的开源项目,我现在研究了下,针对开发你们的拓展应用这块不是很明白,文档写的很简单,能否进行下步骤说明呢?

功能建议:使用JWT和element-dashboard

  • TS+ Version: v#.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

  1. 前后端分离使用jwt的token验证,可以更好的与其他的服务集成,或者考虑将其作为可选配置
  2. 既然使用vue,可以考虑使用饿了么的组件,外观和文档都不错

另外: 请问下开源的版本和官网上预售的各种版本是什么关系?
是否预售版仅是额外的商业定制,而开源出的也没有开源协议外的其他限制?

执行php artisan migrate 还是报错

  • TS+ Version: v#.#.#
  • PHP Version:
  • Database Driver & Version:

@medz
数据库里已经新建了个 plus 的数据库 执行php artisan migrate 还是报错
麻烦再帮我看一下,我的 .env配置如果
APP_NAME=ThinkSNS+
APP_ENV=local
APP_KEY=base64:tJHsTmPBAaCP0MBuoCbJAHYMnT3giqkxW2xS3TBe8NE=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=plus
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

PUSHER_APP_ID=null
PUSHER_APP_KEY=null
PUSHER_APP_SECRET=null

数据库里已经新建了个 plus 的数据库 执行php artisan migrate 还是报错
[Illuminate\Database\QueryException]
SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from inform
ation_schema.tables where table_schema = plus and table_name = migrations)

[PDOException]
SQLSTATE[HY000] [2002] No such file or directory

上传封面

  • TS+ Version: v#.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

上传封面
接口错误:Call to undefined method Illuminate\Database\Query\Builder::files()"

Steps To Reproduce:

Fixed step:

  • fixed.

composer require zhiyicx/plus-component-web问题

composer require zhiyicx/plus-component-web输出下面的东西,而且require zhiyicx/plus-component-im也不行
Using version ^2.0 for zhiyicx/plus-component-web
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for zhiyicx/plus-component-web ^2.0 -> satisfiable by zhiyicx/plus-component-web[2.0.0].
- zhiyicx/plus-component-web 2.0.0 requires zhiyicx/plus-component-im ^2.0 -> no matching package found.

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Installation failed, reverting ./composer.json to its original content.

php artisan migrate报错

[Illuminate\Database\QueryException]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key le
ngth is 767 bytes (SQL: alter table verify_codes add index verify_codes_account_index(acc ount))

[PDOException]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key le
ngth is 767 bytes

修改AppServiceProvider.php添加
Schema::defaultStringLength(191);
无效,改my.cnf也无效

mariadb版本10.1.24

V2 版本接口无法处理 多设备登陆情况

当用户多设备登陆导致需要重新登录时,返回的信息内容"多设备登陆"和普通的错误返回信息内容格式一致.致使移动端无法根据该特殊情况作出不同于普通错误信息的处理.

发布文字收费动态 配置字数

  • TS+ Version: v#.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

发布文字收费动态 ,将来需要配置超出多少字后收费

Steps To Reproduce:

Fixed step:

  • fixed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.