Download the PHP package catlabinteractive/central-storage-client without Composer
On this page you can find all versions of the php package catlabinteractive/central-storage-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download catlabinteractive/central-storage-client
More information about catlabinteractive/central-storage-client
Files in catlabinteractive/central-storage-client
Package central-storage-client
Short Description Client for CatLab central storage.
License MIT
Informations about the package central-storage-client
Central Storage Laravel Client
Central Storage is a storage engine built in Laravel. It includes duplicate upload detection, supports on the fly image (but cached) image resize and allows you to set 'Processors' that handle more complex file transformations like video transcoding etc.
Setup
Please follow the setup instructions described in the central storage project page to setup to storage system. Once that has been setup, you can include this library in your project to start storing assets.
Installation
Central Storage provides a standard REST API and is consumable by any language or framework.
Install via composer:
Usage
Initialize the client with your Central Storage server URL and credentials:
The store() method accepts:
- A file path (string) or
SplFileInfoobject as the first argument - An optional filename (defaults to the original filename)
- Optional attributes array (e.g., metadata like publisher)
- Optional server, key, and secret overrides
Version 2.0 Breaking Changes
Requirements: PHP >= 8.1
Removed features:
- Laravel ServiceProvider, Facade, and Eloquent Asset integration removed (stay on v1.x for Laravel projects)
- Database migration for Asset model no longer provided
- Eloquent Asset instance methods
getUrl()anddelete()removed sign(),isValid(), andfromConfig()methods removed; usesignParameters()andisValidParameters()instead
API Changes:
store()now takes a file path (string) orSplFileInfoobject directly, plus optional filename