{"id":37236272,"url":"https://github.com/arodbits/phppods","last_synced_at":"2026-01-16T04:52:07.234Z","repository":{"id":57069118,"uuid":"126099268","full_name":"arodbits/phppods","owner":"arodbits","description":"A series of helpful components for building rapid PHP applications. ","archived":false,"fork":false,"pushed_at":"2018-04-05T16:16:55.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-04T07:54:28.025Z","etag":null,"topics":["backend","framework","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arodbits.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-03-21T00:15:29.000Z","updated_at":"2018-04-05T16:16:56.000Z","dependencies_parsed_at":"2022-08-24T10:20:44.446Z","dependency_job_id":null,"html_url":"https://github.com/arodbits/phppods","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/arodbits/phppods","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arodbits%2Fphppods","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arodbits%2Fphppods/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arodbits%2Fphppods/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arodbits%2Fphppods/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arodbits","download_url":"https://codeload.github.com/arodbits/phppods/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arodbits%2Fphppods/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["backend","framework","laravel","php"],"created_at":"2026-01-15T04:12:49.154Z","updated_at":"2026-01-15T04:12:49.836Z","avatar_url":"https://github.com/arodbits.png","language":"PHP","readme":"# PHPpods\nA series of helpful components for building rapid PHP applications. \n\n# What's available?\n* Array from dot notation\n* Create php files on demand by using a template or a stub file\n\n# How to install?\n```sh\ncomposer require thonyx/phppods \n```\n\n# Want to see it in action?\nRun a test! After installing the package, go to --from within your PHP project-- /vendor/thonyx/phppods and run: \n\ne.g: Convert an array back from a dot notation\n```php\ncomposer install \u0026\u0026 php UndotterTest.php\n```\n\n# How to use it?\nAll available functions are accessible as follows: \n\n\\Axonbits\\ComponentName::functionName();\n\n\n## Arrray from dot notation\n\nTransform back into a multidimensional array, one with flattened key-value pairs from a \"dot\" notation.\n\nBefore calling the function: \n\n```php\n\\Axonbits\\Arrays::undot[\n\t'name'=\u003e'Yale', \n\t'timeseries.2014.enrollment'=\u003e'1',\n\t'timeseries.2014.cost'=\u003e'100',\n\t'timeseries.2015.enrollment'=\u003e'200',\n\t'timeseries.2015.cost'=\u003e'200',\n\t'groups.colors.default'=\u003e'#white',\n\t'groups.colors.blue'=\u003e'#lalala'\n]);\n```\n\nAfter calling the function\n```php\n[\n  'name' =\u003e 'Yale',\n  'timeseries' =\u003e\n  [\n    2014 =\u003e\n    [\n      'enrollment' =\u003e '1',\n      'cost' =\u003e '100',\n    ],\n    2015 =\u003e\n    [\n      'enrollment' =\u003e '200',\n      'cost' =\u003e '200',\n    ],\n  ],\n  'groups' =\u003e\n  [\n    'colors' =\u003e\n    [\n      'default' =\u003e '#white',\n      'blue' =\u003e '#lalala',\n    ],\n  ],\n]\n```\n\nWhen transforming arrays you can specify the format the function call should return the response: \n\n--Available: JSON or ARRAY--\n\ne.g: \nReturn the result as as Json\n\n```php\n\\Axonbits\\Arrays::toJson()-\u003eundot[\n\t'name'=\u003e'Yale', \n\t'timeseries.2014.enrollment'=\u003e'1',\n\t'timeseries.2014.cost'=\u003e'100',\n\t'timeseries.2015.enrollment'=\u003e'200',\n\t'timeseries.2015.cost'=\u003e'200',\n\t'groups.colors.default'=\u003e'#white',\n\t'groups.colors.blue'=\u003e'#lalala'\n]);\n```\n\n## Filesystem: Create files from a template or stub file\n\nExample: \n\n```\n\\Axonbits\\Filesystem::\n    newFile(__DIR__ . '/tmp/SessionClass.php')\n    -\u003ewithStub($stubPath = __DIR__ . '/tmp/DummyClass.php', [\n        'DummyClass'     =\u003e 'SessionClass',\n        'DummyTimestamp' =\u003e '\"2018-01-01\"',\n        'DummyNamespace' =\u003e 'App\\\\Sessions',\n    ])\n    -\u003ewrite();\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farodbits%2Fphppods","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farodbits%2Fphppods","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farodbits%2Fphppods/lists"}