{"id":24402289,"url":"https://github.com/p810/dot","last_synced_at":"2025-04-11T20:10:18.199Z","repository":{"id":57034859,"uuid":"51472148","full_name":"p810/Dot","owner":"p810","description":"A utility for traversing arrays using dot notation","archived":false,"fork":false,"pushed_at":"2019-08-08T20:20:16.000Z","size":18,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T16:06:02.734Z","etag":null,"topics":[],"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/p810.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":"2016-02-10T21:06:04.000Z","updated_at":"2024-05-14T01:10:27.000Z","dependencies_parsed_at":"2022-08-23T20:50:54.732Z","dependency_job_id":null,"html_url":"https://github.com/p810/Dot","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p810%2FDot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p810%2FDot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p810%2FDot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p810%2FDot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p810","download_url":"https://codeload.github.com/p810/Dot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248473127,"owners_count":21109628,"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":[],"created_at":"2025-01-20T00:59:52.849Z","updated_at":"2025-04-11T20:10:18.176Z","avatar_url":"https://github.com/p810.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dot\n\u003e A utility for traversing arrays using dot notation\n\n## Installation\n```\n$ composer require p810/dot\n```\n\n## Example usage\n```php\n\u003c?php\n\np810\\Dot\\find('foo.bar', [\n    'foo' =\u003e [\n        'bar' =\u003e 'Hello world!'\n    ]\n]);\n#=\u003e string(12) \"Hello world!\"\n```\n\n## API\n#### `p810\\Dot\\find(string $needle, array $haystack): mixed`\nSearches an array for a value based on a dot notated string of keys\n\n| Argument    | Type     | Default | Description                  |\n|-------------|----------|---------|------------------------------|\n| `$needle`   | `string` | n/a     | A dot separated list of keys |\n| `$haystack` | `array`  | n/a     | The array to traverse        |\n\n\u003e :bulb: `p810\\Dot\\search()` is an alias for this function\n\n#### `p810\\Dot\\getKeysFromString(string $keys): array\u003cint,string|int\u003e`\nReturns a list of keys from a dot notated string\n\n| Argument | Type     | Default | Description                  |\n|----------|----------|---------|------------------------------|\n| `$keys`  | `string` | n/a     | A dot separated list of keys |\n\n## License\nThis package is released under the [MIT License](https://github.com/p810/Dot/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp810%2Fdot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp810%2Fdot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp810%2Fdot/lists"}