PHP code example of pirabyte / laravel-lexware-office
1. Go to this page and download the library: Download pirabyte/laravel-lexware-office library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pirabyte / laravel-lexware-office example snippets
use Pirabyte\LaravelLexwareOffice\Facades\LexwareOffice;
// API-Methoden nutzen
$contact = LexwareOffice::contacts()->get('kontakt-id-hier');
use Pirabyte\LaravelLexwareOffice\LexwareOffice;
// Instanz mit benutzerdefiniertem API-Key erstellen
$client = new LexwareOffice(
'https://api.lexoffice.de/',
'Ihr-API-Key-Hier' // z.B. aus Benutzereinstellungen oder Datenbank
);
// API-Methoden nutzen
$contact = $client->contacts()->get('kontakt-id-hier');
// Standardmäßig sind 50 Anfragen pro Minute erlaubt
$lexwareOffice = app('lexware-office');
// Optional: Benutzerdefiniertes Rate-Limit setzen
$lexwareOffice->setRateLimit(10); // Beschränkt auf 10 Anfragen pro Minute