PHPackages                             purocean/laravel-template - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. purocean/laravel-template

ActiveProject[Framework](/categories/framework)

purocean/laravel-template
=========================

The Laravel Project Template.

v0.5.1(8y ago)124936MITPHPPHP &gt;=7.0.0

Since Mar 16Pushed 6y ago8 watchersCompare

[ Source](https://github.com/purocean/laravel-template)[ Packagist](https://packagist.org/packages/purocean/laravel-template)[ Docs](https://github.com/purocean/laravel-template)[ RSS](/packages/purocean-laravel-template/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (12)Versions (34)Used By (0)

Laravel 5.4 RESTful 应用模板，包含企业微信同步联系人，扫码登录，使用 Vue2 iView 做前端
===========================================================

[](#laravel-54-restful-应用模板包含企业微信同步联系人扫码登录使用-vue2-iview-做前端)

[![composer.lock](https://camo.githubusercontent.com/5e6466cc0439d70093350438548c9d3c68da144208fb890a08ecfcce41a34831/68747470733a2f2f706f7365722e707567782e6f72672f7075726f6365616e2f6c61726176656c2d74656d706c6174652f636f6d706f7365726c6f636b)](https://packagist.org/packages/purocean/laravel-template)[![Latest Stable Version](https://camo.githubusercontent.com/40dea784d4f28ff4f73adcd7ac8c18c6dec429d638b2f5602c8b0edbef4b8dbb/68747470733a2f2f706f7365722e707567782e6f72672f7075726f6365616e2f6c61726176656c2d74656d706c6174652f762f737461626c65)](https://packagist.org/packages/purocean/laravel-template)[![Total Downloads](https://camo.githubusercontent.com/440036b863053dfdee2d86b547e615b2af329ab0d0befb822c662d7129ee29e7/68747470733a2f2f706f7365722e707567782e6f72672f7075726f6365616e2f6c61726176656c2d74656d706c6174652f646f776e6c6f616473)](https://packagist.org/packages/purocean/laravel-template)[![License](https://camo.githubusercontent.com/2ed018a9277bc1bbc5e67a9a1b73d6221446858e1d085685db0b556af2426ed9/68747470733a2f2f706f7365722e707567782e6f72672f7075726f6365616e2f6c61726176656c2d74656d706c6174652f6c6963656e7365)](https://packagist.org/packages/purocean/laravel-template)

> 此项目不再维护，仅作学习参考用，勿用作生产。

特性
--

[](#特性)

- 微信企业微信同步联系人
- 扫码登录
- Vue2 iView 前端界面
- 文件上传处理
- 微信 jssdk
- RESTful

建议环境
----

[](#建议环境)

- PHP 7.0+
- Composer
- Redis
- Mysql 5.7
- MongoDB 3.2+

安装
--

[](#安装)

```
composer install
cp .env.example .env
vim ./.env # 配置数据库，企业微信，缓存等信息
php ./artisan key:generate
php ./artisan jwt:secret
php ./artisan migrate # 迁移表结构
php ./artisan rbac:resetpwd suadmin  # 更改超级管理员密码
php ./artisan serve --host=192.168.1.108 # 运行开发服务器，IP 为本机局域网 IP，以便手机访问（扫码）
php ./artisan queue:work # 开启任务队列进程
composer run-script make-api-doc # 生成接口文档

cd frontend
npm install # 安装 nodejs 依赖
cp ./config/index.js.example ./config/index.js
vim ./config/index.js # 修改本机后台服务器 IP 端口
npm run dev # 运行开发服务器
npm run build # 前端打包
npm run dist # 把打包的文件复制到 public 目录
# npm run dist-win # 把打包的文件复制到 public 目录，windows 平台使用
```

测试
--

[](#测试)

```
# 创建测试用 MySQL 数据库 laravel_template_test
cp ./phpunit.xml.example ./phpunit.xml # 编辑配置测试相关值
php ./artisan config:clear # 清除配置缓存
composer exec phpunit # 开始测试
```

注意事项
----

[](#注意事项)

- 若微信调试不通过，可在 /storage/app/qywx/qywx.log 查看日志，删除缓存文件
- 请使用PHP7 以及开启 OPcache 提高性能
- storage 及其目录需要有写入权限
- 任务队列默认是 sync 方式，可在 .env 文件中修改为 redis 方式
- 如非必要，队列不要用 root 权限执行
- 线上修改了配置文件请需重新运行 *php ./arartisan* 更新配置缓存
- 多项目使用同一个 redis 做任务队列支撑，需要配置好默认的任务队列

链接
--

[](#链接)

- [Laravel - The PHP Framework For Web Artisans](https://laravel.com/)
- [Laravel 5.4 中文文档](http://d.laravel-china.org/docs/5.4)
- [vue.js](https://cn.vuejs.org/)
- [iView - 一套高质量的UI组件库](https://www.iviewui.com/)
- [dingoapi](https://github.com/dingo/api)
- [jwt-auth](https://github.com/tymondesigns/jwt-auth)
- [ENTRUST](https://github.com/Zizaco/entrust)

截图
--

[](#截图)

[![login_1](./screenshots/login_1.png "登录")](./screenshots/login_1.png)[![login_2](./screenshots/login_2.png "登录")](./screenshots/login_2.png)[![user](./screenshots/user.png "用户管理")](./screenshots/user.png)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Recently: every ~37 days

Total

33

Last Release

3148d ago

PHP version history (2 changes)v0.0.1PHP &gt;=5.6.4

v0.5.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7115690?v=4)[洋子](/maintainers/purocean)[@purocean](https://github.com/purocean)

---

Top Contributors

[![purocean](https://avatars.githubusercontent.com/u/7115690?v=4)](https://github.com/purocean "purocean (119 commits)")

---

Tags

iviewlaravelvue2-iviewwechatframeworklaraveltemplate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/purocean-laravel-template/health.svg)

```
[![Health](https://phpackages.com/badges/purocean-laravel-template/health.svg)](https://phpackages.com/packages/purocean-laravel-template)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.2k](/packages/unopim-unopim)[laravel/laravel

The skeleton application for the Laravel framework.

84.6k62.4M1.0k](/packages/laravel-laravel)[bagisto/bagisto

Bagisto Laravel E-Commerce

27.4k169.0k9](/packages/bagisto-bagisto)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3911.7k](/packages/codewithdennis-larament)[kompo/kompo

Laravel &amp; Vue.js FullStack Components for Rapid Application Development

11914.4k42](/packages/kompo-kompo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
