Download the PHP package pirabyte/laravel-lexware-office without Composer

On this page you can find all versions of the php package pirabyte/laravel-lexware-office. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-lexware-office

Laravel Lexware Office

Tests Code coverage

Laravel-Client für die Lexware Office API mit typisierten Modellen, OAuth2-Unterstützung und lokalem Rate-Limit. Unterstützt PHP ab 8.3 sowie Laravel 11 bis 13.

Installation

Trage deinen API-Key in .env ein:

Laravel lädt die Paketkonfiguration automatisch. Wenn du sie anpassen möchtest, veröffentliche sie mit:

Für die Speicherung von OAuth2-Tokens in der Datenbank kannst du zusätzlich die Migration mit --tag="lexware-office-migration" veröffentlichen. --tag="lexware-office" veröffentlicht Konfiguration und Migration zusammen.

Verwendung

Mit dem konfigurierten API-Key nutzt du die Facade:

Für einen anderen API-Key erstellst du einen eigenen Client:

Weitere Beispiele: Partner-Integrationen.

Implementierungsstand

Diese Ressourcen und Methoden sind derzeit im Paket implementiert:

Bereich Zugriff Methoden
Kontakte contacts() create, get, update, filter, all, count, getAutoPagingIterator
Belege vouchers() create, createAndAttachFile, get, update, filter, all, document, downloadDocument, attachFile
Länder countries() all
Finanzkonten financialAccounts() create, get, filter, delete
Finanztransaktionen financialTransactions() create, get, update, delete, latest, getVoucherAssignments
Buchungskategorien postingCategories() get
Profil profile() get
Transaktionszuweisungshinweise transactionAssignmentHints() create
Partner-Integrationen partnerIntegrations() get, update

Besonderheit bei der neuesten Finanztransaktion

financialTransactions()->latest($financialAccountId) kann bei einem bestehenden Finanzkonto ohne Transaktionen eine 404-Antwort von Lexware erhalten. Die Methode gibt nur bei einer erfolgreichen, leeren Antwort null zurück. Wenn du prüfen musst, ob das Konto existiert, nutze zusätzlich financialAccounts()->get($financialAccountId).

Rate-Limit

Der Client prüft vor Anfragen ein lokales Laravel Rate-Limit von standardmäßig 50 Anfragen pro Minute. Bei erreichtem Limit wirft er eine LexwareOfficeApiException mit Status 429. Das Limit kannst du in config/lexware-office.php über max_requests_per_minute oder am Client ändern:

Das lokale Limit garantiert keine freien Kapazitäten bei der Lexware Office API. Für Abläufe mit mehreren Anfragen bietet der Client waitForRateLimitCapacity() an.

Im Einsatz bei

Envoix nutzt dieses Paket für seine Lexware Office Anbindung. Die Anwendung bereitet Stripe-Zahlungen, Gebühren und Belege für Lexware Office vor. So funktioniert die Stripe-Integration.

Lizenz

MIT


All versions of laravel-lexware-office with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3|^8.4
illuminate/support Version ^11.0|^12.0|^13.0
guzzlehttp/guzzle Version ^7.10
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pirabyte/laravel-lexware-office contains the following files

Loading the files please wait ...