Skip to content

Commit 1424b26

Browse files
chore(release): bump version to 1.3.0 and add github-release target
1 parent 526c43e commit 1424b26

2 files changed

Lines changed: 41 additions & 6 deletions

File tree

Makefile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@
1414
# #
1515
# ═══════════════════════════════════════════════════════════════════════ #
1616
# #
17-
# Project: openapi-rust-sdk #
18-
# Version: 0.1.0 #
19-
# Author: Michael Cuffaro (@maiku1008) #
17+
# Project: openapi-php-sdk #
18+
# Version: 1.3.0 #
19+
# Maintainer: Francesco Bianco #
2020
# Copyright: (c) 2025 Openapi®. All rights reserved. #
2121
# License: MIT #
22-
# Maintainer: Francesco Bianco #
2322
# Contact: https://openapi.com/ #
2423
# Repository: https://github.com/openapi/openapi-php-sdk/ #
2524
# Documentation: https://console.openapi.com/ #
@@ -35,7 +34,7 @@
3534
## Variables
3635
## =========
3736

38-
VERSION := 1.2.1
37+
VERSION := 1.3.0
3938

4039
## ====================
4140
## Development Commands
@@ -58,6 +57,12 @@ push:
5857

5958
release: push
6059
@git add .
61-
@git commit -m "Update PHP SDK to version ${VERSION}" || echo "No changes to commit"
60+
@git commit -m "chore(release): bump version to ${VERSION}" || echo "No changes to commit"
6261
@git tag -fa "${VERSION}" -m "${VERSION}"
6362
@git push origin --tags -f
63+
64+
github-release:
65+
@gh release create "$(VERSION)" \
66+
--title "Openapi® PHP SDK v$(VERSION)" \
67+
--notes-file docs/release.md \
68+
--latest

docs/release.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Release 1.3.0 — Openapi® PHP SDK
2+
3+
The **1.3.0** release of the Openapi® PHP SDK introduces a redesigned transport layer, built-in environment support, and a cleaner class naming convention — making the SDK more composable, testable, and framework-friendly.
4+
5+
### 🔌 Pluggable HTTP Transport
6+
7+
* Introduced `HttpTransportInterface` — inject any HTTP client (Guzzle, PSR-18, Laravel HTTP) directly into `Client`.
8+
* Added `CurlTransport` as the default implementation, extracted from `Client` to respect the single-responsibility principle.
9+
* Full PSR-18 compatibility: `psr/http-client` is now a declared dependency.
10+
11+
### 🌿 Built-in DotEnv Support
12+
13+
* Added `DotEnv` loader for lightweight `.env` file parsing with no external dependencies.
14+
* Added `Bootstrap` — automatically loaded via Composer's `files` autoload — for seamless environment bootstrapping in plain PHP projects.
15+
* Framework-safe: does not override variables already set by Laravel, Symfony, or CI environments.
16+
17+
### 🧹 Cleaner Naming Convention
18+
19+
* Removed redundant `Openapi` prefix from all class and file names — the `Openapi\` namespace already provides the context.
20+
* Renamed `Exception``ApiException` to avoid shadowing PHP's built-in `\Exception`.
21+
* `OauthClient` now supports environment variable fallback for credentials and OAuth URLs.
22+
23+
### 👥 Contributors
24+
25+
* Added full author attribution in `composer.json` — Lorenzo Paderi, Mario Ugurcu, Francesco Bianco, and Claude Code.
26+
* Work from the `upkeep` branch (Mario Ugurcu) has been properly integrated and credited.
27+
28+
### 🚀 Looking Ahead
29+
30+
Version **1.3.0** establishes the architectural foundation for future extensibility. Next milestones include middleware support, structured error responses, and a retry policy interface built on top of the new transport layer.

0 commit comments

Comments
 (0)