Skip to content

Commit 2727940

Browse files
author
NumaryBot
committed
release(sdk): v2.0.0-beta.1
1 parent fa16f3d commit 2727940

File tree

964 files changed

+23939
-9334
lines changed

Some content is hidden

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

964 files changed

+23939
-9334
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This allows generated code to be indexed correctly
2+
*.php linguist-generated=false

.github/workflows/speakeasy_sdk_publish.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ name: Publish
22
"on":
33
push:
44
branches:
5-
- main
6-
# paths:
7-
# - RELEASES.md
5+
- release/v*.*.*
6+
- release/v*.*.*-alpha.*
7+
- release/v*.*.*-beta.*
8+
- release/v*.*.*-rc.*version
89
jobs:
910
Release:
1011
name: 'Release'
1112
runs-on: ubuntu-latest
1213
steps:
13-
- uses: actions/checkout@v3
14-
- name: Get version from gen.yaml
15-
id: get_version
16-
uses: mikefarah/yq@master
17-
with:
18-
cmd: yq '.php.version' gen.yaml
19-
- name: Create Release
20-
id: create_release
21-
uses: actions/create-release@v1
22-
env:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
24-
with:
25-
tag_name: ${{ steps.get_version.outputs.result }}
26-
release_name: Release ${{ steps.get_version.outputs.result }}
27-
draft: false
28-
prerelease: false
14+
- uses: actions/checkout@v4
15+
- name: Extract branch name
16+
shell: bash
17+
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}|sed 's/^.*\///'}" >> $GITHUB_OUTPUT
18+
id: extract_branch
19+
- name: Create Release
20+
id: create_release
21+
uses: actions/create-release@v1
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
24+
with:
25+
tag_name: ${{ steps.extract_branch.outputs.branch }}
26+
release_name: Release ${{ steps.extract_branch.outputs.branch }}
27+
draft: false
28+
prerelease: false

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Formance, Inc
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 178 additions & 122 deletions
Large diffs are not rendered by default.

USAGE.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
<!-- Start SDK Example Usage -->
2+
3+
24
```php
35
<?php
46

57
declare(strict_types=1);
68
require_once 'vendor/autoload.php';
79

8-
use \formance\stack\SDK;
9-
use \formance\stack\Models\Shared\Security;
10+
use formance\stack\SDK;
1011

11-
$sdk = SDK::builder()
12-
->build();
12+
$sdk = SDK::builder()->build();
1313

1414
try {
15-
$response = $sdk->getVersions();
15+
$response = $sdk->sdk->getVersions();
1616

1717
if ($response->getVersionsResponse !== null) {
1818
// handle response
1919
}
2020
} catch (Exception $e) {
2121
// handle exception
2222
}
23+
2324
```
2425
<!-- End SDK Example Usage -->

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "formancehq/formance-sdk-php",
2+
"name": "formance-sdk-php",
33
"type": "library",
44
"autoload": {
55
"psr-4": {

0 commit comments

Comments
 (0)