定制 oscar-team/komfortkasse-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

oscar-team/komfortkasse-php

最新稳定版本:v1.0.2

Composer 安装命令:

composer require oscar-team/komfortkasse-php

包简介

Komfortkasse php sdk

README 文档

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

统计信息

  • 总下载量: 2.93k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固