ensi / laravel-openapi-client-generator
laravel openapi client generator
Installs: 45 306
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 2
Open Issues: 1
Requires
- php: ^8.1
- ext-json: *
- laravel/framework: ^9.0 || ^10.0 || ^11.0
- nette/php-generator: ^3.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.2
- orchestra/testbench: ^7.0 || ^8.0 || ^9.0
- pestphp/pest: ^1.22 || ^2.0
- pestphp/pest-plugin-laravel: ^1.1 || ^2.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.11
- spaze/phpstan-disallowed-calls: ^2.15
- dev-master
- 0.14.1
- 0.14.0
- 0.13.5
- 0.13.4
- 0.13.3
- 0.13.2
- 0.13.1
- 0.13.0
- 0.12.5
- 0.12.4
- 0.12.3
- 0.12.2
- 0.12.1
- 0.12.0
- 0.11.1
- 0.11.0
- 0.10.4
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.1
- 0.9.0
- 0.8.5
- 0.8.4
- 0.8.3
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.1
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.0
- 0.2.0
- 0.0.1
- dev-cloudtech-23
- dev-ensitech-1
- dev-task-87992
- dev-task-90691
This package is auto-updated.
Last update: 2024-11-14 14:04:33 UTC
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
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.