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)5626.2k25[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 1mo ago

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

37

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

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

1152d 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

[creativeorange/gravatar

A Laravel Gravatar package for retrieving gravatar image URLs or checking the existance of an image.

5467.5M53](/packages/creativeorange-gravatar)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M100](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k22](/packages/bkwld-croppa)[ralphjsmit/laravel-glide

Auto-magically generate responsive images from static image files.

4719.6k5](/packages/ralphjsmit-laravel-glide)[freearhey/laravel-face-detection

A Laravel Package for Face Detection and Cropping in Images.

392.2k](/packages/freearhey-laravel-face-detection)[spatie/laravel-og-image

Generate OG images for your Laravel app

305.2k](/packages/spatie-laravel-og-image)

PHPackages © 2026

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