{"id":34016650,"url":"https://github.com/terremoth/php-win32-filepicker","last_synced_at":"2026-05-25T20:37:57.983Z","repository":{"id":280880914,"uuid":"943480384","full_name":"terremoth/php-win32-filepicker","owner":"terremoth","description":"Use native Windows Explorer File Selector to select a file on PHP","archived":false,"fork":false,"pushed_at":"2025-03-11T08:15:53.000Z","size":63,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-24T18:05:34.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terremoth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-03-05T19:18:25.000Z","updated_at":"2025-03-11T08:15:56.000Z","dependencies_parsed_at":"2025-03-05T20:39:06.674Z","dependency_job_id":"17b22255-df56-4f36-9e3d-fa09a60d57f2","html_url":"https://github.com/terremoth/php-win32-filepicker","commit_stats":null,"previous_names":["terremoth/php-win32-filepicker"],"tags_count":0,"template":false,"template_full_name":"terremoth/php-project-template","purl":"pkg:github/terremoth/php-win32-filepicker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terremoth%2Fphp-win32-filepicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terremoth%2Fphp-win32-filepicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terremoth%2Fphp-win32-filepicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terremoth%2Fphp-win32-filepicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terremoth","download_url":"https://codeload.github.com/terremoth/php-win32-filepicker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terremoth%2Fphp-win32-filepicker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27706764,"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","status":"online","status_checked_at":"2025-12-13T02:00:09.769Z","response_time":147,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-12-13T14:03:30.554Z","updated_at":"2025-12-13T14:03:46.825Z","avatar_url":"https://github.com/terremoth.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Win32 File Picker\n\nCalls Windows Explorer to select file(s).  \n\nYou are able to configure to select 1 or multiple files, \nfiltering by extensions or let the user free to choose any.\n\nUnlocked by the power of PHP's [FFI](https://www.php.net/manual/en/book.ffi.php)\n\n_Not because we must do it, but because we can!_\n\nMade by [Terremoth](https://github.com/terremoth/) with ⚡ \u0026 ❤\n\n\u003cdiv align=\"center\"\u003e\n    \n[![Test Run Status](https://github.com/terremoth/php-win32-filepicker/actions/workflows/workflow.yml/badge.svg?branch=main)](https://github.com/terremoth/php-win32-filepicker/actions/workflows/workflow.yml)\n[![License](https://img.shields.io/github/license/terremoth/php-win32-filepicker.svg?logo=gpl\u0026color=41bb13)](https://github.com/terremoth/php-win32-filepicker/blob/main/LICENSE)\n[![Latest Stable Version](https://poser.pugx.org/terremoth/php-win32-filepicker/v/stable)](https://packagist.org/packages/terremoth/php-win32-filepicker)\n[![Total Downloads](https://poser.pugx.org/terremoth/php-win32-filepicker/downloads)](https://packagist.org/packages/terremoth/php-win32-filepicker)\n[![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fdiscord.com%2Fapi%2Finvites%2FJxFhMVWu82%3Fwith_counts%3Dtrue\u0026query=%24.approximate_member_count\u0026logo=discord\u0026logoColor=white\u0026label=Users%20Total\u0026color=green)](https://discord.gg/JxFhMVWu82)\n[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/terremoth/php-win32-filepicker/badge)](https://scorecard.dev/viewer/?uri=github.com/terremoth/php-win32-filepicker)\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n\n[![codecov](https://codecov.io/gh/terremoth/php-win32-filepicker/graph/badge.svg?token=OK19B0N657)](https://codecov.io/gh/terremoth/php-win32-filepicker)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/1ec5c2da0c5a366cecb7/test_coverage)](https://codeclimate.com/github/terremoth/php-win32-filepicker/test_coverage)\n[![Psalm type coverage](https://shepherd.dev/github/terremoth/php-win32-filepicker/coverage.svg)](https://shepherd.dev/github/terremoth/php-win32-filepicker)\n[![Psalm level](https://shepherd.dev/github/terremoth/php-win32-filepicker/level.svg)](https://shepherd.dev/github/terremoth/php-win32-filepicker)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/f0b186eb12a745a79b110fde625b645f)](https://app.codacy.com/gh/terremoth/php-win32-filepicker/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade)\n[![Maintainability](https://api.codeclimate.com/v1/badges/1ec5c2da0c5a366cecb7/maintainability)](https://codeclimate.com/github/terremoth/php-win32-filepicker/maintainability)\n\u003c/div\u003e\n\n## Installation\n\n```sh\ncomposer require terremoth/php-win32-filepicker\n```\n\n## Documentation\n\n```php\nrequire_once 'vendor/autoload.php';\n\nuse Terremoth\\Win32\\FilePicker;\n\n$selectedDirectory = $_SERVER['USERPROFILE'] ?? 'C:\\\\'; // optional\n\n$fp = new FilePicker($selectedDirectory); // $selectedDirectory can be null without problem.\n\n// all methods below are *optional*:\n$fp\n    -\u003eselectMultipleFiles()\n    -\u003eaddExtensionsFilter(['png', 'jpg', 'gif', 'avif', 'webp', 'jpeg', 'ico', 'bmp'])\n    -\u003efilterOnlySelectedExtensions()\n    -\u003esetDefaultExtensionSearch('png')\n;\n\n$selectedFiles = $fp-\u003eopen();\n\nprint_r($selectedFiles);\n\n// if no files were selected, an empty array will be returned 😉\n```\n\nThat's it!  \n\nSee [demos/demo.php](demos/demo.php) for this example.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterremoth%2Fphp-win32-filepicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterremoth%2Fphp-win32-filepicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterremoth%2Fphp-win32-filepicker/lists"}