PHPackages                             softon/laravel-face-detect - 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. softon/laravel-face-detect

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

softon/laravel-face-detect
==========================

A Laravel Package for Face Detection and Cropping in Images.

v0.2.2(3y ago)6126.4k25[4 issues](https://github.com/softon/laravel-face-detect/issues)MITPHPPHP &gt;=8.0

Since May 9Pushed 3y ago6 watchersCompare

[ Source](https://github.com/softon/laravel-face-detect)[ Packagist](https://packagist.org/packages/softon/laravel-face-detect)[ RSS](/packages/softon-laravel-face-detect/feed)WikiDiscussions master Synced yesterday

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

Laravel-Face-Detect
===================

[](#laravel-face-detect)

A Laravel Package for Face Detection and Cropping in Images.

**Installation**

1. Edit the composer.json add to the require array &amp; run composer update
    ```
     "softon/laravel-face-detect": "dev-master"
    ```

    ```
     composer update
    ```
2. Add the service provider to the config/app.php file in Laravel
    ```
     'Softon\LaravelFaceDetect\FaceDetectServiceProvider',
    ```
3. Add an alias for the Facade to the config/app.php file in Laravel
    ```
     'FaceDetect' => 'Softon\LaravelFaceDetect\Facades\FaceDetect',
    ```
4. Publish the config file by running
    ```
     php artisan vendor:publish
    ```

**Usage**

To extract the Face and save the cropped image use...

```
use \Softon\LaravelFaceDetect\Facades\FaceDetect;

FaceDetect::extract($imagefilepath)->save($savefilepath);
```

To extract the Face and return the cropping coordinates without cropping the image...

```
use \Softon\LaravelFaceDetect\Facades\FaceDetect;

$crop_params = FaceDetect::extract($imagefilepath)->face;   // return array with x,y,width
```

To detect if face is found in a image...

```
use \Softon\LaravelFaceDetect\Facades\FaceDetect;

$crop_params = FaceDetect::extract($imagefilepath)->face_found;     // returns true/false
```

You may edit the config file facedetect.php in the config directory to add aditional padding to the cropped Images.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~833 days

Total

4

Last Release

1244d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.3

v0.2.2PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b1203b3f0be622a928325d7138799bd0b50f4f7f5b09c608630c9961b3b0625?d=identicon)[softon](/maintainers/softon)

---

Top Contributors

[![softon](https://avatars.githubusercontent.com/u/598761?v=4)](https://github.com/softon "softon (3 commits)")[![dfeo](https://avatars.githubusercontent.com/u/13767019?v=4)](https://github.com/dfeo "dfeo (1 commits)")[![LikeAshraful](https://avatars.githubusercontent.com/u/5829507?v=4)](https://github.com/LikeAshraful "LikeAshraful (1 commits)")

---

Tags

crop-imageface-detectionlaravel-5-packagelaravel-packagelaravelface detection

### Embed Badge

![Health badge](/badges/softon-laravel-face-detect/health.svg)

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M293](/packages/laravel-ai)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[intervention/image-laravel

Laravel Integration of Intervention Image

1589.8M224](/packages/intervention-image-laravel)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[ublabs/blade-simple-icons

A package to easily make use of Simple Icons in your Laravel Blade views.

1866.3k](/packages/ublabs-blade-simple-icons)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)

PHPackages © 2026

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