oscar-team/komfortkasse-php

Komfortkasse php sdk

Maintainers

Package info

github.com/oscar-team/komfortkasse-php

pkg:composer/oscar-team/komfortkasse-php

Statistics

Installs: 2 603

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.2 2024-03-07 15:15 UTC

This package is auto-updated.

Last update: 2026-03-01 00:44:22 UTC


README

This is a PHP library for integrating Komfortkasse apis

Installation

Use the package manager composer to install.

composer require oscar-team/komfortkasse-php

Usage

require __DIR__ . '/vendor/autoload.php';

$client = new OscarTeam\KomfortkassePhp\KomfortKasseApi(token: 'token');

Order Apis

$orderData = [
    "number" => 12345,
    "type" => "PREPAYMENT",
    "amount" => 220.0,
    "currency" => "EUR",
    "language" => "de",
    "customerEmail" => "testing@testdt.com",
    "date" => "07-02-2024",
    "dueDate" => "09-02-2024",
    "billing" => [
        "countryCode" => "DE",
        "lastName" => "lastName",
        "company" => "new company"
    ]
];
$client->order()->create(orderNumber: 12345, orderData: $orderData)->json();
$client->order()->get(orderNumber: 12345, queryParams: [])->json();
$client->order()->remove(orderNumber: 12345)->json();
$client->order()->cancel(orderNumber: 12345)->json();
$client->order()->markAsPaid(orderNumber: 12345)->json();
$client->order()->markAsUnPaid(orderNumber: 12345)->json();

$client->order()->bulkOperation()->create(orderData: $orderData)->json();
$client->order()->bulkOperation()->getAll(queryParams: [])->json();
$client->order()->bulkOperation()->sync(queryParams: [])->json();

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT