sinemacula/laravel-api-toolkit
最新稳定版本:v1.15.9
Composer 安装命令:
composer require sinemacula/laravel-api-toolkit
包简介
A comprehensive Laravel toolkit for streamlined development of RESTful APIs
README 文档
README
The Laravel API Toolkit is a comprehensive package designed to simplify the development of RESTful APIs in Laravel. It provides tools to enhance API functionality, improve error handling, and ensure consistent data output, making API development faster and more reliable.
Features
- Exception Handling: Implements a custom exception handler that captures and formats all exceptions for consistent API error responses.
- Queryable Models: Allows fine-tuned control over which fields are exposed via your API endpoints, enhancing security and customization.
- Data Repositories: Abstracts database interactions into repositories to promote a cleaner and more maintainable codebase.
- Data Resources: Ensures consistent presentation of data across different API endpoints, simplifying client-side data integration.
Installation
To install the Laravel API Toolkit, run the following command in your project directory:
composer require sinemacula/laravel-api-toolkit
Configuration
After installation, publish the package configuration to customize it according to your needs:
php artisan vendor:publish --provider="SineMacula\ApiServiceProvider"
This command publishes the package configuration file to your application's config directory, allowing you to modify aspects such as exception handling behaviors, data repository settings, and more.
Usage
Detailed usage instructions will be provided soon. This section will cover how to integrate the toolkit into your Laravel application, including setting up queryable models, using data repositories, and applying data transformers.
Contributing
Contributions are welcome and will be fully credited. We accept contributions via pull requests on GitHub.
Security
If you discover any security related issues, please email instead of using the issue tracker.
License
The Laravel API Toolkit repository is open-sourced software licensed under the Apache License, Version 2.0.
统计信息
- 总下载量: 12.75k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2024-04-23