This repository provides PHP SDK for working with the Capella API
$ composer require codex-team/capella
Or just clone this repository and include src/Capella.php
to your bootstrap file.
First, read CodeX Capella documentation.
use \Capella\Capella;
$image = Capella::upload('path-or-url-to-your-picture');
$url = $image->url();
use \Capella\Capella;
$image = Capella::image('abcdef-1234-abcd-1234');
use \Capella\Capella;
$image = Capella::upload('picture.jpg');
$url = $image->resize(100)->url();
echo $url; // https://capella.pics/<id>/resize/100
$url = $image->crop(100, 200);
echo $url; // https://capella.pics/<id>/crop/100x200
CodeX Capella documentation
Full PHP SDK documentation
php >= 5.6
php-curl
Ask a question or report a bug on the create issue page.
Know how to improve PHP SDK for Capella? Fork it and send pull request.
You can also write questions and suggestions to the CodeX Team’s email.
CodeX Team – ifmo.su