{"id":19533648,"url":"https://github.com/oliwierptak/phuxtil-find","last_synced_at":"2026-05-17T17:04:39.142Z","repository":{"id":57041230,"uuid":"191453452","full_name":"oliwierptak/phuxtil-find","owner":"oliwierptak","description":"Easy interface for output of 'find' unix command","archived":false,"fork":false,"pushed_at":"2021-05-18T16:24:48.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-18T03:42:42.673Z","etag":null,"topics":["find","format","output","php","shell","unix"],"latest_commit_sha":null,"homepage":null,"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/oliwierptak.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}},"created_at":"2019-06-11T21:33:53.000Z","updated_at":"2021-05-18T16:24:37.000Z","dependencies_parsed_at":"2022-08-23T23:30:50.763Z","dependency_job_id":null,"html_url":"https://github.com/oliwierptak/phuxtil-find","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/oliwierptak/phuxtil-find","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliwierptak%2Fphuxtil-find","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliwierptak%2Fphuxtil-find/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliwierptak%2Fphuxtil-find/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliwierptak%2Fphuxtil-find/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oliwierptak","download_url":"https://codeload.github.com/oliwierptak/phuxtil-find/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliwierptak%2Fphuxtil-find/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272641000,"owners_count":24968800,"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-08-29T02:00:10.610Z","response_time":87,"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":["find","format","output","php","shell","unix"],"created_at":"2024-11-11T02:09:02.119Z","updated_at":"2026-05-17T17:04:34.097Z","avatar_url":"https://github.com/oliwierptak.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phuxtil-find\n\nEasy interface for output of `find` unix command\n\n\n\u003e In Unix-like and some other operating systems, find is a command-line utility that searches one or more directory trees of a file system, locates files based on some user-specified criteria and applies a user-specified action on each matched file.\n\n### Installation\n\n```\ncomposer require phuxtil/find\n```\n\n_Note_: Use v1.x for compatibility with PHP v7.0.x\n_Note_: Use v2.x for compatibility with PHP v7.2+\n\n### Usage\n\n###### find sample output\n```\n1560682188|1560682181|1560682181|0755|root|root|0|0|d|10245134|0|160|5|remote_fs/|/tmp/remote_fs/\n1560682162|1560682181|1560682181|0644|root|root|0|0|f|10269956|8|1210|1|test.txt|/tmp/remote_fs/test.txt\n1560682162|1560682181|1560682181|0644|root|root|0|0|f|10269956|8|1210|1|test_link.txt|/tmp/remote_fs/test_link.txt\n```\n\n\n\n##### Configuration\n\nUse `Phuxtil\\Find\\FindConfigurator` for configuration options.\n\n```php\n$configurator = (new FindConfigurator())\n     -\u003esetFormat('%As|%Cs|%Ts|%#m|%u|%g|%U|%G|%y|%i|%b|%s|%n|%f|%p')\n     -\u003esetFormatDelimiter('|')\n     -\u003esetLineDelimiter(\"\\n\")\n     -\u003esetFindOutput(...);\n```\n \n\n##### Facade\n\n```php\n$results = (new FindFacade())-\u003eprocess($configurator);\n```\n\n```php\n[\n    0 =\u003e Phuxtil\\SplFileInfo\\VirtualSplFileInfo {\n        path: \"/tmp\"\n        filename: \"remote_fs\"\n        basename: \"remote_fs\"\n        pathname: \"/tmp/remote_fs\"\n        extension: \"\"\n        realPath: \"/tmp/remote_fs\"\n        aTime: 2019-06-16 12:49:48\n        mTime: 2019-06-16 12:49:41\n        cTime: 2019-06-16 12:49:41\n        inode: \"10245134\"\n        size: \"160\"\n        perms: 0755\n        owner: \"0\"\n        group: \"0\"\n        type: \"dir\"\n        writable: true\n        readable: true\n        executable: true\n        file: false\n        dir: true\n        link: false\n        linkTarget: -1\n      }\n      1 =\u003e Phuxtil\\SplFileInfo\\VirtualSplFileInfo {\n        path: \"/tmp/remote_fs\"\n        filename: \"test.txt\"\n        basename: \"test.txt\"\n        pathname: \"/tmp/remote_fs/test.txt\"\n        extension: \"txt\"\n        realPath: \"/tmp/remote_fs/test.txt\"\n        aTime: 2019-06-16 12:49:22\n        mTime: 2019-06-16 12:49:41\n        cTime: 2019-06-16 12:49:41\n        inode: \"10269956\"\n        size: \"1210\"\n        perms: 0644\n        owner: \"0\"\n        group: \"0\"\n        type: \"file\"\n        writable: true\n        readable: true\n        executable: false\n        file: true\n        dir: false\n        link: false\n        linkTarget: -1\n      }\n      2 =\u003e Phuxtil\\SplFileInfo\\VirtualSplFileInfo {\n        path: \"/tmp/remote_fs\"\n        filename: \"test_link.txt\"\n        basename: \"test_link.txt\"\n        pathname: \"/tmp/remote_fs/test_link.txt\"\n        extension: \"txt\"\n        realPath: \"/tmp/remote_fs/test_link.txt\"\n        aTime: 2019-06-16 12:49:22\n        mTime: 2019-06-16 12:49:41\n        cTime: 2019-06-16 12:49:41\n        inode: \"10269956\"\n        size: \"1210\"\n        perms: 0644\n        owner: \"0\"\n        group: \"0\"\n        type: \"file\"\n        writable: true\n        readable: true\n        executable: false\n        file: true\n        dir: false\n        link: false\n        linkTarget: -1\n      }\n]\n```\n\nThe result is an array containing `VirtualSplFileInfo` objects which are compatible with `\\SplFileInfo`.\n\n```php\necho $results[0]-\u003egetPathname();    # /tmp/remote_fs\necho $results[1]-\u003eisReadable();     # true\necho $results[2]-\u003egetSize();        # 1210\n```\n\n#### TDD\n\nSee [`tests`](https://github.com/oliwierptak/phuxtil-find/blob/master/tests/Functional/Find/FindFacadeTest.php) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliwierptak%2Fphuxtil-find","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foliwierptak%2Fphuxtil-find","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliwierptak%2Fphuxtil-find/lists"}