{"id":18397303,"url":"https://github.com/php-ffi/location","last_synced_at":"2025-07-02T01:36:08.934Z","repository":{"id":62504403,"uuid":"393784492","full_name":"php-ffi/location","owner":"php-ffi","description":"PHP library for determining the physical location of binaries","archived":false,"fork":false,"pushed_at":"2024-12-17T00:28:08.000Z","size":24,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T04:33:48.654Z","etag":null,"topics":["binary","locator","php","resolver"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-ffi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-07T20:21:57.000Z","updated_at":"2024-12-17T00:28:12.000Z","dependencies_parsed_at":"2025-04-07T04:33:14.437Z","dependency_job_id":"348b85a7-9b0e-4889-903a-d68ca447c60d","html_url":"https://github.com/php-ffi/location","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/php-ffi/location","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ffi%2Flocation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ffi%2Flocation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ffi%2Flocation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ffi%2Flocation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-ffi","download_url":"https://codeload.github.com/php-ffi/location/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ffi%2Flocation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263060998,"owners_count":23407596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binary","locator","php","resolver"],"created_at":"2024-11-06T02:16:39.831Z","updated_at":"2025-07-02T01:36:08.915Z","avatar_url":"https://github.com/php-ffi.png","language":"PHP","readme":"# Bin Locator\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://packagist.org/packages/ffi/location\"\u003e\u003cimg src=\"https://poser.pugx.org/ffi/location/require/php?style=for-the-badge\" alt=\"PHP 8.1+\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/ffi/location\"\u003e\u003cimg src=\"https://poser.pugx.org/ffi/location/version?style=for-the-badge\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/ffi/location\"\u003e\u003cimg src=\"https://poser.pugx.org/ffi/location/v/unstable?style=for-the-badge\" alt=\"Latest Unstable Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/ffi/location\"\u003e\u003cimg src=\"https://poser.pugx.org/ffi/location/downloads?style=for-the-badge\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://raw.githubusercontent.com/php-ffi/location/master/LICENSE.md\"\u003e\u003cimg src=\"https://poser.pugx.org/ffi/location/license?style=for-the-badge\" alt=\"License MIT\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/php-ffi/location/actions\"\u003e\u003cimg src=\"https://github.com/php-ffi/location/workflows/build/badge.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nLibrary for searching binary files in the operating system.\n\n## Requirements\n\n- PHP \u003e= 7.4\n\n## Installation\n\nLibrary is available as composer repository and can be installed using the \nfollowing command in a root of your project.\n\n```sh\n$ composer require ffi/location\n```\n\n## Usage\n\n### Existence Check\n\nChecking the library for existence.\n\n```php\nuse FFI\\Location\\Locator;\n\n$exists = Locator::exists('libGL.so');\n// Expected true in the case that the binary exists and false otherwise\n```\n\n### Binary Pathname\n\nGetting the full path to the library.\n\n```php\nuse FFI\\Location\\Locator;\n\n$pathname = Locator::pathname('libGL.so');\n// Expected \"/usr/lib/x86_64-linux-gnu/libGL.so.1.7.0\" or null\n// in the case that the library cannot be found\n```\n\n### Binary Resolving\n\nChecking multiple names to find the most suitable library.\n\n```php\nuse FFI\\Location\\Locator;\n\n$pathname = Locator::resolve('example.so', 'test.so', 'libvulkan.so');\n// Expected \"/usr/lib/x86_64-linux-gnu/libvulkan.so.1.2.131\" or null\n// in the case that the library cannot be found\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-ffi%2Flocation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-ffi%2Flocation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-ffi%2Flocation/lists"}