承接 picatic/php-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

picatic/php-api

Composer 安装命令:

composer require picatic/php-api

包简介

PHP Wrapper to access the Picatic API

README 文档

README

What you need to know

  • Everything has an interface, everything is pluggable
  • We avoid statics for almost everything to make testing easier
  • There are some odd wrapping functions/classes as a result of our adversion to static methods
  • We break the ideal that static and instance methods operate on those levels.

Our "static" methods are prefixed with "class": classRateLookup

In some special cases, we prefix instance methods with "instance". Usually only when there is a similarly named "class" method.

Composer

You can include the latest version of this package by adding "picatic/php-api": "dev-master" to your "require".

How to Use

Get an instance of the API:

$picaticInstance = PicaticAPI::instance();

Configure API with your key:

$picaticInstance->setApiKey('sk_live_123');

Find an Event:

$event = PicaticAPI::instance()->factory()->modelCreate('Event')->find(34641);

This returns an instance of Picatic_Event model. If you want to work with it as an associative array, you can call getValues to return an associative array.

$eventAssoc = $event->getValues();

Find a bunch of events:

$events = PicaticAPI::instance()->factory()->modelCreate('Event')->findAll(array('user_id'=>6679));

Update an event:

$event['description'] = 'This is going to rock';
$event->save();

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-06-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固