2017 © Pedro PelĆ”ez
 

sdk sdk-php

Wasi SDK PHP

image

wasico/sdk-php

Wasi SDK PHP

  • Saturday, July 28, 2018
  • by wasico
  • Repository
  • 1 Watchers
  • 1 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 25 Versions
  • 0 % Grown

The README.md

Wasi SDK PHP

You can sign up for a Wasi account at https://wasi.co and get your id_company and wasi_token, (*1)

Requirements

PHP 7.1.* and later., (*2)

Installation

Composer

You can install the bindings via Composer. Run the following command:, (*3)

composer require wasico/sdk-php

To use the bindings, use Composer's autoload:, (*4)

require_once('vendor/autoload.php');

Or add manually to your composer.json file for constant update, (*5)

"wasico/sdk-php": ">=0.0.1"

First configuration

Set your configuration only one time in execution time, (*6)

\Wasi\SDK\Configuration::set([
    'v'          => 1, //API version here
    'id_company' => 123456, //Your id_company here
    'wasi_token' => 'AbCd_eFgH_IjKl_MnOp', //Your WasiToken here
]);

Usage

Use Wasi models (\Wasi\SDK\Models) for get Objects of the API, (*7)

Find one element

#Replace 123456 with the id_property
$property = \Wasi\SDK\Models\Property::find(123456);

Filter and get elements

#Use API filters in the 'where' method
$properties = \Wasi\SDK\Models\Property::where('title', 'Hotel')->get();

Create an element

$customer = new \Wasi\SDK\Models\Customer();
$customer->id_user = 123;
$customer->id_country = 1;
$customer->id_region = 26;
$customer->id_city = 63;
$customer->first_name = "Jose W";
$customer->save()
#Now you can get id_client:
$id_client = $customer->id_client;

Update an element

$customer = \Wasi\SDK\Models\Customer::find(4321);
$customer->last_name = 'Capera';
$customer->save()

The Versions

28/07 2018

dev-master

9999999-dev

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

28/07 2018

v0.5.2

0.5.2.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

27/07 2018

v0.5.1

0.5.1.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

27/07 2018

v0.5.0

0.5.0.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

25/07 2018

v0.4.5

0.4.5.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

24/07 2018

v0.4.4

0.4.4.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

23/07 2018

v0.4.1

0.4.1.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

22/07 2018

v0.4.0

0.4.0.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

20/07 2018

v0.3.6

0.3.6.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

18/07 2018

v0.3.4

0.3.4.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

18/07 2018

v0.3.3

0.3.3.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

17/07 2018

v0.3.1

0.3.1.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

14/07 2018

v0.3.0

0.3.0.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

08/07 2018

v0.2.8

0.2.8.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

08/07 2018

v0.2.9

0.2.9.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

04/07 2018

v0.2.7

0.2.7.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

02/07 2018

v0.2.6

0.2.6.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

02/07 2018

v0.2.4

0.2.4.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

28/06 2018

v0.2.1

0.2.1.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

28/06 2018

v0.1.9

0.1.9.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

25/06 2018

v0.1.5

0.1.5.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

22/06 2018

v0.1.0

0.1.0.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

14/06 2018

v0.0.3

0.0.3.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

11/06 2018

v0.0.2

0.0.2.0

Wasi SDK PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

10/06 2018

v0.0.1

0.0.1.0

Wasi SDK PHP

  Sources   Download

The Wasi SDK is open-sourced software licensed under the MIT license.

The Requires

  • php >=7.0.0