designmynight / designmynight-php-sdk
DesignMyNight API v4 client
Installs: 8 843
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 7
Forks: 0
Open Issues: 0
Requires
- php: ^7.0
- guzzlehttp/guzzle: ^6.3
This package is auto-updated.
Last update: 2024-12-20 19:51:29 UTC
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.