定制 10quality/emizor-php-sdk 二次开发

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

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

10quality/emizor-php-sdk

最新稳定版本:v1.0.0

Composer 安装命令:

composer require 10quality/emizor-php-sdk

包简介

PHP SDK for the Emizor 5 REST API.

README 文档

README

Latest Stable Version GitHub Workflow Status Total Downloads License

PHP SDK for the Emizor 5 REST API with Guzzle transport, .env support, PHPUnit coverage, and static analysis.

Requirements

  • PHP ^8.2
  • Composer ^2

Features

  • Injectable SDK client under the Emizor namespace.
  • Guzzle-based HTTP transport with Emizor authentication headers.
  • Environment-backed configuration via EMIZOR_* variables.
  • Coverage for all endpoints documented in the bundled Emizor 5 REST API reference, including product management and parametric catalogs.
  • Enum support for documented API constants such as document and payment types.
  • PHPUnit and PHPStan integration for testing and code quality.

Installation

composer install

Or install the package in another project:

composer require 10quality/emizor-php-sdk

Environment Variables

EMIZOR_BASE_URL=https://{your-env}.emizor.com
EMIZOR_API_TOKEN=your-api-token
EMIZOR_API_SECRET=password

Quick Start

<?php

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

use Dotenv\Dotenv;
use Emizor\Emizor;

$dotenv = Dotenv::createImmutable(__DIR__);
$dotenv->safeLoad();

$emizor = Emizor::fromEnvironment();
$products = $emizor->products()->list();

print_r($products);

Available Endpoints

  • Verify NIT: verifyNit(string $nit)
  • Create client: clients()->create(array $payload)
  • Create invoice or prefactura: invoices()->create(array $payload, ?InvoiceOptions $options = null)
  • Generate QR for prefactura: invoices()->generateQr(array $invoiceIds, bool $publish = false)
  • Emit prefactura: invoices()->emitPrefactura(string $originId)
  • Check invoice status: invoices()->status(string $originId)
  • List products: products()->list(int $page = 1, string $filter = '')
  • Create product: products()->create(array $payload)
  • Update product: products()->update(string $productId, array $payload)
  • Delete product: products()->delete(string $productId)
  • List parametrica catalog: parametricas()->list(string $parametrica)

Docs

Quality Checks

composer analyse
composer test
composer test:coverage

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固