PHPackages                             pixaven/pixaven-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. [Image &amp; Media](/categories/media)
4. /
5. pixaven/pixaven-php

ActiveLibrary[Image &amp; Media](/categories/media)

pixaven/pixaven-php
===================

Official PHP integration for the Pixaven Image API - enterprise-grade image processing SaaS running entirely on Apple® platform. Resize, scale, crop, mask, filter and enhance your images with blazing speed.

1.0.2(6y ago)14MITPHPPHP &gt;=5.3.0

Since Oct 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/pixaven/pixaven-php)[ Packagist](https://packagist.org/packages/pixaven/pixaven-php)[ Docs](https://www.pixaven.com)[ RSS](/packages/pixaven-pixaven-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

[![Pixaven](media/readme-header.png "Pixaven: GPU-powered Image Processing Platform")](https://www.pixaven.com)

Pixaven is a modern, GPU-powered image processing API.
We transform, enhance, adjust, crop, stylize, filter and watermark your images with blazing speed.

---

**The official PHP integration for the Pixaven API.**

[![](https://camo.githubusercontent.com/ac321d726231af406ef99239a12447e3e00f5944fe7c7d31eb4f4e2c4150be37/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d7261772f7069786176656e2f7069786176656e2d7068703f7374796c653d666c617426636f6c6f723d73756363657373)](https://camo.githubusercontent.com/ac321d726231af406ef99239a12447e3e00f5944fe7c7d31eb4f4e2c4150be37/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d7261772f7069786176656e2f7069786176656e2d7068703f7374796c653d666c617426636f6c6f723d73756363657373)[![](https://camo.githubusercontent.com/b38689b83722c1fa01f94ae7910cfa5f4fec8bf73d023ebbde71af77ff939c46/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7069786176656e2f7069786176656e2d7068703f7374796c653d666c617426636f6c6f723d73756363657373)](https://camo.githubusercontent.com/b38689b83722c1fa01f94ae7910cfa5f4fec8bf73d023ebbde71af77ff939c46/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7069786176656e2f7069786176656e2d7068703f7374796c653d666c617426636f6c6f723d73756363657373)[![](https://camo.githubusercontent.com/a74ce52987497605e093c5fd033abe376084ddb811d2c9fd479df189fff30499/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f7069786176656e3f6c6162656c3d466f6c6c6f772532305573267374796c653d666c617426636f6c6f723d73756363657373266c6f676f3d74776974746572)](https://camo.githubusercontent.com/a74ce52987497605e093c5fd033abe376084ddb811d2c9fd479df189fff30499/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f7069786176656e3f6c6162656c3d466f6c6c6f772532305573267374796c653d666c617426636f6c6f723d73756363657373266c6f676f3d74776974746572)

---

### Documentation

[](#documentation)

See the [Pixaven API docs](https://docs.pixaven.com/).

### Installation

[](#installation)

```
$ composer require pixaven/pixaven-php
```

### Quick examples

[](#quick-examples)

Pixaven API enables you to provide your images for processing in two ways - by uploading them directly to the API ([Image Upload](https://docs.pixaven.com/requests/image-upload)) or by providing a publicly available image URL ([Image Fetch](https://docs.pixaven.com/requests/image-fetch)).

You may also choose your preferred [response method](https://docs.pixaven.com/introduction#choosing-response-method-and-format) on a per-request basis. By default, the Pixaven API will return a [JSON response](https://docs.pixaven.com/responses/json-response-format) with rich metadata pertaining to input and output images. Alternatively, you can use [binary responses](https://docs.pixaven.com/responses/binary-responses). When enabled, the API will respond with a full binary representation of the resulting (output) image. This PHP integration exposes two convenience methods for interacting with binary responses: `toFile()` and `toBuffer()`.

#### Image upload

[](#image-upload)

Here is a quick example of uploading a local file for processing. It calls `toJSON()` at a final step and instructs the API to return a JSON response.

```
