{"id":16780895,"url":"https://github.com/purocean/laravel-template","last_synced_at":"2025-03-17T02:31:42.223Z","repository":{"id":57053658,"uuid":"84269397","full_name":"purocean/laravel-template","owner":"purocean","description":"RESTful 模板，企业号/企业微信微信扫码登录/同步通讯录——Laravel vue2 iView","archived":false,"fork":false,"pushed_at":"2019-12-25T01:47:41.000Z","size":1291,"stargazers_count":125,"open_issues_count":0,"forks_count":36,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-02-27T16:55:38.202Z","etag":null,"topics":["iview","laravel","vue2-iview","wechat"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purocean.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-08T02:31:34.000Z","updated_at":"2025-02-05T01:11:09.000Z","dependencies_parsed_at":"2022-08-24T04:11:49.383Z","dependency_job_id":null,"html_url":"https://github.com/purocean/laravel-template","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purocean%2Flaravel-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purocean%2Flaravel-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purocean%2Flaravel-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purocean%2Flaravel-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purocean","download_url":"https://codeload.github.com/purocean/laravel-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243841125,"owners_count":20356440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["iview","laravel","vue2-iview","wechat"],"created_at":"2024-10-13T07:36:14.176Z","updated_at":"2025-03-17T02:31:40.980Z","avatar_url":"https://github.com/purocean.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Laravel 5.4 RESTful 应用模板，包含企业微信同步联系人，扫码登录，使用 Vue2 iView 做前端\n===============================\n[![composer.lock](https://poser.pugx.org/purocean/laravel-template/composerlock)](https://packagist.org/packages/purocean/laravel-template)\n[![Latest Stable Version](https://poser.pugx.org/purocean/laravel-template/v/stable)](https://packagist.org/packages/purocean/laravel-template)\n[![Total Downloads](https://poser.pugx.org/purocean/laravel-template/downloads)](https://packagist.org/packages/purocean/laravel-template)\n[![License](https://poser.pugx.org/purocean/laravel-template/license)](https://packagist.org/packages/purocean/laravel-template)\n\n\u003e 此项目不再维护，仅作学习参考用，勿用作生产。\n\n特性\n-------------------\n+ [x] 微信企业微信同步联系人\n+ [x] 扫码登录\n+ [x] Vue2 iView 前端界面\n+ [x] 文件上传处理\n+ [x] 微信 jssdk\n+ [x] RESTful\n\n建议环境\n-------------------\n+ [x] PHP 7.0+\n+ [x] Composer\n+ [x] Redis\n+ [x] Mysql 5.7\n+ [x] MongoDB 3.2+\n\n安装\n-------------------\n```bash\ncomposer install\ncp .env.example .env\nvim ./.env # 配置数据库，企业微信，缓存等信息\nphp ./artisan key:generate\nphp ./artisan jwt:secret\nphp ./artisan migrate # 迁移表结构\nphp ./artisan rbac:resetpwd suadmin \u003cpassword\u003e # 更改超级管理员密码\nphp ./artisan serve --host=192.168.1.108 # 运行开发服务器，IP 为本机局域网 IP，以便手机访问（扫码）\nphp ./artisan queue:work # 开启任务队列进程\ncomposer run-script make-api-doc # 生成接口文档\n\ncd frontend\nnpm install # 安装 nodejs 依赖\ncp ./config/index.js.example ./config/index.js\nvim ./config/index.js # 修改本机后台服务器 IP 端口\nnpm run dev # 运行开发服务器\nnpm run build # 前端打包\nnpm run dist # 把打包的文件复制到 public 目录\n# npm run dist-win # 把打包的文件复制到 public 目录，windows 平台使用\n```\n\n测试\n-------------------\n```bash\n# 创建测试用 MySQL 数据库 laravel_template_test\ncp ./phpunit.xml.example ./phpunit.xml # 编辑配置测试相关值\nphp ./artisan config:clear # 清除配置缓存\ncomposer exec phpunit # 开始测试\n```\n\n注意事项\n-------------------\n+ 若微信调试不通过，可在 /storage/app/qywx/qywx.log 查看日志，删除缓存文件\n+ 请使用PHP7 以及开启 OPcache 提高性能\n+ storage 及其目录需要有写入权限\n+ 任务队列默认是 sync 方式，可在 .env 文件中修改为 redis 方式\n+ 如非必要，队列不要用 root 权限执行\n+ 线上修改了配置文件请需重新运行 *php ./arartisan* 更新配置缓存\n+ 多项目使用同一个 redis 做任务队列支撑，需要配置好默认的任务队列\n\n链接\n-------------------\n+ [Laravel - The PHP Framework For Web Artisans](https://laravel.com/)\n+ [Laravel 5.4 中文文档](http://d.laravel-china.org/docs/5.4)\n+ [vue.js](https://cn.vuejs.org/)\n+ [iView - 一套高质量的UI组件库](https://www.iviewui.com/)\n+ [dingoapi](https://github.com/dingo/api)\n+ [jwt-auth](https://github.com/tymondesigns/jwt-auth)\n+ [ENTRUST](https://github.com/Zizaco/entrust)\n\n截图\n-------------------\n![login_1](./screenshots/login_1.png \"登录\")\n![login_2](./screenshots/login_2.png \"登录\")\n![user](./screenshots/user.png \"用户管理\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurocean%2Flaravel-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurocean%2Flaravel-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurocean%2Flaravel-template/lists"}