{"id":19845210,"url":"https://github.com/rapidwebltd/array_undot","last_synced_at":"2025-05-01T21:30:25.928Z","repository":{"id":62533294,"uuid":"117241773","full_name":"rapidwebltd/array_undot","owner":"rapidwebltd","description":"array_undot (the opposite of the array_dot helper function) expands a dot notation array into a full multi-dimensional array.","archived":false,"fork":false,"pushed_at":"2018-04-20T13:50:15.000Z","size":12,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-10T20:14:00.159Z","etag":null,"topics":["array","dot-notation","helper-functions","laravel","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rapidwebltd.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":"2018-01-12T13:02:16.000Z","updated_at":"2023-04-16T08:15:07.000Z","dependencies_parsed_at":"2022-11-02T15:15:35.327Z","dependency_job_id":null,"html_url":"https://github.com/rapidwebltd/array_undot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidwebltd%2Farray_undot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidwebltd%2Farray_undot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidwebltd%2Farray_undot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidwebltd%2Farray_undot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rapidwebltd","download_url":"https://codeload.github.com/rapidwebltd/array_undot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224278483,"owners_count":17285079,"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":["array","dot-notation","helper-functions","laravel","php"],"created_at":"2024-11-12T13:06:54.002Z","updated_at":"2024-11-12T13:06:55.931Z","avatar_url":"https://github.com/rapidwebltd.png","language":"PHP","readme":"# array_undot\n\n[![Build Status](https://travis-ci.org/DivineOmega/array_undot.svg?branch=master)](https://travis-ci.org/DivineOmega/array_undot)\n[![Coverage Status](https://coveralls.io/repos/github/DivineOmega/array_undot/badge.svg?branch=master)](https://coveralls.io/github/DivineOmega/array_undot?branch=master)\n[![StyleCI](https://styleci.io/repos/130364810/shield?branch=master)](https://styleci.io/repos/130364810)\n![Packagist](https://img.shields.io/packagist/dt/DivineOmega/array_undot.svg)\n\nThis package provides a helper function called `array_undot`, which expands a dot notation array into a full multi-dimensional array. \nIt is, therefore, the opposite of the `array_dot` helper function provided by Laravel.\n\n# Installation\n\nTo install, just run the following composer command.\n\n```\ncomposer require rapidwebltd/array_undot\n```\n\nThe `array_undot` helper function will then be available globally in your project.\n\n# Usage\n\nThe following basic examples show how to use the `array_undot` helper function.\n\n```php\n$dotNotationArray = ['products.desk.price' =\u003e 100];\n\n$expanded = array_undot($dotNotationArray)\n\n// ['products' =\u003e ['desk' =\u003e ['price' =\u003e 100]]];\n```\n\n```php\n$dotNotationArray = ['products.desk.price' =\u003e 100, \n                     'products.desk.name' =\u003e 'Oak Desk',\n                     'products.lamp.price' =\u003e 15,\n                     'products.lamp.name' =\u003e 'Red Lamp'];\n\n$expanded = array_undot($dotNotationArray)\n\n/*\n[\n    'products' =\u003e [\n        'desk' =\u003e [\n            'price' =\u003e 100,\n            'name' =\u003e 'Oak Desk'\n        ],\n        'lamp' =\u003e [\n            'price' =\u003e 15,\n            'name' =\u003e 'Red Lamp'\n        ]\n    ]\n]\n*/\n\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapidwebltd%2Farray_undot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frapidwebltd%2Farray_undot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapidwebltd%2Farray_undot/lists"}