Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uala-developers/ualabis-php
Official Ualá Bis PHP SDK: https://packagist.org/packages/uala-bis/ualabis-php
https://github.com/uala-developers/ualabis-php
api-checkout checkout php sdk uala ualabis
Last synced: about 2 months ago
JSON representation
Official Ualá Bis PHP SDK: https://packagist.org/packages/uala-bis/ualabis-php
- Host: GitHub
- URL: https://github.com/uala-developers/ualabis-php
- Owner: Uala-Developers
- License: mit
- Created: 2022-10-27T14:02:45.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-21T12:43:23.000Z (almost 2 years ago)
- Last Synced: 2024-11-11T05:59:01.010Z (2 months ago)
- Topics: api-checkout, checkout, php, sdk, uala, ualabis
- Language: PHP
- Homepage: https://uala-developers.github.io/ualabis-php/
- Size: 11.6 MB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ualabis-php
Official PHP SDK for Ualá Bis API Checkout
SDK PHP oficial de Ualá Bis API Checkout
## Content
- [Installation](#installation) | [Instalación](#instalación)
- [Functions](#functions) | [Funciones](#funciones)
- [Usage](#usage) | [Uso](#uso)
- [Test](#test) | [Prueba](#prueba)
- [API Checkout Docs](#api-checkout-docs)## Installation
Install the package with:
```sh
composer require uala-bis/ualabis-php
```## Functions
List of all functions:
- createOrder
- getOrder
- getFailedNotifications## Usage
Instantiate the Ualá Bis SDK class:
```php
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```:
```sh
composer install
```
Start mock API server:
```sh
npx mockoon-cli start --data ./tests/dataMockTest.json
```or if you want to install it globally:
```sh
npm install -g @mockoon/cli
mockoon-cli start --data ./tests/dataMockTest.json
```
Run coverage:
```sh
composer coverage
```We use ```XDebug``` for coverage report, is necessary to install it: [how to install Xdebug](https://xdebug.org/docs/install)
# Español
## Instalación
Instale el paquete con el siguiente comando:
```sh
composer require uala-bis/ualabis-php
```## Funciones
Listado de todas las funciones:
- createOrder
- getOrder
- getFailedNotifications## Uso
Instancia la clase de Ualá Bis SDK:
```php
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```:
```sh
composer install
```
Inicia la API mockeada:
```sh
npx mockoon-cli start --data ./tests/dataMockTest.json
```
o si queres instalarlo de forma global:
```sh
npm install -g @mockoon/cli
mockoon-cli start --data ./tests/dataMockTest.json
```
Ejecuta el coverage:
```sh
composer coverage
```Usamos ```XDebug``` para los reportes de coverage, es necesario que lo instales: [cómo instalar Xdebug](https://xdebug.org/docs/install)
## API Checkout Docs
Also, you can show Api Checkout Documentation in https://developers.ualabis.com.ar