Skip to content

Commit 1945e26

Browse files
committed
composer.json to root dir
1 parent 98b802b commit 1945e26

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/generate_sdk_code.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
java --version
7878
java -jar ${{ runner.temp }}/openapi-generator-cli.jar generate -i ${{ runner.temp }}/openapispec/openapi.yml -g php -o ./src -c ${{ runner.temp }}/${{ env.CONFIG_FILE }} --skip-validate-spec
7979
cp ./src/README.md ./README.md
80+
cp ./src/composer.json ./composer.json
8081
8182
- name: Create Pull Request
8283
id: cpr

composer.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "databox",
3+
"version": "2.1",
4+
"description": "Push API resources Open API documentation",
5+
"keywords": [
6+
"openapitools",
7+
"openapi-generator",
8+
"openapi",
9+
"php",
10+
"sdk",
11+
"rest",
12+
"api"
13+
],
14+
"homepage": "https://github.com/databox/databox-php",
15+
"license": "MIT",
16+
"authors": [
17+
{
18+
"name": "Databox",
19+
"homepage": "https://databox.com/"
20+
}
21+
],
22+
"require": {
23+
"php": "^7.4 || ^8.0",
24+
"ext-curl": "*",
25+
"ext-json": "*",
26+
"ext-mbstring": "*",
27+
"guzzlehttp/guzzle": "^7.3",
28+
"guzzlehttp/psr7": "^1.7 || ^2.0"
29+
},
30+
"require-dev": {
31+
"phpunit/phpunit": "^8.0 || ^9.0",
32+
"friendsofphp/php-cs-fixer": "^3.5"
33+
},
34+
"autoload": {
35+
"psr-4": { "Databox\\" : "lib/" }
36+
},
37+
"autoload-dev": {
38+
"psr-4": { "Databox\\Test\\" : "test/" }
39+
}
40+
}

0 commit comments

Comments
 (0)