{"id":18546771,"url":"https://github.com/nabeghe/arrayer-php","last_synced_at":"2026-02-09T17:01:57.862Z","repository":{"id":258431381,"uuid":"874981923","full_name":"nabeghe/arrayer-php","owner":"nabeghe","description":"An array helper for PHP. It includes some useful methods and possibly other features.","archived":false,"fork":false,"pushed_at":"2025-07-02T19:24:19.000Z","size":26,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-25T23:40:52.506Z","etag":null,"topics":["array","arrays","library","php","php-array","php-arrays","php-lib","phplib","phplibraries","phplibrary"],"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/nabeghe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-10-18T20:38:52.000Z","updated_at":"2025-07-02T19:20:58.000Z","dependencies_parsed_at":"2024-12-18T04:17:56.948Z","dependency_job_id":"7f12ee13-14eb-4bb6-86e4-4a4425873771","html_url":"https://github.com/nabeghe/arrayer-php","commit_stats":null,"previous_names":["nabeghe/arrayer-php"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/nabeghe/arrayer-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeghe%2Farrayer-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeghe%2Farrayer-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeghe%2Farrayer-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeghe%2Farrayer-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nabeghe","download_url":"https://codeload.github.com/nabeghe/arrayer-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeghe%2Farrayer-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29273139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T13:47:44.167Z","status":"ssl_error","status_checked_at":"2026-02-09T13:47:43.721Z","response_time":56,"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":["array","arrays","library","php","php-array","php-arrays","php-lib","phplib","phplibraries","phplibrary"],"created_at":"2024-11-06T20:26:54.583Z","updated_at":"2026-02-09T17:01:57.840Z","avatar_url":"https://github.com/nabeghe.png","language":"PHP","readme":"# Arrayer (Array Helper for PHP)\n\n\u003e An array helper for PHP. It includes some useful methods and possibly other features.\n\nSome of the methods from the Arr class of the Laravel framework are also included in this library;\nhowever, some of them have been modified.\n\n\u003chr\u003e\n\n## 🫡 Usage\n\n### 🚀 Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require nabeghe/arrayer\n```\n\n\u003chr\u003e\n\n### Arr Class\n\nThe main class that includes the useful methods is `Nabegh\\Arrayer\\Arr`.\n\n#### Example:\n\n```php\nuse Nabeghe\\Arrayer\\Arrayer;\n\n$data1 = ['key_1' =\u003e 'value_1', 'key_3' =\u003e ['key_3_1' =\u003e 'value_3_1']];\n\n$data2 = ['key_2' =\u003e 'value_2'];\n\n$data3 = ['key_3' =\u003e ['key_3_2' =\u003e 'value_3_2']];\n\n$arrayer = new Arrayer();\n\nprint_r($arrayer-\u003emerge($data1, $data2, $data3)-\u003edata);\n\n/*\n    Array\n    (\n        [key_1] =\u003e value_1\n        [key_3] =\u003e Array\n            (\n                [key_3_1] =\u003e value_3_1\n                [key_3_2] =\u003e value_3_2\n            )\n    \n        [key_2] =\u003e value_2\n    )\n */\n```\n\n\u003chr\u003e\n\n### Arrayer Class\n\nAccepts any value, converts it to an array via `Arr::cast`, stores it, and returns it via `data` property.\n\nIt is possible to access the methods of the `Arr` class through the `Arrayer` object as well, with the difference that the main array parameter is no longer present.\n\nAdditionally, the `ArrayAccess` and `JsonSerializable` interfaces have also been implemented on `Arrayer` class.\n\n\u003chr\u003e\n\n## 📖 License\n\nLicensed under the MIT license, see [LICENSE.md](LICENSE.md) for details.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnabeghe%2Farrayer-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnabeghe%2Farrayer-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnabeghe%2Farrayer-php/lists"}