Laravel启动器

ims-laravel-api-starter — Laravel 启动器模板

作者 Innovix-Matrix-Systems

基于 Laravel 的后端 API 启动器,内置 Sanctum 认证、RBAC、OTP 登录、API 文档与可观测性工具,并附带 Docker 与 Pest 测试配置。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

1 个预览视图
作者提供的预览
作者提供的预览

来自项目 README 的原始预览。

目前有 1 张原始预览,可打开完整图片查看设计细节。

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-02查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

基于 Laravel Sanctum 的 API 认证,支持多设备令牌管理与登出

02

可配置的手机 OTP 登录流程,带速率限制

03

角色与权限组成的 RBAC 访问控制

04

同时提供 Scalar、Swagger UI 与 OpenAPI 规范,兼容 Postman

05

整合 Telescope、Pulse、Health 的统一可观测性仪表盘(需认证)

06

队列驱动的用户数据导入导出,支持 Excel/CSV 与任务进度跟踪

模板详细介绍

ims-laravel-api-starter 是一个基于 Laravel 的后端 API 启动器,面向需要快速搭建带认证与权限体系的后端服务。项目采用仓库模式、DTO 与服务层组织代码,并提供代码生成命令(如 make:crud、make:dto、make:service、make:repo)来生成骨架文件。

功能层面,认证基于 Laravel Sanctum 的个人访问令牌,支持多设备登录与登出,以及可配置的手机 OTP 登录流程(含速率限制)。权限方面提供角色与权限组成的 RBAC 系统。API 文档同时提供 Scalar UI、Swagger UI 与 OpenAPI 规范,并兼容 Postman。可观测性整合 Telescope、Pulse 与 Health,提供统一仪表盘,且这些工具需要认证后访问。

数据与任务方面,包含用户管理、数据导入导出、媒体库与备份,批量用户导入导出通过队列处理并支持 Excel/CSV,配套任务进度跟踪与定时清理已完成任务和临时文件。国际化目前提供英语和孟加拉语,可按需扩展。项目附带 Docker 容器化开发环境、Git hooks 与 IDE 辅助工具,测试使用 Pest PHP 与 Mockery。

使用限制:运行环境要求 PHP 8.2+、MySQL 8.0+、Node.js 16+ 与 Composer;默认种子账号为 [email protected] / 123456,仅适合开发环境,部署前必须更换。代码采用 MIT 许可,但演示图片、字体、图标等第三方素材需单独核对许可,域名、托管、数据库等外部服务可能另行收费。

Laravel启动器

适合你的项目吗?

适用场景

  • 需要快速搭建带认证与权限体系的后端 API 服务
  • 为移动端或多设备客户端提供令牌认证与 OTP 登录接口
  • 需要统一查看 API 文档与运行时可观测性数据的项目
  • 通过队列处理批量用户数据导入导出并跟踪任务进度

适合人群

  • 使用 Laravel 并需要现成认证、RBAC 与 API 文档骨架的后端项目
  • 希望以仓库模式、DTO、服务层组织代码的团队
  • 需要 Docker 开发环境与 Pest 测试基础设施的开发者
  • 需要多语言(英语、孟加拉语)并可按需扩展的 API 项目

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    环境要求 PHP 8.2+、MySQL 8.0+、Node.js 16+ 与 Composer。

  2. 2

    依次执行 composer install、npm install、npx husky install,复制 .env.example 为 .env 后运行 php artisan migrate --seed。

  3. 3

    默认种子账号 [email protected] / 123456 仅用于开发,部署前必须更换。

  4. 4

    可观测性工具(Telescope、Pulse、Health)需要认证后才能访问。

  5. 5

    代码为 MIT 许可,但演示图片、字体、图标等第三方素材需单独核对许可。

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 默认种子账号 [email protected] / 123456 仅用于开发环境,部署到生产前必须更换。
  • 可观测性工具(Telescope、Pulse、Health)的仪表盘与健康检查页面需要登录认证后才能访问。
  • 运行环境要求 PHP 8.2+、MySQL 8.0+、Node.js 16+ 以及 Composer,不满足则无法安装运行。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 87 / 100
技术栈
Laravel
网站类型
启动器
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-01-17
截图检查日期
2026-10-02

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Laravel。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: bf6f95329de424d8174870a475bab1333aec0b136006462d0b31cdb09c3191c9

