PHPackages                             net-tools/zettle-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. net-tools/zettle-api

ActiveLibrary[API Development](/categories/api)

net-tools/zettle-api
====================

Zettle by PayPal API PHP Client

1.0.2(3y ago)0141MITPHPPHP ^8.1

Since Mar 1Pushed 3y agoCompare

[ Source](https://github.com/net-tools/ZettleApi)[ Packagist](https://packagist.org/packages/net-tools/zettle-api)[ RSS](/packages/net-tools-zettle-api/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (4)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

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.1% 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 ~0 days

Total

3

Last Release

1221d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2cb0c1d404c8ae72b0a731246130079c2f440d6ea079815ca8c153aa361b1f28?d=identicon)[nettools.ovh](/maintainers/nettools.ovh)

---

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)")[![net-tools](https://avatars.githubusercontent.com/u/6818724?v=4)](https://github.com/net-tools "net-tools (2 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/net-tools-zettle-api/health.svg)

```
[![Health](https://phpackages.com/badges/net-tools-zettle-api/health.svg)](https://phpackages.com/packages/net-tools-zettle-api)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[sylius/sylius

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

8.5k5.9M738](/packages/sylius-sylius)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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