ensi/laravel-openapi-client-generator
Composer 安装命令:
composer require ensi/laravel-openapi-client-generator
包简介
laravel openapi client generator
README 文档
README
A package for Laravel that generates http clients to the service using OpenApi Generator. At the moment, there is support for one platform: PHP.
Installation
You can install the package via composer:
composer require ensi/laravel-openapi-client-generator --dev
Publish the config file with:
php artisan vendor:publish --provider="Ensi\LaravelOpenapiClientGenerator\OpenapiClientGeneratorServiceProvider"
Version Compatibility
| Laravel OpenApi Client Generator | Laravel | PHP |
|---|---|---|
| ^0.0.1 | ^7.x | ^7.1.3 |
| ^0.2.0 - ^0.8.3 | ^7.x | ^7.1.3 |
| ^0.8.4 | ^7.x | ^7.2.0 |
| ^0.9.0 | ^7.x || ^8.x | ^7.2.0 |
| ^0.10.0 - ^0.12.0 | ^7.x || ^8.x | ^7.2 || ^8.0 |
| ^0.12.1 | ^8.x || ^9.x | ^7.2 || ^8.0 |
| ^0.13.0 | ^8.x || ^9.x | ^8.1 |
| ^0.13.1 | ^8.x || ^9.x || ^10.x | ^8.1 |
| ^0.13.5 | ^8.x || ^9.x || ^10.x|| ^11.x | ^8.1 |
| ^0.14.0 | ^9.x || ^10.x|| ^11.x | ^8.1 |
Basic Usage:
-
Before launching, make sure that the api description structure meets these requirements.
-
Configure the generation parameters (if the default ones are not suitable).
-
Client Generation:
-
After successful generation, the client code will appear along the path
<output_dir_template>-php, which can be put into git, the git_push script will be at the root, which is convenient to use for this. The corresponding repositories should already be created in the appropriate version control system. The full name of the repository is formed as follows:<git_user>/<git_repo_template>-php.
Limitations
The package currently does not support generation in a Windows environment.
Contributing
Please see CONTRIBUTING for details.
Testing
- composer install
- npm install
- composer test
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
License
The MIT License (MIT). Please see License File for more information.
ensi/laravel-openapi-client-generator 适用场景与选型建议
ensi/laravel-openapi-client-generator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 71.34k 次下载、GitHub Stars 达 6, 最近一次更新时间为 2021 年 10 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 ensi/laravel-openapi-client-generator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ensi/laravel-openapi-client-generator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 71.34k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-10-05