PHPackages                             cv-api/cv-api - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cv-api/cv-api

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cv-api/cv-api
=============

A powerful PHP library supporting Computer Vision manipulations

v1.0(7y ago)0671MITPHPPHP &gt;=5.3.0

Since Jul 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/arianajdari/PHP_CVApi)[ Packagist](https://packagist.org/packages/cv-api/cv-api)[ RSS](/packages/cv-api-cv-api/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[![Our Logo](https://camo.githubusercontent.com/c3b29641cc8544b6e111d8f27ee9afc7325c6bd0cb41084966606becb4851490/68747470733a2f2f696d6167652e6962622e636f2f63764a7743362f43564170695f4c6f676f322e706e67)](https://camo.githubusercontent.com/c3b29641cc8544b6e111d8f27ee9afc7325c6bd0cb41084966606becb4851490/68747470733a2f2f696d6167652e6962622e636f2f63764a7743362f43564170695f4c6f676f322e706e67)

[![Packagist](https://camo.githubusercontent.com/9706c8fc74d7db96f121ec88c999e81a07f3dbf03756829a8d3bc6b6a45decd7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63762d6170692f63762d6170692e737667)](https://packagist.org/packages/cv-api/cv-api)[![Packagist](https://camo.githubusercontent.com/ebeea97914a44acfd12910ea15a48176504f408de3a6674c6b90b6c9c8de02ef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f63762d6170692f63762d6170692e737667)](https://packagist.org/packages/cv-api/cv-api)

CVApi
=====

[](#cvapi)

CVAPi library is built entirely in PHP to bring the power of computer vision into web development. Under the hood of CVAPi lies [OpenCV](https://opencv.org/), which is used extensively for computer vision applications.

Why use CVApi
-------------

[](#why-use-cvapi)

- Save your time by not having to worry about different versions and implementations of [OpenCV](https://opencv.org/)
- Easily integrate this API into any existing PHP Project, or use it in any popular framework such as [Laravel](https://laravel.com/) or [Symfony](https://symfony.com/)
- Our up-to-date documentation provides thorough instructions for each operations
- Computer Vision related heavy calculations are handled by our servers
- **...and many more**

Version Compatability
---------------------

[](#version-compatability)

- CVApi is compatible with PHP5.6 and above
- CVApi supports most image file extensions
- There are no known dependency conflicts

Getting Started
---------------

[](#getting-started)

Firstly, make sure you have Composer installed in your system. You can acquire it by clicking [here](https://getcomposer.org/)

After that, you can require CVAPi by writing out this command in terminal

```
$ composer require cv-api/cv-api
```

As Composer is done fetching necessary dependencies, make sure to register for an account in [CVApi](#)After the confirmation e-mail, open the **config** file inside **vendor/CVApi** and edit these settings

```
"public_key" => "your-public-key",
"secret_key" => "your-secret-key",
"password" => "your-password",
"path" => "your-path-to-storage"
```

In the end we can test whether CVApi is configured properly by trying out this piece of code

```
require_once __DIR__ . 'path_to_autoload_file.php';

use CVApi/CVApi;

CVApi::test();
```

If you receive the welcome message, you are good to go

Examples
--------

[](#examples)

Using CVApi is fairly straightforward. For example, we would like to save a grayscale version of our image. In order to do this you have to type:

```
CVApi::make(['old_image.jpg'])->grayscale()->results(function($new_image) { $new_image->save(); });
```

As we can see, all methods in CVApi are chainable. We can perform more than one operation at onceP

```
CVApi::make(['old_image.jpg'])
	->resize(300, 300)
	->brightness(85)
	->histogram(['B', 'G', 'R'])
	->results(function($new_images) {
		$new_images->save();
	->results(function($images) {
		$images->save();
});
```

CVApi is automatically configured to understand the source of the images. If we leave the **make** argument empty, CVApi automatically looks for images coming from form requests.

```
CVApi::make()->pyrDown(3)->results(function($image) { $image->save(); });
```

License
-------

[](#license)

This software is licensed under [MIT](https://opensource.org/licenses/MIT) License

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2907d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18193125?v=4)[Arian Ajdari](/maintainers/arianajdari)[@arianajdari](https://github.com/arianajdari)

---

Top Contributors

[![arianajdari](https://avatars.githubusercontent.com/u/18193125?v=4)](https://github.com/arianajdari "arianajdari (6 commits)")

### Embed Badge

![Health badge](/badges/cv-api-cv-api/health.svg)

```
[![Health](https://phpackages.com/badges/cv-api-cv-api/health.svg)](https://phpackages.com/packages/cv-api-cv-api)
```

###  Alternatives

[zetacomponents/base

The Base package provides the basic infrastructure that all packages rely on. Therefore every component relies on this package.

368.1M56](/packages/zetacomponents-base)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
