carltonsoftware/tabs2-php-client

This package is abandoned and no longer maintained. No replacement package was suggested.

Tabs 2 PHP Client

0.0.31 2019-05-22 10:09 UTC

README

Getting Started

To get started with this project you will need to install the client via composer..

Installing via composer

  1. Create a composer.json where you want to install the project

  2. Add the following:

    {
        "repositories": [{
            "type": "vcs",
            "url": "git@github.com:carltonsoftware/tabs2-php-client.git"
        }],
        "require": {
            "carltonsoftware/tabs2-php-client": "dev-master"
        }
    }
  3. Download composer and install the repo:

    curl -sS https://getcomposer.org/installer | php
    ./composer.phar install
    
  4. Create a new php file in your directory and insert the following code. You should see the a property output when you run the file!

    <?php
    
    require_once __DIR__ . '/vendor/autoload.php';
    
    \tabs\apiclient\client\Client::factory(
        'https://apiurl/v2/', // Api Url: this will be provided to you.
                              // NOTE: This url should end in '/v2/'
        'abc', // Api username: this will be provided to you
        'def', // Api password: this will be provided to you
        '14_hij', // Api client key: this will be provided to you
        'klm'  // Api client secret: this will be provided to you
    );
    
    $prop = new \tabs\apiclient\Property(1);
    $prop->get();
    
    echo $prop->getName();