PHPackages                             ridvanbaluyos/face - 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. ridvanbaluyos/face

ActiveLibrary[API Development](/categories/api)

ridvanbaluyos/face
==================

A PHP Library built for the Microsoft's Face API.

v1.1(9y ago)53223[1 issues](https://github.com/ridvanbaluyos/face/issues)MITPHPPHP &gt;=5.3.3

Since May 5Pushed 8y ago1 watchersCompare

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

READMEChangelog (7)Dependencies (1)Versions (11)Used By (0)

ridvanbaluyos/face
==================

[](#ridvanbaluyosface)

A PHP Library built for the Microsoft's Cognitive Services.

> Cognitive Services: [Face API](https://www.microsoft.com/cognitive-services/en-us/face-api/documentation/overview)

[![Actively Maintained](https://camo.githubusercontent.com/7904a78e053b215ef92caa8957fba8956752edc6d65763230398179b7bcbab5b/68747470733a2f2f6d61696e7461696e65642e746563682f62616467652e737667)](https://maintained.tech/) [![Latest Stable Version](https://camo.githubusercontent.com/85a02bfbbf8d1da65577931f2bb0c09ceb70bdd38a0b354567170d45444eb6a9/68747470733a2f2f706f7365722e707567782e6f72672f72696476616e62616c75796f732f666163652f762f737461626c652e737667)](https://packagist.org/packages/ridvanbaluyos/face) [![Total Downloads](https://camo.githubusercontent.com/a487e3bd7c52cfe9a878ec470a69a94dc266eaa1f5cb842dba0f10fc58dd0a0a/68747470733a2f2f706f7365722e707567782e6f72672f72696476616e62616c75796f732f666163652f646f776e6c6f6164732e737667)](https://packagist.org/packages/ridvanbaluyos/face) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/08d8cd46066d0469859e37e467a3be3a3ba7e2a059cc5ec8642a812e5b87b738/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f72696476616e62616c75796f732f666163652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ridvanbaluyos/face/?branch=master) [![Build Status](https://camo.githubusercontent.com/86236cc8df7b48fb447b2fb8c47e348a2b6f98a962ced251f3455b92bd4faff9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f72696476616e62616c75796f732f666163652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ridvanbaluyos/face/build-status/master) [![Codacy Badge](https://camo.githubusercontent.com/9f862968cc6efb840fd6f1ede57554abdfe4be216dc62dd88bd9051e00a0b579/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6430666131376130646561323435316438336365393031383630373066633861)](https://www.codacy.com/app/ridvanbaluyos/face?utm_source=github.com&utm_medium=referral&utm_content=ridvanbaluyos/face&utm_campaign=badger) [![License](https://camo.githubusercontent.com/1cad94b9f0d91a2c2a8af75cee277bf31a4f96f61aadbb9763dad34e57c85e41/68747470733a2f2f706f7365722e707567782e6f72672f72696476616e62616c75796f732f666163652f6c6963656e73652e737667)](https://packagist.org/packages/ridvanbaluyos/face)

Table of contents
-----------------

[](#table-of-contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
    - [Detecting a Face](#detecting-a-face)
    - [Analyzing Face Landmarks](#analyzing-face-landmarks)
    - [Analyzing Face Attributes](#analyzing-face-attributes)
    - [Chaining options](#chaining-options)
- [References](#references)

### Requirements

[](#requirements)

Kindly subscribe for an API key to [Microsoft's Cognitive Services API page](https://www.microsoft.com/cognitive-services/en-us/sign-up).

### Installation

[](#installation)

Open your `composer.json` file and add the following to the `require` key:

```
"ridvanbaluyos/face": "v1.1"

```

---

After adding the key, run composer update from the command line to install the package

```
composer install
```

or

```
composer update
```

### Configuration

[](#configuration)

Add your subscription key in `src/Ridvanbaluyos/Face/config.json` file

```
{
	"url" : "https://westus.api.cognitive.microsoft.com/face/v1.0/detect",
	"subscriptionKey" : "zWwPD7BGWYEArX6u6QxvS25TTsNge2Qw"
}
```

### Usage

[](#usage)

```
