{"id":36333567,"url":"https://github.com/oliver-dvorski/array_find","last_synced_at":"2026-01-11T12:02:27.200Z","repository":{"id":143073467,"uuid":"614752169","full_name":"oliver-dvorski/array_find","owner":"oliver-dvorski","description":"array_find for php. It stops the linear search when the first match is found.","archived":false,"fork":false,"pushed_at":"2025-02-25T11:48:55.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-27T15:37:47.535Z","etag":null,"topics":["arrays","linear-search-algorithm","php","search"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/oliver-dvorski/array_find","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/oliver-dvorski.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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":"2023-03-16T08:46:27.000Z","updated_at":"2025-02-25T11:48:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"cad7f62f-8b4c-461e-b0ad-bb10cb146cf6","html_url":"https://github.com/oliver-dvorski/array_find","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/oliver-dvorski/array_find","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliver-dvorski%2Farray_find","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliver-dvorski%2Farray_find/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliver-dvorski%2Farray_find/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliver-dvorski%2Farray_find/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oliver-dvorski","download_url":"https://codeload.github.com/oliver-dvorski/array_find/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliver-dvorski%2Farray_find/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28302039,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T11:18:18.743Z","status":"ssl_error","status_checked_at":"2026-01-11T11:07:56.842Z","response_time":60,"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":["arrays","linear-search-algorithm","php","search"],"created_at":"2026-01-11T12:02:27.033Z","updated_at":"2026-01-11T12:02:27.187Z","avatar_url":"https://github.com/oliver-dvorski.png","language":"PHP","readme":"ℹ️ As of php 8.4, this function is [natively supported by php](https://www.php.net/manual/en/function.array-find.php).\n\nInstall the dependencies with `composer install`.\n\nYou can confirm that the program does what it should by running the `composer\ntest` script.\n\n## Usage\n\n```php\n$people = [\n  ['name' =\u003e 'John', 'age' =\u003e 20],\n  ['name' =\u003e 'Jane', 'age' =\u003e 21],\n  ['name' =\u003e 'Jack', 'age' =\u003e 22],\n];\n\n// Returns ['name' =\u003e 'Jane', 'age' =\u003e 21]\n$found = array_find($people, fn($item) =\u003e $item['name'] === 'Jane');\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliver-dvorski%2Farray_find","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foliver-dvorski%2Farray_find","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliver-dvorski%2Farray_find/lists"}