PHPackages                             hymns/microsoft-cognitive-vision - 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. [API Development](/categories/api)
4. /
5. hymns/microsoft-cognitive-vision

ActiveLibrary[API Development](/categories/api)

hymns/microsoft-cognitive-vision
================================

PHP client library for Vision module in Microsoft Cognitive Services

v1.3(3y ago)0981MITPHPPHP &gt;=7.1

Since Oct 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hymns/microsoft-cognitive-vision)[ Packagist](https://packagist.org/packages/hymns/microsoft-cognitive-vision)[ Docs](https://github.com/hymns/microsoft-cognitive-vision)[ RSS](/packages/hymns-microsoft-cognitive-vision/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Microsoft Cognitive Vision Service APIs Client Library for PHP
==============================================================

[](#microsoft-cognitive-vision-service-apis-client-library-for-php)

[![Latest Stable Version](https://camo.githubusercontent.com/6609719a5f0124a0f51a31456585fce253d7ac9778334c15496fb1d92cce84ce/68747470733a2f2f706f7365722e707567782e6f72672f68796d6e732f6d6963726f736f66742d636f676e69746976652d766973696f6e2f762f737461626c65)](https://packagist.org/packages/hymns/microsoft-cognitive-vision)[![Total Downloads](https://camo.githubusercontent.com/ccb75030d923400467d7e8ca81af7fdcde87a3ca6b6b0a630c1836ebc5442a62/68747470733a2f2f706f7365722e707567782e6f72672f68796d6e732f6d6963726f736f66742d636f676e69746976652d766973696f6e2f646f776e6c6f616473)](https://packagist.org/packages/hymns/microsoft-cognitive-vision)[![License](https://camo.githubusercontent.com/3c68be963f1c112f67585a08b560450b55d965a3bdf9b7e7a400a6219aa91684/68747470733a2f2f706f7365722e707567782e6f72672f68796d6e732f6d6963726f736f66742d636f676e69746976652d766973696f6e2f6c6963656e7365)](https://packagist.org/packages/hymns/microsoft-cognitive-vision)

The cloud-based Vision API provides developers with access to advanced image algorithms. Microsoft Vision algorithms enable OCR attribute detection.

Requirements
------------

[](#requirements)

- [PHP 7.1.0 or higher](http://www.php.net/)

Installation
------------

[](#installation)

You can use **Composer** or simply **Download the Release**

### Composer

[](#composer)

The preferred method is via [composer](https://getcomposer.org). Follow the [installation instructions](https://getcomposer.org/doc/00-intro.md) if you do not already have composer installed.

Once composer is installed, execute the following command in your project root to install this library:

```
composer require hymns/microsoft-cognitive-vision
```

Finally, be sure to include the autoloader:

```
require_once '/path/to/your-project/vendor/autoload.php';
```

### Download the Release

[](#download-the-release)

If you abhor using composer, you can download the package in its entirety. The [Releases](https://github.com/hymns/microsoft-cognitive-vision/releases) page lists all stable versions. Download any file with the name `microsoft-cognitive-vision-[RELEASE_NAME].zip` for a package including this library and its dependencies.

Uncompress the zip file you download, and include the autoloader in your project:

```
require_once '/path/to/microsoft-cognitive-vision/vendor/autoload.php';
```

Examples
--------

[](#examples)

### Analyze Image

[](#analyze-image)

```
// include your composer dependencies
require_once 'vendor/autoload.php';

$client = new \Hymns\MicrosoftCognitiveVision\Client('YOUR_APP_KEY', 'YOUR_REGION');
$vision  = $client->vision()->analyze('URL_IMAGE');

print_r($vision);
```

### Describe Image

[](#describe-image)

```
require_once 'vendor/autoload.php';

$client = new \Hymns\MicrosoftCognitiveVision\Client('YOUR_APP_KEY', 'YOUR_REGION');
$vision  = $client->vision()->describe('URL_IMAGE');

print_r($vision);
```

### Optical Character Recognition (OCR)

[](#optical-character-recognition-ocr)

```
require_once 'vendor/autoload.php';

$client = new \Hymns\MicrosoftCognitiveVision\Client('YOUR_APP_KEY', 'YOUR_REGION');
$vision  = $client->vision()->ocr('URL_IMAGE');

print_r($vision);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~491 days

Total

4

Last Release

1298d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/63188e5a567b1352306b9279475af9fa5d6730b0cbb9e24d6e12bfb3b75999e0?d=identicon)[hymns](/maintainers/hymns)

---

Top Contributors

[![hymns](https://avatars.githubusercontent.com/u/232046?v=4)](https://github.com/hymns "hymns (7 commits)")

---

Tags

apimicrosoftvisioncognitive

### Embed Badge

![Health badge](/badges/hymns-microsoft-cognitive-vision/health.svg)

```
[![Health](https://phpackages.com/badges/hymns-microsoft-cognitive-vision/health.svg)](https://phpackages.com/packages/hymns-microsoft-cognitive-vision)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[jordikroon/google-vision

Google Vision Api for PHP (https://cloud.google.com/vision/)

6374.9k1](/packages/jordikroon-google-vision)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)

PHPackages © 2026

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