Skip to main content
The official PHP SDK provides an easy way to interact with Bunny Storage in your PHP applications.

Installation

Quickstart

Connect to your storage zone

Available regions:

List files

Returns an array of FileInfo objects. FileInfo properties:
  • getGuid() - Unique identifier
  • getName() - File name
  • getPath() - Directory path
  • getSize() - File size in bytes
  • getChecksum() - File checksum
  • getDateCreated() - Creation date
  • getDateModified() - Last modification date
  • isDirectory() - Whether it’s a directory

Upload a file

Upload multiple files

Download a file

Get file info

Check if file exists

Delete a file

Delete multiple files

Examples

Explore complete working examples in the GitHub repository:

Resources