PHPackages                             dvids/api-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. dvids/api-client

ActiveLibrary[File &amp; Storage](/categories/file-storage)

dvids/api-client
================

Client for the DVIDS (Defense Video &amp; Imagery Distribution System) APIs

0.0.1(7mo ago)02MITPHPPHP ^8.2

Since Oct 1Pushed 7mo agoCompare

[ Source](https://github.com/DVIDSHUB/php-api-client)[ Packagist](https://packagist.org/packages/dvids/api-client)[ RSS](/packages/dvids-api-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

DVIDS API Client for PHP
========================

[](#dvids-api-client-for-php)

A modern PHP client library for the DVIDS (Defense Video &amp; Imagery Distribution System) Content Submission API, built with PHP 8.2+ features including readonly classes, enums, named parameters, and strong typing.

Features
--------

[](#features)

- **Modern PHP 8.2+ Syntax**: Utilizes readonly classes, enums, union types, and named parameters
- **OAuth2 Authentication**: Full support for DVIDS OAuth2 authentication flow
- **Type Safety**: Comprehensive type hints and data models for all API responses
- **Immutable Design**: Immutable client instances for thread safety
- **Resource Clients**: Dedicated clients for different API resources (Authors, Batches, etc.)
- **File Uploads**: Support for both simple and multipart file uploads
- **Error Handling**: Specific exception types for different HTTP status codes
- **PSR-4 Autoloading**: Standard PHP autoloading support

Installation
------------

[](#installation)

```
composer require dvids/api-client "^0.0"
```

### Requirements

[](#requirements)

- PHP 8.2 or higher
- `ext-json` extension
- `ext-openssl` extension

Quick Start
-----------

[](#quick-start)

### Basic Usage

[](#basic-usage)

### OAuth2 Authentication

[](#oauth2-authentication)

```
