Skip to content

Commit 4153e5b

Browse files
committed
Monorepo structure with V1 and V2 SDK
1 parent 850c52e commit 4153e5b

File tree

1,954 files changed

+443565
-1310
lines changed

Some content is hidden

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

1,954 files changed

+443565
-1310
lines changed

.github/workflows/split.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Split Packages
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
split:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
package:
15+
- local_path: 'v1'
16+
split_repository: 'php-api-sdk-v1'
17+
- local_path: 'v2'
18+
split_repository: 'php-api-sdk'
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Split ${{ matrix.package.split_repository }}
27+
uses: symplify/[email protected]
28+
with:
29+
package_directory: ${{ matrix.package.local_path }}
30+
repository_organization: 'bsgworld'
31+
repository_name: ${{ matrix.package.split_repository }}
32+
user_name: 'github-actions[bot]'
33+
user_email: 'github-actions[bot]@users.noreply.github.com'
34+
tag: ${{ github.ref_name }}
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.SPLIT_TOKEN }}

.gitignore

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
1-
.idea
2-
vendor
1+
# IDE
2+
.idea/
3+
.vscode/
4+
*.swp
5+
*.swo
6+
7+
# Composer
8+
/vendor/
39
composer.lock
410
composer.phar
5-
phpunit-5.7.14.phar
11+
12+
# PHPUnit
13+
.phpunit.result.cache
14+
phpunit*.phar
15+
16+
# Coverage
17+
/coverage/
18+
.coverage
19+
20+
# OS
621
.DS_Store
22+
Thumbs.db
23+
24+
# Temp
25+
*.tmp
26+
/tmp/
27+
/back/
28+
29+
# Logs
30+
*.log

composer.json

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
{
2+
"name": "bsg/php-sdk-monorepo",
3+
"description": "BSG PHP SDK Monorepo - API V1 & One-API V2",
4+
"type": "project",
5+
"license": "MIT",
6+
"homepage": "https://bsg.world/",
7+
"authors": [
8+
{
9+
"name": "BSG World",
10+
"email": "[email protected]"
11+
}
12+
],
13+
"require": {
14+
"php": "^7.4 || ^8.0",
15+
"ext-curl": "*",
16+
"ext-json": "*",
17+
"ext-mbstring": "*",
18+
"guzzlehttp/guzzle": "^7.3",
19+
"guzzlehttp/psr7": "^1.7 || ^2.0"
20+
},
221
"require-dev": {
3-
"phpunit/phpunit": "^5.7"
22+
"phpunit/phpunit": "^9.0",
23+
"friendsofphp/php-cs-fixer": "^3.5"
24+
},
25+
"replace": {
26+
"bsg/php-api-sdk": "self.version",
27+
"bsg/php-api-sdk-v1": "self.version"
28+
},
29+
"autoload": {
30+
"psr-4": {
31+
"BSG\\Api\\V1\\": "v1/lib/",
32+
"BSG\\Api\\V2\\": "v2/lib/"
33+
}
34+
},
35+
"autoload-dev": {
36+
"psr-4": {
37+
"BSG\\Api\\V1\\Test\\": "v1/tests/",
38+
"BSG\\Api\\V2\\Test\\": "v2/tests/"
39+
}
40+
},
41+
"minimum-stability": "stable",
42+
"config": {
43+
"sort-packages": true
444
}
5-
}
45+
}

src/BSG.php

Lines changed: 0 additions & 44 deletions
This file was deleted.

src/BSG/ApiClient.php

Lines changed: 0 additions & 63 deletions
This file was deleted.

src/BSG/HLRApiClient.php

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)