承接 sowl/laravel-doctrine-jsonapi-skeleton 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sowl/laravel-doctrine-jsonapi-skeleton

Composer 安装命令:

composer create-project sowl/laravel-doctrine-jsonapi-skeleton

包简介

The skeleton application for the Laravel Doctrine JSON:API.

README 文档

README

This skeleton provides a template for building API-only Laravel applications using Doctrine ORM and the laravel-doctrine-jsonapi package for fully compliant JSON:API implementations.

Key Features:

  • Doctrine ORM: Replaces Eloquent as the database layer, leveraging Doctrine's advanced data-mapping capabilities via laravel-doctrine/orm.
  • Doctrine Migrations: Database migrations using laravel-doctrine/migrations.
  • Doctrine Extensions: Extra features (sluggable, timestamps, soft deletes, etc.) via laravel-doctrine/extensions.
  • JSON:API: All APIs conform to the JSON:API specification for standardized, robust, and scalable APIs.
  • API-Only: No web routes or traditional Blade views are exposed—this skeleton is focused exclusively on backend API development.
  • Automatic API Documentation: Generates OpenAPI specs, Postman collections, and human-friendly docs using Scribe.

About This Skeleton

This project is intended as a starting point for developers who want to:

  • Use Laravel as the application framework
  • Use Doctrine ORM for data persistence (with full support for migrations and extensions)
  • Expose only JSON:API-compliant endpoints (no web UI)

You get a clean Laravel installation, ready for Doctrine and JSON:API integration.

Quick Start

You can start a new project using this skeleton by running:

composer create-project sowl/laravel-doctrine-jsonapi-skeleton jsonapi

Main Packages

TODO List

This is a high-level roadmap for fully implementing the skeleton:

  • Remove default Laravel web routes and Blade views
  • Install and configure Doctrine ORM (laravel-doctrine/orm)
    • Publish and customize Doctrine config
    • Configure environment variables for Doctrine
  • Install and configure Doctrine Migrations (laravel-doctrine/migrations)
    • Set up migration paths
  • Install and configure Doctrine Extensions (laravel-doctrine/extensions)
    • Install Gedmo extensions requirement
    • Enable useful extensions (timestamps, sluggable, soft deletes, etc.)
  • Set up basic User entity
    • Set up entity folder structure
    • Setup authentication and all the relevant user traits
    • Add migration of the User entity and rest default entities.
    • Tests for authentication logic
  • Install and configure laravel-doctrine-jsonapi (sowl/laravel-doctrine-jsonapi)
    • Publish and customize jsonapi.php config
    • Register resources in config/jsonapi.php
  • Create sample Doctrine entity implementing ResourceInterface
  • Create a transformer extending AbstractTransformer
  • Set up API routes (remove web.php, use api.php only)
  • Add example resource controller (using default or custom controller)
  • Add policy-based authorization for resources
  • Add validation for JSON:API requests
  • Implement authentication (e.g., Laravel Passport, Sanctum, or JWT)
  • Integrate Scribe for automatic generation of OpenAPI specs and API docs
    • Configure Scribe for API-only docs
    • Ensure docs include OpenAPI spec, Postman collection, and sample responses
    • Add custom docs for example resource
  • Configure proper exception handling with showing JSON:API errors.
  • Use GUID for the primary key of the entities.
  • Implement extensive testing of this skeleton
    • Make sure all features work as expected
    • Add tests for queue-failed jobs
    • Add tests for cache
    • Add tests for authentication
    • Add tests for authorization
    • Add tests for validation
    • Add tests for API endpoints
    • Add tests for API docs
  • Implement RBAC (Role-Based Access Control) authorization logic
    • Define roles and permissions (e.g., Admin, User, Guest)
    • Assign roles to users and restrict resource actions accordingly
    • Add policies and middleware for RBAC enforcement
    • Document RBAC usage and configuration
  • Add detailed onboarding and contribution guide for new developers
    • Document setup, coding standards, and contribution workflow
    • Provide example PR and review process
    • Add FAQ and troubleshooting section
  • Build and document default .windsurfrules for this repository
    • Describe commit, branch, and review policies
    • Add rules for sensitive files, migrations, and API docs
    • Ensure .windsurfrules is kept up to date with project conventions
  • Add API rate limiting and throttling
    • Configure Laravel's built-in rate limiting for API endpoints
    • Add custom logic for user/role-based limits if needed
  • Set up CI/CD for automated testing and code quality checks
    • Set up GitHub Actions for CI/CD
    • Set up GitHub Actions for code quality checks
  • Move the scribe.blade.php to the base library.

References

License

This project is open-source and available under the MIT license.

sowl/laravel-doctrine-jsonapi-skeleton 适用场景与选型建议

sowl/laravel-doctrine-jsonapi-skeleton 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 05 月 02 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「framework」 「orm」 「migrations」 「extensions」 「doctrine」 「acl」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 sowl/laravel-doctrine-jsonapi-skeleton 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 sowl/laravel-doctrine-jsonapi-skeleton 我们能提供哪些服务?
定制开发 / 二次开发

基于 sowl/laravel-doctrine-jsonapi-skeleton 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 24
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-02