2017 © Pedro Peláez
 

library tiket-php

Tiket.com PHP Wrapper

image

mtasuandi/tiket-php

Tiket.com PHP Wrapper

  • Friday, October 30, 2015
  • by mtasuandi
  • Repository
  • 2 Watchers
  • 4 Stars
  • 54 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

Build Status, (*1)

Tiket.com PHP Library

Tiket.com PHP Library http://docs.tiket.com/., (*2)

Quickstart

Register for an API key for production here and for development here., (*3)

Installation

composer require mtasuandi/tiket-php dev-master

Environment

By default, the API will point to sandbox url. If you want to change to production, change Util/config.php., (*4)

From:, (*5)

'settings' => [
    'version' => '1.0',
    /**
     * Determine application environment
     * Development: api-sandbox
     * Production: api
     */
    'api' => 'api-sandbox'
    ]

To:, (*6)

'settings' => [
    'version' => '1.0',
    /**
     * Determine application environment
     * Development: api-sandbox
     * Production: api
     */
    'api' => 'api'
    ]

Usage Auth

<?php
require_once __DIR__ . '/../vendor/autoload.php';

use Mtasuandi\Tiket\Auth\TiketAuth;
use Mtasuandi\Tiket\Exceptions\AuthException;

$auth = new TiketAuth( 'API_KEY' );

try {
    $access_token = $auth->getToken();
    echo '

'; print_r( $access_token ); echo '
'; } catch (AuthException $e) { echo $e->getMessage(); }

License

The MIT License (MIT)., (*7)

The Versions

30/10 2015

dev-master

9999999-dev https://github.com/mtasuandi/tiket-php

Tiket.com PHP Wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

tiket.com api tiket.com tiket