承接 sakshsky/laravel-api-optimizer 相关项目开发

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

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

sakshsky/laravel-api-optimizer

Composer 安装命令:

composer require sakshsky/laravel-api-optimizer

包简介

A Laravel package to optimize API resources with sparse fieldsets, caching, and more.

README 文档

README

Latest Version on Packagist Total Downloads License

Laravel API Resource Optimizer enhances Laravel's API Resource classes with advanced optimization features like sparse fieldsets, conditional relationship loading, and response caching, making your REST APIs faster and more flexible.

Features

  • Sparse Fieldsets: Request specific fields (e.g., GET /users?fields=id,name).
  • Conditional Relationship Loading: Include related data (e.g., GET /users?include=posts).
  • Response Caching: Cache API responses to reduce database queries.
  • Schema Validation: Validate requested fields and includes.
  • Rate-Limiting: Protect endpoints with throttling.

Requirements

  • PHP 8.0 or higher
  • Laravel 8.x, 9.x, or 10.x
  • Composer

Installation

Install via Composer:

composer require sakshsky/laravel-api-optimizer

统计信息

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

GitHub 信息

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

其他信息

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