{"id":25933137,"url":"https://github.com/takuya/php-plocate-wrapper","last_synced_at":"2026-03-05T15:32:58.181Z","repository":{"id":279756941,"uuid":"939860544","full_name":"takuya/php-plocate-wrapper","owner":"takuya","description":"php wrapper for plocate and plocate-build command for search files","archived":false,"fork":false,"pushed_at":"2025-05-21T10:39:47.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T12:56:12.331Z","etag":null,"topics":["locate","php","plocate","search"],"latest_commit_sha":null,"homepage":"https://github.com/takuya/php-plocate-wrapper","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takuya.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,"zenodo":null}},"created_at":"2025-02-27T08:21:51.000Z","updated_at":"2025-05-21T10:39:51.000Z","dependencies_parsed_at":"2025-02-27T11:35:32.074Z","dependency_job_id":"89253c78-a651-44a2-b798-4af27ab373fd","html_url":"https://github.com/takuya/php-plocate-wrapper","commit_stats":null,"previous_names":["takuya/php-plocate-wrapper"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/takuya/php-plocate-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-plocate-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-plocate-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-plocate-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-plocate-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takuya","download_url":"https://codeload.github.com/takuya/php-plocate-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-plocate-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30133261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T14:41:47.141Z","status":"ssl_error","status_checked_at":"2026-03-05T14:41:21.567Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["locate","php","plocate","search"],"created_at":"2025-03-04T00:52:16.473Z","updated_at":"2026-03-05T15:32:58.162Z","avatar_url":"https://github.com/takuya.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-plocate-wrapper\nphp wrapper for plocate and plocate-build command for search files\n\n\n## find files by plocate db\n\nsearch files using locate.db(plocate database)\n```php\n\u003c?php\n$locate = new LocateWrap();\n$ret = $locate-\u003esearch('composer.json');\nforeach ($ret as $item) {\n  var_dump($item);\n}\n```\n\n## find files from sub-directory ( not from / )\n\nWe can find files from only sub-directory by shell.\n```shell\n## build file database only ~/Documents\nsubdir=/home/takuya/Documemts\ncd $subdir \nfind . -type f -printf '%P\\n' \u003e find-results.txt\nplocate-build -p find-results.txt my-document.db\n## find from using custom database\nplocate -d my-document.db .docx\n```\nThis project is aimed to build that database. sample code is below.\n```php\n\u003c?php\n$builder = new LocateDbBuilder('~/.Document.db','~/Document');\n$builder-\u003ebuild();\n\n$locate = new LocateWrap('~/.Document.db');\n$found = $locate-\u003esearch('.docx');\n```\n\n## Installing \n\nfrom GitHub. \n```shell\nname='php-plocate-wrapper'\ncomposer config repositories.$name \\\nvcs https://github.com/takuya/$name  \ncomposer require takuya/$name:master\ncomposer install\n```\n\nfrom packagist\n```shell\ncomposer require takuya/php-plocate-wrapper\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fphp-plocate-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakuya%2Fphp-plocate-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fphp-plocate-wrapper/lists"}