PHPackages                             hernol/uploadthing-php - 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. [API Development](/categories/api)
4. /
5. hernol/uploadthing-php

ActiveLibrary[API Development](/categories/api)

hernol/uploadthing-php
======================

A high-quality PHP client for the UploadThing v6 REST API

2.0.1(2mo ago)2146↓50%[5 issues](https://github.com/hernol/uploadthing-php/issues)MITPHPPHP ^8.1CI failing

Since Nov 4Pushed 2mo agoCompare

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

READMEChangelog (5)Dependencies (9)Versions (5)Used By (0)

UploadThing PHP Client - Laravel Package
========================================

[](#uploadthing-php-client---laravel-package)

A simplified, Laravel-focused PHP client for the UploadThing v6 REST API.

[![CI](https://github.com/hernol/uploadthing-php/workflows/CI/badge.svg)](https://github.com/hernol/uploadthing-php/actions)[![PHP Version](https://camo.githubusercontent.com/5d3a8e1f70d302f04d4cc53c8f2f50690db1d05753a6fe891551e0e48860b48c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6865726e6f6c2f75706c6f61647468696e672d706870)](https://packagist.org/packages/hernol/uploadthing-php)[![Latest Version](https://camo.githubusercontent.com/bc2e39112a494fdd0af41a1d18d2c57e6176d4d35dd85782dce983bf7a982553/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6865726e6f6c2f75706c6f61647468696e672d706870)](https://packagist.org/packages/hernol/uploadthing-php)[![License](https://camo.githubusercontent.com/755ec9afda2a9fa57d457fdf50d06e233aa43d5c70e1b1d8097021951bc2f66a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6865726e6f6c2f75706c6f61647468696e672d706870)](https://packagist.org/packages/hernol/uploadthing-php)

Features
--------

[](#features)

- ✅ **V6 API Compatible**: Uses UploadThing v6 `/uploadFiles` endpoint
- ✅ **Type-safe**: Full PHP 8.1+ type declarations and strict typing
- ✅ **Laravel-focused**: Designed specifically for Laravel applications
- ✅ **Environment-based configuration**: Simple configuration via environment variables
- ✅ **File uploads**: Upload files using presigned S3 URLs
- ✅ **Webhook verification**: HMAC-SHA256 signature validation with timestamp tolerance
- ✅ **Simple API**: Clean, straightforward interface

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

[](#quick-start)

### Installation

[](#installation)

```
composer require hernol/uploadthing-php
```

### Configuration

[](#configuration)

Set your environment variables in your `.env` file:

```
UPLOADTHING_API_KEY=ut_sk_your_api_key_here
UPLOADTHING_BASE_URL=https://api.uploadthing.com
UPLOADTHING_API_VERSION=v6
UPLOADTHING_TIMEOUT=30
UPLOADTHING_CALLBACK_URL=https://your-app.com/webhook
UPLOADTHING_CALLBACK_SLUG=your-slug
```

### Basic Usage

[](#basic-usage)

#### Upload a File

[](#upload-a-file)

```
