PHPackages                             jschwendener/zefix-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. [API Development](/categories/api)
4. /
5. jschwendener/zefix-php

ActiveLibrary[API Development](/categories/api)

jschwendener/zefix-php
======================

PHP SDK for the Swiss Zefix REST API

v0.0.3(1y ago)41.3kMITPHPPHP ^8.2

Since Sep 10Pushed 1y ago2 watchersCompare

[ Source](https://github.com/jschwendener/zefix-php)[ Packagist](https://packagist.org/packages/jschwendener/zefix-php)[ RSS](/packages/jschwendener-zefix-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Zefix PHP SDK
=============

[](#zefix-php-sdk)

[![Run Pest tests](https://github.com/jschwendener/zefix-php/actions/workflows/run-tests.yml/badge.svg)](https://github.com/jschwendener/zefix-php/actions/workflows/run-tests.yml)

This is a simple PHP wrapper around the [Zefix](https://www.zefix.admin.ch/de/search/entity/welcome) Public [REST API](https://www.zefix.admin.ch/ZefixPublicREST/swagger-ui/index.html) which can be used to search for swiss companies and retrieve their details. This package is not affiliated with the Zefix.

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

[](#installation)

You can install the package via composer:

```
composer require jschwendener/zefix-php
```

Authentication
--------------

[](#authentication)

A valid username and password is required to access the Zefix API.

You can request access by sending an email to  and providing the following information:

- An email address which will be used as username
- Additional email addresses which should receive information maintenance and updates of the API

Usage
-----

[](#usage)

### Search for companies

[](#search-for-companies)

Search for companies registered in the commercial register by different parameters

```
use Jschwendener\Zefix\Zefix;

$zefix = new Jschwendener\Zefix\Zefix('username', 'password');

// Search for companies by name
$results = $zefix->company()->search('company name');

// Search for companies by name and additional parameters
$results = $zefix->company()->search('company name', [
    'canton' => 'ZH',
    'activeOnly' => false,
]);
```

### Get company details

[](#get-company-details)

Get detailed company info by UID

```
use Jschwendener\Zefix\Zefix;

$zefix = new Jschwendener\Zefix\Zefix('username', 'password');

$details = $zefix->company()->getByUid('CHE-123.456.789');
```

Credits
-------

[](#credits)

This SDK is built using [Saloon PHP](https://docs.saloon.dev/).

---

The Zefix PHP SDK is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

606d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/218c6d8b335e0e4feced7d6273c997ce6d0ce6358ac105798352dd74be00c408?d=identicon)[jschwendener](/maintainers/jschwendener)

---

Top Contributors

[![jschwendener](https://avatars.githubusercontent.com/u/10193428?v=4)](https://github.com/jschwendener "jschwendener (16 commits)")

---

Tags

phpzefix

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[netflie/whatsapp-cloud-api

The first PHP SDK to send and receive messages using a cloud-hosted version of the WhatsApp Business Platform

640431.7k4](/packages/netflie-whatsapp-cloud-api)[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[myoutdeskllc/salesforce-php

salesforce library for php8+

1560.8k](/packages/myoutdeskllc-salesforce-php)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)[hardcastle/xrpl_php

PHP SDK / Client for the XRP Ledger

129.7k5](/packages/hardcastle-xrpl-php)[codebar-ag/laravel-zammad

Zammad integration with Laravel

106.1k](/packages/codebar-ag-laravel-zammad)

PHPackages © 2026

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