stamplia/stamplia-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

stamplia/stamplia-php

最新稳定版本:v1.0.1

Composer 安装命令:

composer require stamplia/stamplia-php

包简介

A PHP client for the Stamplia API

README 文档

README

SensioLabsInsight Codeship Status for Stamplia/stamplia-php

stamplia-php

A PHP library to access the Stamplia API. It requires PHP 5.4+.

Setup

Using composer you can add the following to your composer.json file:

"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:

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

Usage

To instantiate the client it's pretty straightforward:

$client = new \Stamplia\ApiClient();

Here's how to list templates available on our marketplace:

$templates = $client->getTemplates();

All method parameters need to be set within a single array as the function parameter.

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

$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:

php doc.php | more

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

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-11