{"id":35317774,"url":"https://github.com/phore/phore-core","last_synced_at":"2026-04-08T11:31:00.787Z","repository":{"id":57039165,"uuid":"147496222","full_name":"phore/phore-core","owner":"phore","description":"Core library","archived":false,"fork":false,"pushed_at":"2026-01-01T15:05:41.000Z","size":160,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-20T18:33:03.476Z","etag":null,"topics":["phore"],"latest_commit_sha":null,"homepage":"https://infracamp.org/project/phore/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-09-05T09:50:13.000Z","updated_at":"2026-01-01T15:05:30.000Z","dependencies_parsed_at":"2023-01-30T01:45:43.656Z","dependency_job_id":"3b5b7ef7-748c-41b9-95fa-6fd30aef564a","html_url":"https://github.com/phore/phore-core","commit_stats":{"total_commits":109,"total_committers":5,"mean_commits":21.8,"dds":0.4311926605504587,"last_synced_commit":"e44f7078fc5f0c5cb46fdc09c2b9050cff829978"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/phore/phore-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phore","download_url":"https://codeload.github.com/phore/phore-core/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31553966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["phore"],"created_at":"2025-12-30T18:50:18.185Z","updated_at":"2026-04-08T11:31:00.752Z","avatar_url":"https://github.com/phore.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phore core library\n\n[![Actions Status](https://github.com/phore/phore-core/workflows/tests/badge.svg)](https://github.com/phore/phore-core/actions)\n\n\n## Install\n\n```\ncomposer requre phore/core\n```\n\n## Basic usage\n\n\n### Pluck\n\n```php\n$data = [\"some\"=\u003e[\"path\"=\u003e\"data\"]];\n\nassert( \"data\" === phore_pluck(\"some.path\", $data) );\n\nassert( \"data\" === phore_pluck([\"some\", \"path\"], $data) );\n\nassert( \"fail\" === phore_pluck(\"unknown\", $data, \"fail\") );\nphore_pluck(\"unknown\", $data, new InvalidArgumentException(\"path missing\"));\n\n\n// if default is array, phore_pluck will ensure to return array\nassert ( [] == phore_pluck(\"some.path\", $data, []) );\n```\n\n\n### Transform Array\n\n```php\n\n$input = [\"a\", \"remove\"];\n\n\n$out = phore_array_transform($input, function ($key, $value) {\n    if ($key == \"remove\")\n        return null;\n    return [\"x\"=\u003e\"y\"];\n});\n\nassert([[\"x\"=\u003e\"y\"]] == $out);\n\n\n```\n\n\n\n\n### Text functions\n\n- `phore_text_unindent(string $input)`\n\n\n### phore_random_str()\n\nWrapper around libsodium and \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphore%2Fphore-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphore%2Fphore-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphore%2Fphore-core/lists"}