8.1.4 • Published 6 months ago

@quartetcom/openapi-generator-php-templates v8.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

openapi-generator-php-templates

OpenAPI Generator templates for PHP 8.1+ with enum and type declarations support.

Usage

Create package.json

npm init

Add this package (templates) as a dependency

npm install 'quartetcom/openapi-generator-php-templates@~8.1'

Run openapi-generator-cli with -t option

openapi-generator-cli generate \
  -g php \
  -i path/to/spec.yaml \
  -c path/to/config.json \
  -o ./ \
  -t ./node_modules/@quartetcom/openapi-generator-php-templates/templates

Features

  • PHP 8.1+: Supports PHP 8.1+
  • Enums: OpenAPI enums are provided in PHP native enums
  • Type declarations for Model methods: No #[ReturnTypeWillChange] needed

How it works

8.1.4

6 months ago

8.2.2

6 months ago

8.1.3

6 months ago

8.2.1

6 months ago

8.1.2

6 months ago

8.2.0

1 year ago

8.1.1

1 year ago

8.1.0

1 year ago