PHPackages                             freearhey/laravel-face-detection - 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. freearhey/laravel-face-detection

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

freearhey/laravel-face-detection
================================

A Laravel Package for Face Detection and Cropping in Images.

v1.4.0(2y ago)412.2k16[3 issues](https://github.com/freearhey/laravel-face-detection/issues)MITPHPPHP ^8.1CI failing

Since Nov 7Pushed 2y ago3 watchersCompare

[ Source](https://github.com/freearhey/laravel-face-detection)[ Packagist](https://packagist.org/packages/freearhey/laravel-face-detection)[ RSS](/packages/freearhey-laravel-face-detection/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (3)Versions (10)Used By (0)

Face Detection [![Build Status](https://camo.githubusercontent.com/52df42c703e7280c82d77f170727234e54434d447d343e3a8cfcf4c2f962a968/68747470733a2f2f6170702e7472617669732d63692e636f6d2f6672656561726865792f6c61726176656c2d666163652d646574656374696f6e2e7376673f6272616e63683d6d6173746572)](https://app.travis-ci.com/freearhey/laravel-face-detection)
==========================================================================================================================================================================================================================================================================================================================================================

[](#face-detection-)

A Laravel Package for Face Detection.

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

[](#installation)

1. Install the package via composer:

```
composer require freearhey/laravel-face-detection
```

2. Add the service provider to the `config/app.php` file in Laravel:

```
'providers' => [
  ...
  Arhey\FaceDetection\FaceDetectionServiceProvider::class,
  ...
],
```

3. Publish the config file by running:

```
php artisan vendor:publish
```

Usage
-----

[](#usage)

```
use Arhey\FaceDetection\Facades\FaceDetection;

$face = FaceDetection::extract('path/to/image.jpg');
```

To detect if face is found in a image:

```
if($face->found) {
  // face found
} else {
  // face not found
}
```

To get the facial boundaries:

```
var_dump($face->bounds);

/*
  array(
    'x' => 292.0,
    'y' => 167.0,
    'w' => 204.8,
    'h' => 204.8,
  )
*/
```

To save the found face image:

```
$face->save('path/to/output.jpg');
```

Testing
-------

[](#testing)

```
vendor/bin/phpunit
```

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 97.6% 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 ~186 days

Recently: every ~372 days

Total

9

Last Release

932d ago

PHP version history (5 changes)1.0.0PHP &gt;=5.3

1.0.2PHP ^7.0

1.2.0PHP ^7.3

1.3.0PHP ^7.3| ^8.0

v1.4.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d0a0ca5e503bd0e74ab4ccdecb0d205ac8fc1bf543574e9bc337f659ac5abf5?d=identicon)[Arhey](/maintainers/Arhey)

---

Top Contributors

[![freearhey](https://avatars.githubusercontent.com/u/7253922?v=4)](https://github.com/freearhey "freearhey (40 commits)")[![nlvedwin](https://avatars.githubusercontent.com/u/78135357?v=4)](https://github.com/nlvedwin "nlvedwin (1 commits)")

---

Tags

laravelface detection

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/freearhey-laravel-face-detection/health.svg)

```
[![Health](https://phpackages.com/badges/freearhey-laravel-face-detection/health.svg)](https://phpackages.com/packages/freearhey-laravel-face-detection)
```

###  Alternatives

[intervention/image-laravel

Laravel Integration of Intervention Image

1558.1M159](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

506511.0k27](/packages/bkwld-croppa)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5452.7k](/packages/hasinhayder-tyro-dashboard)[owen-oj/laravel-getid3

This package is a wrapper around james-heinrich/getid3 to extract various information from media files

85501.8k1](/packages/owen-oj-laravel-getid3)[ralphjsmit/laravel-glide

Auto-magically generate responsive images from static image files.

4923.6k5](/packages/ralphjsmit-laravel-glide)[danihidayatx/image-optimizer

Optimize your Filament images before they reach your database. Forked from joshembling/image-optimizer for Filament v4 &amp; v5 support.

3113.6k](/packages/danihidayatx-image-optimizer)

PHPackages © 2026

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