GithubHelp home page GithubHelp logo

codex-team / capella.php Goto Github PK

View Code? Open in Web Editor NEW
5.0 23.0 1.0 42 KB

PHP SDK for CodeX Capella project

License: MIT License

PHP 100.00%
images image-upload uploader upload-pictures image-filters crop-image thumbnails

capella.php's Introduction

PHP SDK for CodeX Capella

This repository provides PHP SDK for working with the Capella API

Installation

$ composer require codex-team/capella

Or just clone this repository and include src/Capella.php to your bootstrap file.

Usage

First, read CodeX Capella documentation.

Uploading

use \Capella\Capella;

$image = Capella::upload('path-or-url-to-your-picture');

$url = $image->url();

More

Get image by known id

use \Capella\Capella;

$image = Capella::image('abcdef-1234-abcd-1234');

More

Working with filters

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

More

Docs

CodeX Capella documentation

Full PHP SDK documentation

Requirements

php >= 5.6
php-curl

Contribution

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.

License

MIT

Contacs

CodeX Team – ifmo.su

capella.php's People

Contributors

gohabereg avatar talyguryn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

humanskin

capella.php's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.