Skip to content

Commit 7b6090f

Browse files
committed
Ready for Packagist
1 parent 01d801a commit 7b6090f

File tree

65 files changed

+468
-5795
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+468
-5795
lines changed

.openapi-generator/config.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,21 @@ templateDir: .openapi-generator/templates
33
additionalProperties:
44
packageName: Premium - Accounts API
55
apiPackage: AccountsApi
6-
UserId: VitexSoftware
6+
licenseName: MIT
7+
UserId: SpojeNet
78
RepoId: php-vitexsoftware-rbczpremiumapi
89
infoEmail: [email protected]
910
infoUrl: https://github.com/Spoje-NET/php-csas-webapi
10-
infoDescription: PHP API client for CSAS WebAPI
11+
artifactUrl: https://github.com/Spoje-NET/php-csas-webapi
12+
appDescription: PHP API client for CSAS Premium Accounts WebAPI
1113
apiVersion: 3.0.0
1214
allowUnicodeIdentifiers: true
13-
artifactVersion: 0.1.0
14-
invokerPackage: Spoje-NET\php-csas-webapi
15+
invokerPackage: SpojeNET\\CsasAccountsApi
1516
modelPackage: Model
17+
developerOrganization: SpojeNET
18+
developerOrganizationUrl: https://spojenet.cz
1619
variableNamingConvention: camelCase
20+
composerPackageName: spojenet/csas-accountsapi
21+
# composer.json.mustache:
22+
# folder: .
23+
# destinationFilename: composer.json
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
{{#composerPackageName}}
3+
"name": "{{.}}",
4+
{{/composerPackageName}}
5+
{{#artifactVersion}}
6+
"version": "{{.}}",
7+
{{/artifactVersion}}
8+
"description": "{{{appDescription}}}",
9+
"keywords": [
10+
"openapitools",
11+
"openapi-generator",
12+
"openapi",
13+
"php",
14+
"sdk",
15+
"rest",
16+
"api",
17+
"csas",
18+
"Česká Spořitelna",
19+
"Spořka"
20+
],
21+
"homepage": "{{ infoUrl }}",
22+
"license": "MIT",
23+
"authors": [
24+
{
25+
"name": "Vítězslav Dvořák",
26+
"email": "[email protected]",
27+
"homepage": "https://spojenet.cz/"
28+
}
29+
],
30+
"require": {
31+
"php": "^7.4 || ^8.0",
32+
"ext-curl": "*",
33+
"ext-json": "*",
34+
"ext-mbstring": "*",
35+
"guzzlehttp/guzzle": "^7.3",
36+
"guzzlehttp/psr7": "^1.7 || ^2.0",
37+
"vitexsoftware/ease-core": ">=1.41"
38+
},
39+
"require-dev": {
40+
"phpunit/phpunit": "^8.0 || ^9.0",
41+
"friendsofphp/php-cs-fixer": "^3.5"
42+
},
43+
"autoload": {
44+
"psr-4": { "{{escapedInvokerPackage}}\\" : "{{srcBasePath}}/" }
45+
},
46+
"autoload-dev": {
47+
"psr-4": { "{{escapedInvokerPackage}}\\Test\\" : "{{testBasePath}}/" }
48+
}
49+
}

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,12 @@ vendor: composer.json composer.lock ## Installs composer dependencies
2222
.PHONY: cs
2323
cs: ## Update Coding Standards
2424
vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --diff --verbose
25+
26+
clean: ## Removes all generated files
27+
rm -rf vendor
28+
rm -f composer.lock
29+
rm -f README.md
30+
rm -rf lib docs
31+
32+
33+

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ require_once(__DIR__ . '/vendor/autoload.php');
5151

5252

5353

54-
$apiInstance = new Spoje-NET\php-csas-webapi\Api\DefaultApi(
54+
$apiInstance = new SpojeNET\\CsasWebApi\Api\DefaultApi(
5555
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
5656
// This is optional, `GuzzleHttp\Client` will be used as default.
5757
new GuzzleHttp\Client()
@@ -128,6 +128,5 @@ [email protected]
128128
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
129129

130130
- API version: `1.0.0`
131-
- Package version: `0.1.0`
132131
- Generator version: `7.10.0`
133132
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.1.0",
2+
"name": "spojenet/csas-accountsapi",
33
"description": "API for managing production accounts.",
44
"keywords": [
55
"openapitools",
@@ -10,12 +10,12 @@
1010
"rest",
1111
"api"
1212
],
13-
"homepage": "https://openapi-generator.tech",
14-
"license": "unlicense",
13+
"homepage": "https://github.com/Spoje-NET/php-csas-webapi",
14+
"license": "MIT",
1515
"authors": [
1616
{
17-
"name": "OpenAPI",
18-
"homepage": "https://openapi-generator.tech"
17+
"name": "SpojeNET",
18+
"homepage": "https://spojenet.cz"
1919
}
2020
],
2121
"require": {
@@ -31,9 +31,9 @@
3131
"friendsofphp/php-cs-fixer": "^3.5"
3232
},
3333
"autoload": {
34-
"psr-4": { "Spoje-NET\\php-csas-webapi\\" : "lib/" }
34+
"psr-4": { "SpojeNET\\\\CsasWebApi\\" : "lib/" }
3535
},
3636
"autoload-dev": {
37-
"psr-4": { "Spoje-NET\\php-csas-webapi\\Test\\" : "test/" }
37+
"psr-4": { "SpojeNET\\\\CsasWebApi\\Test\\" : "test/" }
3838
}
3939
}

0 commit comments

Comments
 (0)