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.5(3mo ago)51.5kMITPHPPHP ^8.2CI passing

Since Sep 10Pushed 3mo 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 3d ago

READMEChangelogDependencies (8)Versions (6)Used By (0)

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

[](#zefix-php-sdk)

[![PHP 8.2](https://github.com/jschwendener/zefix-php/actions/workflows/test-php82.yml/badge.svg)](https://github.com/jschwendener/zefix-php/actions/workflows/test-php82.yml)[![PHP 8.3](https://github.com/jschwendener/zefix-php/actions/workflows/test-php83.yml/badge.svg)](https://github.com/jschwendener/zefix-php/actions/workflows/test-php83.yml)[![PHP 8.4](https://github.com/jschwendener/zefix-php/actions/workflows/test-php84.yml/badge.svg)](https://github.com/jschwendener/zefix-php/actions/workflows/test-php84.yml)[![PHP 8.5](https://github.com/jschwendener/zefix-php/actions/workflows/test-php85.yml/badge.svg)](https://github.com/jschwendener/zefix-php/actions/workflows/test-php85.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

42

—

FairBetter than 88% of packages

Maintenance82

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

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 ~142 days

Total

5

Last Release

96d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10193428?v=4)[Jonas](/maintainers/jschwendener)[@jschwendener](https://github.com/jschwendener)

---

Top Contributors

[![jschwendener](https://avatars.githubusercontent.com/u/10193428?v=4)](https://github.com/jschwendener "jschwendener (26 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

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[showdoc/showdoc

ShowDoc is a tool greatly applicable for an IT team to share documents online

12.8k7.1k](/packages/showdoc-showdoc)[myoutdeskllc/salesforce-php

salesforce library for php8+

1579.5k](/packages/myoutdeskllc-salesforce-php)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.7k1](/packages/jasara-php-amzn-selling-partner-api)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1123.7k](/packages/codebar-ag-laravel-docuware)

PHPackages © 2026

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