PHPackages                             xsolve-pl/face-validator-bundle - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. xsolve-pl/face-validator-bundle

ActiveSymfony-bundle[Validation &amp; Sanitization](/categories/validation)

xsolve-pl/face-validator-bundle
===============================

Symfony3 bundle for validating face on picture using MS Azure Face API

v1.0.1(8y ago)16192[4 issues](https://github.com/boldare/xsolve-face-validator-bundle/issues)MITPHPPHP &gt;=7.0.0CI failing

Since Oct 20Pushed 8y ago52 watchersCompare

[ Source](https://github.com/boldare/xsolve-face-validator-bundle)[ Packagist](https://packagist.org/packages/xsolve-pl/face-validator-bundle)[ Docs](https://xsolve.software)[ RSS](/packages/xsolve-pl-face-validator-bundle/feed)WikiDiscussions master Synced yesterday

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

---

XSolve Face Validator Bundle
============================

[](#xsolve-face-validator-bundle)

[![Build Status](https://camo.githubusercontent.com/346c834732dab90b6fea82b5c63e08184186f374586cae3783c08ed7c53d7b7e/68747470733a2f2f7472617669732d63692e6f72672f78736f6c76652d706c2f78736f6c76652d666163652d76616c696461746f722d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/xsolve-pl/xsolve-face-validator-bundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1088f4499b16ff5dfa3603dfff3b2e8522b72759736ec2d35d69f055150017cb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f78736f6c76652d706c2f78736f6c76652d666163652d76616c696461746f722d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/xsolve-pl/xsolve-face-validator-bundle/?branch=master)

============================

Table of contents
=================

[](#table-of-contents)

- [Introduction](#introduction)
- [License](#license)
- [Getting started](#getting-started)
- [Usage](#usage)

Introduction
============

[](#introduction)

This Symfony3 bundle allows to validate whether an image (for instance uploaded by a user of your app) contains person's face. Internally it uses MS Azure Face API so in order to use it you need an account in MS Azure. In free plan the API allows to make 30 000 requests per month and 20 per minute so it should be enough to be useful for low traffic apps.

All the following features are configurable on the constraint level and can be easily enabled/disabled:

- requiring certain face size (ratio to the image size)
- disallowing an image when the face is covered
- requiring the hair to be visible (the image must not be cut)
- allowing the face to be rotated in any of the 3 axes to given level
- disallowing to wear glasses
- disallowing to wear sunglasses
- disallowing any makeup
- requiring an image not to be blurred over given level (low/medium/high)
- requiring an image not to contain noises over given level (low/medium/high)

Licence
=======

[](#licence)

This library is under the MIT license. See the complete license in [LICENSE](LICENSE) file.

Getting started
===============

[](#getting-started)

Add the bundle to your Symfony3 project using [Composer](https://getcomposer.org/):

```
$ composer require xsolve-pl/face-validator-bundle
```

You'll need also to register the bundle in your kernel:

```
