cyberfusion/oxxa 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

cyberfusion/oxxa

最新稳定版本:v2.14

Composer 安装命令:

composer require cyberfusion/oxxa

包简介

PHP client for Oxxa API

README 文档

README

PHP client for the Oxxa API.

Install

Composer

Run the following command to install the package from Packagist:

composer require cyberfusion/oxxa

Usage

Getting started

// Initialize the API
$oxxa = new Oxxa($username, $password);

// Perform calls to an endpoint
$available = $oxxa
    ->domain()
    ->check('cyberfusion.nl');

Test mode

To test your implementation, use the test mode. All requests tell the Oxxa API that the request is a test.

Enable:

$oxxa->enableTestMode();

Disable:

$oxxa->disableTestMode();

Mock server

When testing with a mock server, you will be able to modify the base URL of the API with:

$oxxa->setBaseUri('http://localhost:8080');

This will return the Oxxa instance, so you can chain it with other methods.

Exceptions

In case of errors, the client throws exceptions using the OxxaException as base class. All exceptions have a specific code. These can be found in the OxxaException class.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-04