承接 ercos/invoicing-sdk 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

ercos/invoicing-sdk

最新稳定版本:2.3.0

Composer 安装命令:

composer require ercos/invoicing-sdk

包简介

README 文档

README

Pré-requis

PHP 8.1

Installation

composer require ercos/invoicing-sdk

Configuration

Ajoutez les variables d'environnement :

  • INVOICING_BASE_URL URL de l'api de facturation. Example http://localhost:8000
  • INVOICING_APP_TOKEN jeton d'authentification

Utilisation

Pour pouvoir communiquer avec l'API, une nouvelle App doit être créée et récupérer le jeton d'authentification.

Chaque application peut ensuite créer plusieurs Vendors et, pour chacun d'entre eux, créer des factures et les paiements correspondants.

Entités existantes :

  • Vendor
  • Invoice
    • InvoiceLineCollection
    • MetadataCollection
  • Payment

Exemple d'utilisation :

$invoice = Invoice::store(new StoreInvoiceDto(
    vendor_id: 1,
    date: '2020-10-10',
    status: InvoiceStatus::Sent,
    customer_name: 'Dev test',
    invoice_lines: new InvoiceLineDtoCollection([
        new InvoiceLineDto(
            name: 'test item',
            unit_price_tax_included: 100,
            quantity: 1
        )
    ]),
    customer_email: 'test@test.com'
));
        
$invoice->send();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-11