PHPackages                             yay-photobooks/partner-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. yay-photobooks/partner-sdk

ActiveLibrary[API Development](/categories/api)

yay-photobooks/partner-sdk
==========================

PHP SDK for YAY Photobook Partner API - Create beautiful photobooks programmatically

1.1.2(1mo ago)151MITPHPPHP &gt;=8.0

Since Jun 27Pushed 1mo agoCompare

[ Source](https://github.com/yay-photobooks/partner-sdk)[ Packagist](https://packagist.org/packages/yay-photobooks/partner-sdk)[ Docs](https://github.com/yay-photobooks/partner-sdk)[ RSS](/packages/yay-photobooks-partner-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (14)Versions (6)Used By (0)

YAY Partner SDK (PHP)
=====================

[](#yay-partner-sdk-php)

[![Latest Version](https://camo.githubusercontent.com/77ea872386c04949d4bfc4215cc4a5e2a6b8252bbeb14817513a6f49b521f373/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7961792d70686f746f626f6f6b732f706172746e65722d73646b2e737667)](https://packagist.org/packages/yay-photobooks/partner-sdk)[![License](https://camo.githubusercontent.com/7645544db973bcf5f71ac56b035f851298d846bede486ed806506c926b07442e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7961792d70686f746f626f6f6b732f706172746e65722d73646b2e737667)](https://packagist.org/packages/yay-photobooks/partner-sdk)[![PHP Version](https://camo.githubusercontent.com/1e5315735fcfee2a43a7644ef2c016469ceca4f9b32615e367fe7948a2ec331f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7961792d70686f746f626f6f6b732f706172746e65722d73646b2e737667)](https://packagist.org/packages/yay-photobooks/partner-sdk)

A simple, type-safe PHP SDK for integrating with the YAY Photobook Partner API. Enable YAY to create beautiful photobooks for your customers.

Not using PHP?
--------------

[](#not-using-php)

We use a REST API that you can query with any language that supports HTTP requests.

The API specification is defined in [`openapi-partner-api.yaml`](openapi-partner-api.yaml) (OpenAPI 3.1).

Features
--------

[](#features)

- 🔒 **Type-safe DTOs** - Catch API changes at compile time
- 🌍 **Environment support** - Easy switching between sandbox and production
- 🐛 **Debug-friendly** - Access to original HTTP request/response data
- 📋 **RFC 7807 compliant** - Standardized error handling
- ⚡ **Simple setup** - Environment variable configuration with direnv support

Installation
------------

[](#installation)

```
composer require yay-photobooks/partner-sdk
```

Quick Start
-----------

[](#quick-start)

### 1. Environment Setup

[](#1-environment-setup)

Set the variables as shown in the .envrc.example.

When you use direnv, its as simple as copying and modifiny .envrc.example

```
# Install direnv: https://direnv.net/docs/installation.html
cp .envrc.example .envrc
direnv allow
```

### 2. Create a Photobook Project

[](#2-create-a-photobook-project)

```
