deniskorbakov/laravel-data-scribe
最新稳定版本:v0.0.5
Composer 安装命令:
composer require deniskorbakov/laravel-data-scribe
包简介
A Scribe Plugin to generate API doc from spatie/laravel-data
README 文档
README
This package is intended for scribe business with laravel-data
By default, scribe cannot generate documentation from laravel-data, so I propose solutions in the form of this package with plugins
| Scribe Support | Description | Plugin Name | Status |
|---|---|---|---|
Body Parameters |
Generate Body Params from laravel-data | LaravelDataBodyParam | ✅ |
Attr Body Parameters |
Generate Body Params Attribute | LaravelDataBodyParam | ✅ |
Responses |
Generate Response from laravel-data | 🚫 | ❌ |
Custom Validation |
Support Custom Rules in laravel-data | 🚫 | ❌ |
Attribute Body Parameters - attribute has higher priority than body param from properties
📝 Getting Started
Install the package via composer:
composer require deniskorbakov/laravel-data-scribe
Add the plugin in your config/scribe.php file to the very end of the array:
'strategies' => [ 'bodyParameters' => [ ...Defaults::BODY_PARAMETERS_STRATEGIES, DenisKorbakov\LaravelDataScribe\LaravelDataBodyParam::class, ], ],
Run the command to generate documentation:
php artisan scribe:generate
⚒️ Local Development
Clone this repository:
git clone https://github.com/deniskorbakov/laravel-data-scribe
Let's go to the cloned repository:
cd laravel-data-scribe
To start, initialize the project and use it:
make init
🧪 Testing
You can run the command for testing after the step with local installation
Run Lint and Analyze code(phpstan/rector/phpcs):
make lint
Run Unit tests:
make test
Run mutation tests:
make test-mutation
Run test coverage:
make test-coverage
🤝 Feedback
We appreciate your support and look forward to making our product even better with your help!
📝 Generated from deniskorbakov/skeleton-php-docker
统计信息
- 总下载量: 1.59k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-04