2026-10-02T22:40:41.392Z

来源文件 / 仓库
# IMS Laravel API Starter

A production-ready Laravel API starter kit with enterprise-grade features. Built-in authentication, RBAC, comprehensive API documentation, advanced observability tools, and production-ready testing infrastructure. Designed for rapid development with clean architecture patterns.

<p align="center">
  <img src="image1.png" alt="Observability Dashboard" width="100%" />
  <br>
  <em>Observability Dashboard</em>
</p>

<p align="center">
  <img src="image2.png" alt="Scalar API Dashboard" width="100%" />
  <br>
  <em>Scalar API Documentation</em>
</p>

## Features

- 🔐 **Laravel Sanctum** - Secure API authentication with personal access tokens
- 📱 **Multi-Device Login** - Device-specific token management with logout capabilities
- 🔢 **OTP Authentication** - Configurable phone-based OTP login flow with rate limiting
- 🔑 **RBAC System** - Role-based access control with permissions and roles
- 📚 **API Documentation** - Scalar, Swagger UI, OpenAPI with Postman compatibility
- 📊 **Observability** - Telescope, Pulse, Health with unified dashboard
- 🛠️ **Clean Architecture** - Repository pattern, DTOs, service layer
- 💾 **Data Management** - User management, data export/import, media library, backups
- 📤 **Background Import/Export** - Queue-based bulk user data processing with Excel/CSV support
- 📊 **Job Tracking** - Real-time monitoring of background jobs with progress tracking
- 🧹 **Automated Cleanup** - Scheduled cleanup of completed jobs and temporary files
- 🌍 **Internationalization** - Multi-language support (English, Bengali), ability to add more as needed
- 🐳 **Docker Support** - Complete containerized development environment
- ⚡ **Development Tools** - Code generators, IDE helpers, Git hooks
- 🧪 **Production-Ready Testing** - Pest PHP with Mockery, comprehensive feature/unit tests, queue testing, DTO validation

## Quick Start

### Prerequisites
- PHP 8.2+
- MySQL 8.0+
- Node.js 16+
- Composer

### Development Setup

1. **Clone and setup**
   ```bash
   git clone [email protected]:Innovix-Matrix-Systems/ims-laravel-api-starter.git
   cd ims-laravel-api-starter
   cp .env.example .env
   ```

2. **Install dependencies**
   ```bash
   composer install
   npm install
   npx husky install
   ```

3. **Database setup**
   ```bash
   php artisan migrate --seed
   ```

4. **Start development**
   ```bash
   php artisan serve
   ```

### Default Credentials
- **Super Admin**: [email protected] / 123456

**Development Environment Compatibility:** Works seamlessly with modern development tools including [Laravel Herd](https://herd.laravel.com/) (blazing fast native Laravel environment), [FlyEnv](https://www.flyenv.com/) (all-in-one full-stack environment), and [Laragon](https://laragon.org/) (lightweight Windows development environment)

## 📖 Documentation

Our comprehensive documentation covers everything from setup to advanced features. Learn about background job processing, OTP authentication configuration, API endpoints, monitoring tools, and deployment strategies. Whether you're setting up for the first time or scaling for production, our detailed guides provide step-by-step instructions and best practices.

🌐 **[GitHub Wiki](https://github.com/Innovix-Matrix-Systems/ims-laravel-api-starter/wiki)**

*The [`docs/`](docs/) folder contains a local mirror of the wiki for offline access.*

### API Documentation

- **Scalar UI**: http://localhost:8000/docs
- **Swagger UI**: http://localhost:8000/docs/swagger
- **OpenAPI Spec**: http://localhost:8000/docs/openapi.yaml

### Observability

- **Dashboard**: http://localhost:8000/observability
- **Health Check**: http://localhost:8000/health

> **Note**: Observability tools require authentication

## Commands

```bash
# Code generation
php artisan make:crud Product // All necessary skeleton files
php artisan make:dto ProductDTO
php artisan make:service Product/ProductService
php artisan make:repo Product/ProductRepository
// and many more, check wiki!

# Code quality
php artisan pint
php artisan optimize:clear
php artisan ide-helper:generate
php artisan ide-helper:models -N
// and many more, check wiki!
```

## License

This project is licensed under the `MIT License` - see the [LICENSE.md](LICENSE.md) file for details.
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。