PHPackages                             laulamanapps/izettle-api - 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. laulamanapps/izettle-api

ActiveLibrary[API Development](/categories/api)

laulamanapps/izettle-api
========================

Zettle by PayPal API PHP Client

v0.9.4(5y ago)113.0k↑1900%17[6 issues](https://github.com/LauLamanApps/iZettleApi/issues)[3 PRs](https://github.com/LauLamanApps/iZettleApi/pulls)MITPHPPHP &gt;=7.3

Since Nov 17Pushed 1y ago7 watchersCompare

[ Source](https://github.com/LauLamanApps/iZettleApi)[ Packagist](https://packagist.org/packages/laulamanapps/izettle-api)[ RSS](/packages/laulamanapps-izettle-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (7)Versions (9)Used By (0)

Zettle by PayPal API
====================

[](#zettle-by-paypal-api)

The Zettle by PayPal API provides a simple integration of the [Zettle by PayPal API](https://developer.zettle.com/docs/api) for your PHP project.

[![Build Status](https://camo.githubusercontent.com/7526b91a30a930ca7b5f4769f8e9cb3cf93148e161b8a235cd136b2faae1f9aa/68747470733a2f2f7472617669732d63692e6f72672f4c61754c616d616e417070732f695a6574746c654170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/LauLamanApps/iZettleApi)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9042e07a7b6d262fab0991aa142b2c3c6027bf995c89cf4d77a8c6c788fcdc93/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4c61754c616d616e417070732f695a6574746c654170692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/LauLamanApps/iZettleApi/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/ddb30f23f3d1d3021410ec9f100c5244f69559723f3250411c21f03b0472127f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4c61754c616d616e417070732f695a6574746c654170692f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/LauLamanApps/iZettleApi/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/c5e4f6ce7e84ed0357331963503ceecc3ea0ea74b9d7d346a94fd518816baec4/68747470733a2f2f706f7365722e707567782e6f72672f6c61756c616d616e617070732f497a6574746c652d6170692f762f737461626c65)](https://packagist.org/packages/laulamanapps/izettle-api)[![License](https://camo.githubusercontent.com/e2ebbe14554a5d4b7ecee110a511baa48ad262d5bb9e2ebe6b443985df126c47/68747470733a2f2f706f7365722e707567782e6f72672f6c61756c616d616e617070732f497a6574746c652d6170692f6c6963656e7365)](https://packagist.org/packages/laulamanapps/izettle-api)

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

[](#installation)

With [composer](http://packagist.org), add:

```
$ composer require laulamanapps/izettle-api
```

Run Tests
---------

[](#run-tests)

To make sure everyting works you can run tests:

```
$ composer test
```

Usage
-----

[](#usage)

Get yourself an access token. you'll need an `clientId` and `clientSecret` for this (to get one apply [here](https://www.izettle.com/api-access/)) for performance benefits, it might be wise to store the access token in a cache like [Redis](https://redis.io/).

```
use GuzzleHttp\Client;
use LauLamanApps\IzettleApi\GuzzleIzettleClient;
use LauLamanApps\IzettleApi\IzettleClientFactory;

$izettleClient = new GuzzleIzettleClient(new Client(), 'clientId', 'clientSecret');
$accessToken = $izettleClient->getAccessTokenFromUserLogin('john.doe@example.com', 'password');

//-- store $accessToken in cache

$productClient = IzettleClientFactory::getProductClient($iZettleClient);
$library = $productClient->getLibrary();
```

### Make call with existing AccessToken

[](#make-call-with-existing-accesstoken)

```
use GuzzleHttp\Client;
use LauLamanApps\IzettleApi\GuzzleIzettleClient;
use LauLamanApps\IzettleApi\IzettleClientFactory;

$accessToken = ...; //-- Get from cache

$izettleClient = new GuzzleIzettleClient(new Client(), 'clientId', 'clientSecret');
$izettleClient->setAccessToken($accessToken);

$purchaseClient = IzettleClientFactory::getPurchaseClient($iZettleClient);
$library = $purchaseClient->getPurchaseHistory();
```

Upgrading
---------

[](#upgrading)

### From v0.9 to v1.0

[](#from-v09-to-v10)

Version 1.0 requires PHP 8.1 and uses first-class Enums. This is a breaking change.

If you're using the enums, make sure you replace calls to `get` with an instance reference:

```
-if ($payout->getPeriodicity() === Periodicity::get(Periodicity::DAILY)) {
+if ($payout->getPeriodicity() === Periodicity::DAILY) {
```

Credits
-------

[](#credits)

iZettle Api has been developed by [LauLaman](https://github.com/LauLaman).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~244 days

Total

5

Last Release

2118d ago

PHP version history (2 changes)v0.9PHP &gt;=7.1

v0.9.4PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/930ca3b1756d00a63c8ff3363e81f16f961cf3ef79ff0c9d362670c36d97e456?d=identicon)[LauLaman](/maintainers/LauLaman)

---

Top Contributors

[![LauLaman](https://avatars.githubusercontent.com/u/8283992?v=4)](https://github.com/LauLaman "LauLaman (27 commits)")[![pazion](https://avatars.githubusercontent.com/u/687111?v=4)](https://github.com/pazion "pazion (5 commits)")[![rikvdh](https://avatars.githubusercontent.com/u/1267617?v=4)](https://github.com/rikvdh "rikvdh (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/laulamanapps-izettle-api/health.svg)

```
[![Health](https://phpackages.com/badges/laulamanapps-izettle-api/health.svg)](https://phpackages.com/packages/laulamanapps-izettle-api)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)[walle89/swedbank-json

Unofficial API client for the Swedbank's and Sparbanken's mobile apps in Sweden.

752.5k](/packages/walle89-swedbank-json)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
