定制 tigron/peppyrus-api-php 二次开发

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

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

tigron/peppyrus-api-php

最新稳定版本:v0.0.7

Composer 安装命令:

composer require tigron/peppyrus-api-php

包简介

Peppyrus PHP API client

README 文档

README

Requirements

To use Peppyrus API client, the following things are required:

  • Create a free Peppyrus account
  • Register your Participant ID
  • PHP >= 7.4
  • cUrl >= 7.19.4

Installation

via composer:

composer require tigron/peppyrus-api-php

Howto

Authentication

Make sure you set the API key:

\Peppyrus\Api\Config::$key = 'YOUR_API_KEY';

In case you want to use the test API, please change the Endpoint to:

\Peppyrus\Api\Config::$endpoint = 'https://api.test.peppyrus.be';

Peppol search operations

Lookup participant capabilities in SMP. This will return a list of document types that are supported by the participant.

$response = Peppyrus\Api\Peppol::lookup('iso6523-actorid-upis', '9925:be0886776275');

Search a Participant in the Peppol directory based on search parameters.

$parameters = [ 'query' => 'peppyrus' ];
$response = Peppyrus\Api\Peppol::search($parameters);

The following parameters are available:

parameter Description
query Generic query term
participantId Searches for exact matches in the Peppol participant identifier field (the identifier scheme must be part of the value)
name Searches for partial matches in business entity names
country Searches for exact matches in business entity country codes (ISO-2 code)
geoInfo Searches for partial matches in the geographical information
identifierScheme Searches for exact matches in the additional identifier schemes. Combine it with identifierValue for fine grained search results.
identifierValue Searches for exact matches in the additional identifier values. Combine it with identifierScheme for fine grained search results.
contact Searches for partial matches in the business entity contact information. It searches in all sub-fields of contact (type, name, phone number and email address).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-06-11