Skip to content

Commit 398ec25

Browse files
klaviyo-sdkklaviyo-sdk
andauthored
version 16.0.0 (#82)
Co-authored-by: klaviyo-sdk <[email protected]>
1 parent 0695080 commit 398ec25

887 files changed

Lines changed: 37367 additions & 42537 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
NOTE: For more granular API-specific changes, please see our [API Changelog](https://developers.klaviyo.com/en/docs/changelog_)
99

10+
## [16.0.0] - revision 2025-07-15
11+
### Changed
12+
- Various changes to improve support for PHP 8
13+
- **Breaking:** Now requires PHP 8.1
14+
- **Breaking:** A `SplFileObject` is required for uploading an image; you can no longer use a raw string
15+
1016
## [15.0.0] - revision 2025-07-15
1117
### Added
1218
#### Mapped Metrics API

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Klaviyo PHP SDK
22

3-
- SDK version: 15.0.0
3+
- SDK version: 16.0.0
44
- API Revision: 2025-07-15
55

66
## Helpful Resources
@@ -105,6 +105,10 @@ This SDK is organized into the following resources:
105105

106106

107107

108+
### Requirements
109+
110+
PHP 8.1 and later.
111+
108112
## Installation
109113

110114
You can install this package using [our Packagist package](https://packagist.org/packages/klaviyo/api):
@@ -201,15 +205,8 @@ $klaviyo->Tags->getTagRelationshipsCampaigns('f4bc6670-1aa5-47df-827a-d30a7e5430
201205

202206
#### Uploading Image From File
203207

204-
When using `$klaviyo->Images->uploadImageFromFile($file, $name)`, `$file` can be either a file path string OR a `SplFileObject`.
205-
206-
*as a file path*
207-
```php
208-
$filepath = '/path/to/image.png';
209-
$klaviyo->Images->uploadImageFromFile($filepath);
210-
```
208+
When using `$klaviyo->Images->uploadImageFromFile($file, $name)`, `$file` must be a `SplFileObject`.
211209

212-
*as a `SplFileObject`*
213210
```php
214211
$filepath = '/path/to/image.png';
215212
$file = new SplFileObject($filepath);

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "klaviyo/api",
3-
"version": "15.0.0",
3+
"version": "16.0.0",
44
"description": "PHP SDK for Klaviyo's API.",
55
"keywords": [
66
"openapitools",
@@ -20,7 +20,7 @@
2020
}
2121
],
2222
"require": {
23-
"php": "^7.4 || ^8.0",
23+
"php": "^8.1",
2424
"ext-curl": "*",
2525
"ext-json": "*",
2626
"ext-mbstring": "*",

0 commit comments

Comments
 (0)