{"id":30127819,"url":"https://github.com/jschwendener/zefix-php","last_synced_at":"2025-08-10T17:11:23.718Z","repository":{"id":256160863,"uuid":"854488672","full_name":"jschwendener/zefix-php","owner":"jschwendener","description":"A simple PHP wrapper around the Zefix Public REST API","archived":false,"fork":false,"pushed_at":"2024-09-10T16:39:41.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-10T18:42:13.933Z","etag":null,"topics":["php","zefix"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jschwendener.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-09T09:07:16.000Z","updated_at":"2024-09-10T16:39:31.000Z","dependencies_parsed_at":"2024-09-09T10:36:28.182Z","dependency_job_id":null,"html_url":"https://github.com/jschwendener/zefix-php","commit_stats":null,"previous_names":["jschwendener/zefix-php"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jschwendener/zefix-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschwendener%2Fzefix-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschwendener%2Fzefix-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschwendener%2Fzefix-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschwendener%2Fzefix-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jschwendener","download_url":"https://codeload.github.com/jschwendener/zefix-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschwendener%2Fzefix-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269756394,"owners_count":24470566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","zefix"],"created_at":"2025-08-10T17:11:13.837Z","updated_at":"2025-08-10T17:11:23.702Z","avatar_url":"https://github.com/jschwendener.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zefix PHP SDK\n\n[![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)\n\nThis 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.\nThis package is not affiliated with the Zefix.\n\n## Installation\n\nYou can install the package via composer:\n```sh\ncomposer require jschwendener/zefix-php\n```\n\n## Authentication\nA valid username and password is required to access the Zefix API.\n\nYou can request access by sending an email to zefix@bj.admin.ch and providing the following information:\n- An email address which will be used as username\n- Additional email addresses which should receive information maintenance and updates of the API\n\n## Usage\n\n### Search for companies\nSearch for companies registered in the commercial register by different parameters\n\n```php\nuse Jschwendener\\Zefix\\Zefix;\n\n$zefix = new Jschwendener\\Zefix\\Zefix('username', 'password');\n\n// Search for companies by name\n$results = $zefix-\u003ecompany()-\u003esearch('company name');\n\n// Search for companies by name and additional parameters\n$results = $zefix-\u003ecompany()-\u003esearch('company name', [\n    'canton' =\u003e 'ZH',\n    'activeOnly' =\u003e false,\n]);\n```\n\n### Get company details\nGet detailed company info by UID\n\n```php\nuse Jschwendener\\Zefix\\Zefix;\n\n$zefix = new Jschwendener\\Zefix\\Zefix('username', 'password');\n\n$details = $zefix-\u003ecompany()-\u003egetByUid('CHE-123.456.789');\n```\n\n## Credits\nThis SDK is built using [Saloon PHP](https://docs.saloon.dev/).\n\n---\nThe Zefix PHP SDK is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjschwendener%2Fzefix-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjschwendener%2Fzefix-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjschwendener%2Fzefix-php/lists"}