{"id":19933988,"url":"https://github.com/outcompute/phpinfo","last_synced_at":"2025-05-03T12:30:28.569Z","repository":{"id":57034053,"uuid":"82502377","full_name":"outcompute/PHPInfo","owner":"outcompute","description":"Get the output of phpinfo() as an array.","archived":false,"fork":false,"pushed_at":"2020-01-08T14:05:17.000Z","size":11,"stargazers_count":6,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-24T05:48:49.539Z","etag":null,"topics":["php","phpinfo"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/outcompute.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":"2017-02-20T01:04:52.000Z","updated_at":"2025-04-14T02:59:41.000Z","dependencies_parsed_at":"2022-08-24T06:30:43.924Z","dependency_job_id":null,"html_url":"https://github.com/outcompute/PHPInfo","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/outcompute%2FPHPInfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outcompute%2FPHPInfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outcompute%2FPHPInfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outcompute%2FPHPInfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/outcompute","download_url":"https://codeload.github.com/outcompute/PHPInfo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252190435,"owners_count":21708881,"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":["php","phpinfo"],"created_at":"2024-11-12T23:15:33.011Z","updated_at":"2025-05-03T12:30:28.334Z","avatar_url":"https://github.com/outcompute.png","language":"PHP","readme":"# PHPInfo\r\nA simple PHP library to get the output of [phpinfo()][phpinfoDoc] as an array when invoked from a command line script. You can submit a PR if you adapt it to the HTML version. Although by now you can compile the information to a reasonable degree of completeness from other functions, so this will be of use only when you absolutely have to parse phpinfo().\r\n  - Returns nested information for Configuration, modules in Configuration, Environment, PHP Variables \u0026 PHP License\r\n\r\n### Installation\r\nAdd this line to your composer.json file,\r\n```json\r\n\"outcompute/phpinfo\": \"1.0.0\"\r\n```\r\nand run.\r\n```sh\r\n$ composer update\r\n```\r\n\r\n### How to use\r\n```php\r\n\u003c?php\r\ninclude_once('vendor/autoload.php');\r\n\r\nob_start();\r\nphpinfo();\r\n$phpinfoAsString = ob_get_contents();\r\nob_get_clean();\r\n\r\n$phpInfo = new OutCompute\\PHPInfo\\PHPInfo();\r\n$phpInfo-\u003esetText($phpinfoAsString);\r\nvar_export($phpInfo-\u003eget());\r\n?\u003e\r\n```\r\n\r\n\r\n### TODO\r\n(PRs are welcome)\r\n - Add support for parsing the HTML version (the _parseHTML() method)\r\n - Add test cases\r\n\r\n\r\nLicense\r\n----\r\n\r\nGPL v2\r\n\r\n\r\n   [phpinfoDoc]: \u003chttp://php.net/manual/en/function.phpinfo.php\u003e\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutcompute%2Fphpinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutcompute%2Fphpinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutcompute%2Fphpinfo/lists"}