Download the PHP package crademaker/bexio-api-client without Composer
On this page you can find all versions of the php package crademaker/bexio-api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download crademaker/bexio-api-client
More information about crademaker/bexio-api-client
Files in crademaker/bexio-api-client
Package bexio-api-client
Short Description Framework-independent bexio API client for PHP
License MIT
Homepage https://github.com/rademakeronline/bexio-api-client
Informations about the package bexio-api-client
bexio API Client
Framework-unabhaengiger, PSR-18-basierter bexio API Client fuer PHP mit vollstaendiger, aus der offiziellen bexio-Dokumentation generierter API-Oberflaeche.
Status
Das Projekt ist bewusst als Neubau gestartet. Die Entscheidung dazu ist dokumentiert in docs/analysis/fork-vs-rebuild.md. Die API-Oberflaeche umfasst aktuell 318 dokumentierte HTTP-Operationen in 58 Ressourcenklassen, generiert aus der offiziellen bexio-Dokumentation.
Installation
Für eine konkrete HTTP-Implementierung brauchst du zusätzlich einen PSR-18-Client und PSR-17-Fabriken, zum Beispiel mit Guzzle:
Schnellstart mit Personal Access Token
Vollstaendige API-Oberflaeche
Die Ressourcenzugriffe orientieren sich an den offiziellen Tags der bexio-Dokumentation. Beispiele:
$client->contacts()$client->invoices()$client->files()$client->projects()$client->qrPayments()
Die Methoden orientieren sich an den offiziellen operationIds der Doku. Beispiele:
Signaturmuster:
- Operation ohne Path- und Body-Parameter:
method(array $query = [], array $headers = []) - Operation mit Path-Parametern:
method(array $path, array $query = [], array $headers = []) - Operation mit Body:
method(array $body, array $query = [], array $headers = []) - Operation mit Path und Body:
method(array $path, array $body, array $query = [], array $headers = [])
Die vollstaendige Resource- und Methodenliste steht in docs/api/endpoint-catalog.md.
Implementierungsbeispiele
- Beispiele: examples
- Begleitdoku: docs/usage/implementation-examples.md
OAuth2 / Refresh Tokens
Eine Authorization URL für den initialen Consent-Flow kann so erzeugt werden:
Fehlerbehandlung
Der Client mappt API-Fehler auf eigene Exceptions:
AuthenticationExceptionAuthorizationExceptionValidationExceptionNotFoundExceptionRateLimitExceptionServerExceptionApiExceptionTransportException
Architektur
- Analyse: docs/analysis/fork-vs-rebuild.md
- Zielarchitektur: docs/architecture/target-architecture.md
- Roadmap: docs/roadmap/endpoint-roadmap.md
- API-Katalog: docs/api/endpoint-catalog.md
- Implementierungsbeispiele: docs/usage/implementation-examples.md
- Mitarbeit / Regeneration: CONTRIBUTING.md
Qualitätssicherung
All versions of bexio-api-client with dependencies
ext-json Version *
psr/http-client Version ^1.0
psr/http-factory Version ^1.1
psr/http-message Version ^2.0