PHPackages                             mailmug/php\_dlib - 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. mailmug/php\_dlib

ActivePhp-ext[Image &amp; Media](/categories/media)

mailmug/php\_dlib
=================

PHP extension for the Dlib C++ library (face detection, landmarks, recognition, and clustering).

v2.0.0(1mo ago)120MITC++PHP &gt;=7.0CI passing

Since Apr 21Pushed 1mo agoCompare

[ Source](https://github.com/mailmug/php-dlib)[ Packagist](https://packagist.org/packages/mailmug/php_dlib)[ RSS](/packages/mailmug-php-dlib/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

PHP-Dlib
========

[](#php-dlib)

PHP extension for the Dlib C++ library (face detection, landmarks, recognition, and clustering).

This project is a fork of the original **pdlib** and extends it with improved build support and modern Dlib versions.

---

🚀 Features
----------

[](#-features)

- ✅ Face Detection (HOG / CNN)
- ✅ Facial Landmark Detection
- ✅ Face Recognition (128D descriptors)
- ✅ Deep Learning-based face detection (CNN)
- ✅ Chinese Whispers clustering (graph-based grouping)

PHP Dlib Extension Quick Installation Guide
-------------------------------------------

[](#php-dlib-extension-quick-installation-guide)

[Tutorial](https://dev.to/arshidkv12/develop-a-pure-php-face-recognition-application-313n)

### 1. Download the Extension

[](#1-download-the-extension)

Download the correct file from: [Releases](https://github.com/mailmug/php-dlib/releases)

Choose:

- Windows → `.dll`
- Linux → `.so`
- Mac → `.so`

Make sure it matches:

- PHP version (8.2 / 8.3 / 8.5)
- Thread Safe (TS) or Non-Thread Safe (NTS)
- Architecture (x64 / x86)

#### 2. Windows Installation (.dll)

[](#2-windows-installation-dll)

##### Find php.ini

[](#find-phpini)

Create file:

```
