PHPackages                             zahls/zahls-php - 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. [Payment Processing](/categories/payments)
4. /
5. zahls/zahls-php

ActiveLibrary[Payment Processing](/categories/payments)

zahls/zahls-php
===============

zahls.ch PHP SDK

v1.0.0(today)10MITPHPPHP ^8.0CI passing

Since Jul 31Pushed todayCompare

[ Source](https://github.com/zahls/zahls-php)[ Packagist](https://packagist.org/packages/zahls/zahls-php)[ Docs](https://www.zahls.ch)[ RSS](/packages/zahls-zahls-php/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

zahls.ch PHP SDK
================

[](#zahlsch-php-sdk)

PHP library for the [zahls.ch](https://www.zahls.ch) payment API.

Requirements
------------

[](#requirements)

- PHP 8.0+
- ext-curl

Install
-------

[](#install)

```
composer require zahls/zahls-php
```

Until the package is on Packagist, add the GitHub repository:

```
{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/zahls/zahls-php.git"
    }
  ],
  "require": {
    "zahls/zahls-php": "dev-main"
  }
}
```

Usage
-----

[](#usage)

```
$zahls = new \Zahls\Zahls($instanceName, $apiSecret);

$gateway = new \Zahls\Models\Request\Gateway();
$gateway->setAmount(1000); // in cents
$gateway->setCurrency('CHF');
$gateway->setSuccessRedirectUrl('https://www.example.com/success');
$gateway->setFailedRedirectUrl('https://www.example.com/failed');
$gateway->setCancelRedirectUrl('https://www.example.com/cancel');

$response = $zahls->create($gateway);
```

The default API base domain is `zahls.ch` (`https://api.zahls.ch/...`).

Instance name is the subdomain of your account, e.g. `example` for `https://example.zahls.ch`.

Examples
--------

[](#examples)

See the `examples/` directory.

License
-------

[](#license)

MIT

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/678c72065a61b5319cda680bc38b59de0bbc8c8dbc9a93046101bc0211666360?d=identicon)[adrianbruegger](/maintainers/adrianbruegger)

---

Tags

paymentgatewaytwintswitzerlandzahls

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/zahls-zahls-php/health.svg)

```
[![Health](https://phpackages.com/badges/zahls-zahls-php/health.svg)](https://phpackages.com/packages/zahls-zahls-php)
```

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

557422.8k11](/packages/lokielse-omnipay-alipay)[sudiptpa/omnipay-nabtransact

National Australia Bank (NAB) Transact driver for the Omnipay payment processing library.

1020.1k](/packages/sudiptpa-omnipay-nabtransact)[baklysystems/laravel-paymob

Laravel PayMob online payment gateway package

292.4k](/packages/baklysystems-laravel-paymob)[lucassmacedo/omnipay-mercadopago

MercadoPago gateway for OmniPay

155.4k](/packages/lucassmacedo-omnipay-mercadopago)

PHPackages © 2026

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