PHPackages                             ffi/location - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ffi/location

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ffi/location
============

PHP library for determining the physical location of binaries

1.0.1(3y ago)1339.8k7MITPHPPHP ^7.4|^8.0CI passing

Since Nov 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/php-ffi/location)[ Packagist](https://packagist.org/packages/ffi/location)[ RSS](/packages/ffi-location/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (7)

Bin Locator
===========

[](#bin-locator)

 [![PHP 8.1+](https://camo.githubusercontent.com/28b1ee135419f4d5c491bede4cddd615008c5e1b4e7741bed59fb9a7b3539f06/68747470733a2f2f706f7365722e707567782e6f72672f6666692f6c6f636174696f6e2f726571756972652f7068703f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ffi/location) [![Latest Stable Version](https://camo.githubusercontent.com/a2fe637976014208d33b9f888296ca63b5eb3c8452e269cca83249a85622f3d9/68747470733a2f2f706f7365722e707567782e6f72672f6666692f6c6f636174696f6e2f76657273696f6e3f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ffi/location) [![Latest Unstable Version](https://camo.githubusercontent.com/2000a9c9d4013bc1bc281811f0c18988852d09134691ee3f8468fc7356b8fd0b/68747470733a2f2f706f7365722e707567782e6f72672f6666692f6c6f636174696f6e2f762f756e737461626c653f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ffi/location) [![Total Downloads](https://camo.githubusercontent.com/42a72e67b4f9655c810c4cfce29327a735f43af7881a784bba8b28fe83043d80/68747470733a2f2f706f7365722e707567782e6f72672f6666692f6c6f636174696f6e2f646f776e6c6f6164733f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ffi/location) [![License MIT](https://camo.githubusercontent.com/d4adf95fe709f5cb8ba6a0d5b5618e3dff9c6cabcd073185b6bdaa5a8a5f594f/68747470733a2f2f706f7365722e707567782e6f72672f6666692f6c6f636174696f6e2f6c6963656e73653f7374796c653d666f722d7468652d6261646765)](https://raw.githubusercontent.com/php-ffi/location/master/LICENSE.md)

 [![](https://github.com/php-ffi/location/workflows/build/badge.svg)](https://github.com/php-ffi/location/actions)

Library for searching binary files in the operating system.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4

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

[](#installation)

Library is available as composer repository and can be installed using the following command in a root of your project.

```
$ composer require ffi/location
```

Usage
-----

[](#usage)

### Existence Check

[](#existence-check)

Checking the library for existence.

```
use FFI\Location\Locator;

$exists = Locator::exists('libGL.so');
// Expected true in the case that the binary exists and false otherwise
```

### Binary Pathname

[](#binary-pathname)

Getting the full path to the library.

```
use FFI\Location\Locator;

$pathname = Locator::pathname('libGL.so');
// Expected "/usr/lib/x86_64-linux-gnu/libGL.so.1.7.0" or null
// in the case that the library cannot be found
```

### Binary Resolving

[](#binary-resolving)

Checking multiple names to find the most suitable library.

```
use FFI\Location\Locator;

$pathname = Locator::resolve('example.so', 'test.so', 'libvulkan.so');
// Expected "/usr/lib/x86_64-linux-gnu/libvulkan.so.1.2.131" or null
// in the case that the library cannot be found
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~212 days

Total

3

Last Release

1233d ago

Major Versions

0.1.0 → 1.0.02021-11-03

PHP version history (2 changes)0.1.0PHP &gt;=7.4

1.0.1PHP ^7.4|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/150420?v=4)[Ruslan Sharipov](/maintainers/Serafim)[@serafim](https://github.com/serafim)

---

Top Contributors

[![SerafimArts](https://avatars.githubusercontent.com/u/2461257?v=4)](https://github.com/SerafimArts "SerafimArts (7 commits)")

---

Tags

binarylocatorphpresolverutilitylocationbinffi

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ffi-location/health.svg)

```
[![Health](https://phpackages.com/badges/ffi-location/health.svg)](https://phpackages.com/packages/ffi-location)
```

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.0M191](/packages/danielstjules-stringy)[torann/geoip

Support for multiple Geographical Location services.

2.2k14.2M76](/packages/torann-geoip)[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[spatie/geocoder

Geocoding addresses to coordinates

8404.8M15](/packages/spatie-geocoder)[voku/arrayy

Array manipulation library for PHP, called Arrayy!

4875.5M16](/packages/voku-arrayy)

PHPackages © 2026

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