designmynight/designmynight-php-sdk
最新稳定版本:v1.0.0-alpha.3
Composer 安装命令:
composer require designmynight/designmynight-php-sdk
包简介
DesignMyNight API v4 client
关键字:
README 文档
README
A simple Object Oriented wrapper for the DesignMyNight API, written with PHP.
More information can be found at DesignMyNight API.
Requirements
- PHP >= 7.0
- Guzzle library,
Install
The new version of designmynight-php-sdk using Composer.
The first step to use designmynight-php-sdk is to download composer:
$ curl -s http://getcomposer.org/installer | php
Then run the following command to require the library:
$ php composer.phar require designmynight-php-sdk
Laravel
Using Laravel? Add the service provider in config/app.php:
DesignMyNight/Laravel/DesignMyNightApiServiceProvider.php::class,
Basic usage of designmynight-php-sdk client
<?php // This file is generated by Composer require_once 'vendor/autoload.php'; $userId = ''; $apiKey = ''; $client = new \DesignMyNight\Client::create($userId, $apiKey); $venues = $client->api('venues')->all(); # This returns the same as the above $venues = $client->venues()->all();
You can access other DesignMyNight API endpoints through $client object
License
designmynight-php-sdk is licensed under the MIT License - see the LICENSE file for details.
统计信息
- 总下载量: 14.86k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-01