forked from loafle/openapi-generator-original
[PHP] Bring PSR-18 composer.json inline with main (#20897)
* [PHP] PSR-18 composer.json to use composerPackageName * Bring PSR-18 composer.json inline with main
This commit is contained in:
parent
20db1e1590
commit
a4072c5ea9
@ -1,7 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "{{gitUserId}}/{{gitRepoId}}",
|
{{#composerPackageName}}
|
||||||
|
"name": "{{{.}}}",
|
||||||
|
{{/composerPackageName}}
|
||||||
{{#artifactVersion}}
|
{{#artifactVersion}}
|
||||||
"version": "{{artifactVersion}}",
|
"version": "{{{.}}}",
|
||||||
{{/artifactVersion}}
|
{{/artifactVersion}}
|
||||||
"description": "{{{appDescription}}}",
|
"description": "{{{appDescription}}}",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@ -13,19 +15,19 @@
|
|||||||
"rest",
|
"rest",
|
||||||
"api"
|
"api"
|
||||||
],
|
],
|
||||||
"homepage": "https://openapi-generator.tech",
|
"homepage": "{{{artifactUrl}}}",
|
||||||
"license": "unlicense",
|
"license": "{{{licenseName}}}",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "OpenAPI-Generator contributors",
|
"name": "{{{developerOrganization}}}",
|
||||||
"homepage": "https://openapi-generator.tech"
|
"homepage": "{{{developerOrganizationUrl}}}"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"config": {
|
"config": {
|
||||||
"sort-packages": true
|
"sort-packages": true
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.2",
|
"php": "^7.4 || ^8.0",
|
||||||
"ext-curl": "*",
|
"ext-curl": "*",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-mbstring": "*",
|
"ext-mbstring": "*",
|
||||||
@ -41,14 +43,14 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^8.0 || ^9.0",
|
"phpunit/phpunit": "^8.0 || ^9.0",
|
||||||
"friendsofphp/php-cs-fixer": "^2.12",
|
"friendsofphp/php-cs-fixer": "^3.5",
|
||||||
"guzzlehttp/guzzle": "^7.0",
|
"guzzlehttp/guzzle": "^7.0",
|
||||||
"php-http/guzzle7-adapter": "^1.0"
|
"php-http/guzzle7-adapter": "^1.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": { "{{escapedInvokerPackage}}\\" : "{{srcBasePath}}/" }
|
"psr-4": { "{{{escapedInvokerPackage}}}\\" : "{{{srcBasePath}}}/" }
|
||||||
},
|
},
|
||||||
"autoload-dev": {
|
"autoload-dev": {
|
||||||
"psr-4": { "{{escapedInvokerPackage}}\\Test\\" : "{{testBasePath}}/" }
|
"psr-4": { "{{{escapedInvokerPackage}}}\\Test\\" : "{{{testBasePath}}}/" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"name": "GIT_USER_ID/GIT_REPO_ID",
|
|
||||||
"description": "This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\",
|
"description": "This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"openapitools",
|
"openapitools",
|
||||||
@ -14,7 +13,7 @@
|
|||||||
"license": "unlicense",
|
"license": "unlicense",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "OpenAPI-Generator contributors",
|
"name": "OpenAPI",
|
||||||
"homepage": "https://openapi-generator.tech"
|
"homepage": "https://openapi-generator.tech"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -22,7 +21,7 @@
|
|||||||
"sort-packages": true
|
"sort-packages": true
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.2",
|
"php": "^7.4 || ^8.0",
|
||||||
"ext-curl": "*",
|
"ext-curl": "*",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-mbstring": "*",
|
"ext-mbstring": "*",
|
||||||
@ -38,7 +37,7 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^8.0 || ^9.0",
|
"phpunit/phpunit": "^8.0 || ^9.0",
|
||||||
"friendsofphp/php-cs-fixer": "^2.12",
|
"friendsofphp/php-cs-fixer": "^3.5",
|
||||||
"guzzlehttp/guzzle": "^7.0",
|
"guzzlehttp/guzzle": "^7.0",
|
||||||
"php-http/guzzle7-adapter": "^1.0"
|
"php-http/guzzle7-adapter": "^1.0"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user