2017 © Pedro Peláez
 

library stamplia-php

A PHP client for the Stamplia API

image

stamplia/stamplia-php

A PHP client for the Stamplia API

  • Monday, September 14, 2015
  • by stamplia
  • Repository
  • 4 Watchers
  • 7 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

SensioLabsInsight Codeship Status for Stamplia/stamplia-php, (*1)

stamplia-php

A PHP library to access the Stamplia API. It requires PHP 5.4+., (*2)

Setup

Using composer you can add the following to your composer.json file:, (*3)

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/Stamplia/stamplia-php.git"
    }
],
"require": {
    "php": ">=5.4.0",
    "Stamplia/stamplia-php": "~1.0"
},
"minimum-stability": "stable",
"config": {
    "process-timeout": 3600
}

Then in your PHP code include the composer autoloader, something similar to this:, (*4)

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

Usage

To instantiate the client it's pretty straightforward:, (*5)

$client = new \Stamplia\ApiClient();

Here's how to list templates available on our marketplace:, (*6)

$templates = $client->getTemplates();

All method parameters need to be set within a single array as the function parameter., (*7)

To log in and then be able to access private methods (user methods):, (*8)

$client->login(array(
    'email'         => '**',
    'password'      => '**',
    'app_id'        => '**',
    'app_secret'    => '**'
));

To see all methods available with this ApiClient you can use the following tool from the command line:, (*9)

php doc.php | more

Please read our API documentation for a more precise description of the parameters that each method accepts and their response., (*10)

The Versions

14/09 2015

dev-master

9999999-dev

A PHP client for the Stamplia API

  Sources   Download

MIT

The Requires

 

14/09 2015

v1.0.1

1.0.1.0

A PHP client for the Stamplia API

  Sources   Download

MIT

The Requires

 

14/09 2015

v1.0.0

1.0.0.0

A PHP client for the Stamplia API

  Sources   Download

MIT

The Requires