uala-bis/ualabis-php
最新稳定版本:1.0.1
Composer 安装命令:
composer require uala-bis/ualabis-php
包简介
Ualá Bis PHP SDK for API Checkout
README 文档
README
Official PHP SDK for Ualá Bis API Checkout
SDK PHP oficial de Ualá Bis API Checkout
Content
Installation
Install the package with:
composer require uala-bis/ualabis-php
Functions
List of all functions:
- createOrder
- getOrder
- getFailedNotifications
Usage
Instantiate the Ualá Bis SDK class:
<?php require_once('../vendor/autoload.php'); use Uala\SDK; //if you want to test the sdk, set isDev w/ true value. FALSE by default if not specified $sdk = new SDK('your_username', 'your_client_id', 'your_client_secret_id', true); $order = $sdk->createOrder(11, 'test', 'https://www.google.com/', 'https://www.google.com/'); $generatedOrder = $sdk->getOrder($order->uuid); ?>
Test
We use PHPUnit and Mockoon to run internal mock API:
Install all dependencies from composer.json:
composer install
Start mock API server:
npx mockoon-cli start --data ./tests/dataMockTest.json
or if you want to install it globally:
npm install -g @mockoon/cli mockoon-cli start --data ./tests/dataMockTest.json
Run coverage:
composer coverage
We use XDebug for coverage report, is necessary to install it: how to install Xdebug
Español
Instalación
Instale el paquete con el siguiente comando:
composer require uala-bis/ualabis-php
Funciones
Listado de todas las funciones:
- createOrder
- getOrder
- getFailedNotifications
Uso
Instancia la clase de Ualá Bis SDK:
<?php require_once('../vendor/autoload.php'); use Uala\SDK; //si queres probar el SDK, configura el valor isDev con valor true. Es false por defecto si no es especificado $sdk = new SDK('your_username', 'your_client_id', 'your_client_secret_id', true); $order = $sdk->createOrder(11, 'test', 'https://www.google.com/', 'https://www.google.com/'); $generatedOrder = $sdk->getOrder($order->uuid); ?>
Test
Usamos PHPUnit y Mockoon para correr un mock interno de una API:
Instala todas las dependencias de composer.json:
composer install
Inicia la API mockeada:
npx mockoon-cli start --data ./tests/dataMockTest.json
o si queres instalarlo de forma global:
npm install -g @mockoon/cli mockoon-cli start --data ./tests/dataMockTest.json
Ejecuta el coverage:
composer coverage
Usamos XDebug para los reportes de coverage, es necesario que lo instales: cómo instalar Xdebug
API Checkout Docs
Also, you can show Api Checkout Documentation in https://developers.ualabis.com.ar
统计信息
- 总下载量: 5.25k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-13
