depositphotos / api-sdk-php
PHP SDK for Depositphotos API
v1.0.0
2022-07-22 08:54 UTC
Requires
- php: >=7.1
- ext-json: *
- guzzlehttp/guzzle: ^7.4
Requires (Dev)
- phpstan/phpstan: ^1.2
- phpunit/phpunit: ^9.5
This package is not auto-updated.
Last update: 2024-11-27 00:36:01 UTC
README
Requirements
- PHP 7.1 or greater
ext-curl
ext-json
Installation
The Depositphotos PHP SDK can be installed through Composer.
composer require depositphotos/api-sdk-php
Usage
require 'vendor/autoload.php';
use Depositphotos\SDK\Client; use Depositphotos\SDK\Resource\Regular\User\Request\LoginRequest; $client = Client::createRegularClient('apiKey'); $request = new LoginRequest('username', 'password'); $response = $client->user()->login($request); echo $response->getSessionId();