place/place-php

用于与Place API交互的PHP库

dev-master 2018-08-14 20:13 UTC

This package is not auto-updated.

Last update: 2024-09-19 09:41:57 UTC


README

用于与Place API交互的PHP库

安装

使用composer从GitHub安装

composer require place/place-api

要手动安装place-api,您可以下载源代码并将其包含在内

<?php
require_once('/path/to/place-php/import.php');
?>

基本用法

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

# set your api key
Place\Place::$api_key = "private_key_6fsMi3GDxXg1XXSluNx1sLEd";

# create an account
$account = Place\Account::create(array(
  'email'=>'joe.schmoe@example.com',
  'full_name'=>'Joe Schmoe',
  'user_type'=>'payer'
));
?>

文档

阅读文档