定制 asamirsherif/zatca-integration 二次开发

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

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

asamirsherif/zatca-integration

Composer 安装命令:

composer require asamirsherif/zatca-integration

包简介

Laravel package to Generate the QR code and Integrate with Tax APIs for Zatca E-invoicing

README 文档

README

Introduction

Laravel package to Integrate with ZATCA API servers and Generate the QR code signed and Validated for ZATCA E-invoicing

Currently In progress (only phase one done!)

Installation

To get the latest version of zatca-integration on your project, you can require it from "composer":

$ composer require asamirsherif/zatca-integration

Laravel

Register the provider directly in your app configuration file config/app.php config/app.php:

Laravel >= 5.5 provides package auto-discovery, you won't need to add it manaully

providers and facades will be add as

'providers' => [
    Asamirsherif\Zatca\ZatcaServiceProvider::class,
]
'aliases' => [
  'Zatca' => Asamirsherif\Zatca\Facades\Zatca::class,
]

Usage

Generate Base64

`use Asamirsherif\Zatca\Facades\Zatca;$base64 = Zatca::sellerName('Seller Name/اسم البائع')
            ->vatRegistrationNumber("123456789123456")
            ->timestamp("2022-07-04T13:00:09Z")
            ->totalWithVat('100.00')
            ->vatTotal('15.00')
            ->toBase64();

Render QR of TLV base64 encrypted

$qrCode = zatca()
            ->sellerName('اسم البائع/Seller Name')
            ->vatRegistrationNumber("123456789123456")
            ->timestamp("2022-07-01T14:00:09Z")
            ->totalWithVat('100.00')
            ->vatTotal('15.00')
            ->toQrCode(
              qrCodeOptions()
                ->format("svg")
                ->color(255,0,0,1)
                ->size(300)
            );

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固