{"id":46192468,"url":"https://github.com/leonelquinteros/php-toml","last_synced_at":"2026-03-03T01:05:36.937Z","repository":{"id":7099827,"uuid":"8391880","full_name":"leonelquinteros/php-toml","owner":"leonelquinteros","description":"PHP TOML parser","archived":false,"fork":false,"pushed_at":"2019-07-10T21:38:22.000Z","size":75,"stargazers_count":26,"open_issues_count":4,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-24T23:32:47.791Z","etag":null,"topics":["packagist","php","php-parser","php-toml","toml"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leonelquinteros.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-24T14:53:32.000Z","updated_at":"2023-03-10T03:27:49.000Z","dependencies_parsed_at":"2022-08-21T14:50:27.883Z","dependency_job_id":null,"html_url":"https://github.com/leonelquinteros/php-toml","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/leonelquinteros/php-toml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonelquinteros%2Fphp-toml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonelquinteros%2Fphp-toml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonelquinteros%2Fphp-toml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonelquinteros%2Fphp-toml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leonelquinteros","download_url":"https://codeload.github.com/leonelquinteros/php-toml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonelquinteros%2Fphp-toml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30028236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T00:31:48.536Z","status":"ssl_error","status_checked_at":"2026-03-03T00:30:56.176Z","response_time":60,"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":["packagist","php","php-parser","php-toml","toml"],"created_at":"2026-03-03T01:05:35.989Z","updated_at":"2026-03-03T01:05:36.925Z","avatar_url":"https://github.com/leonelquinteros.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Packagist](https://img.shields.io/packagist/v/leonelquinteros/php-toml.svg)](https://packagist.org/packages/leonelquinteros/php-toml)\n[![Packagist](https://img.shields.io/packagist/l/leonelquinteros/php-toml.svg)](https://packagist.org/packages/leonelquinteros/php-toml)\n[![Build Status](https://travis-ci.org/leonelquinteros/php-toml.svg?branch=master)](https://travis-ci.org/leonelquinteros/php-toml)\n[![Packagist](https://img.shields.io/packagist/dt/leonelquinteros/php-toml.svg)](https://packagist.org/packages/leonelquinteros/php-toml)\n\n\nPHP TOML parser\n===============\n\nPHP parser for TOML language ( https://github.com/toml-lang/toml )\n\n\nSupport\n-------\n\nTOML version: [v0.4.0](https://github.com/mojombo/toml/blob/master/versions/en/toml-v0.4.0.md)\n\n\nRequirements\n------------\n\n- PHP 5.2+\n\n\nInstallation\n------------\n\nGrab src/Toml.php and use it where you need it.\n\nThis library intends to stay simple and support older versions of PHP down to 5.2.\nCommon autoloaders would work for standard use as long as the file Toml.php is in the include path.\n\n\nIf you need to use it into namespaced environments or with a certain autoloader struct,\nyou can wrap it up to your own taste creating a simple file like:\n\n\n##### /some/project/namespace/path/My/Own/Toml.php\n\n```php\n\u003c?php\nnamespace My\\Own\n\nrequire(\"/path/to/github/cloned/repo/php-toml/src/Toml.php\");\n\n```\n\n\n##### /some/project/autoloader/class/My/Own/Toml.php\n\n```php\n\u003c?php\n\nrequire(\"/path/to/github/cloned/repo/php-toml/src/Toml.php\");\n\nclass My_Own_Toml extends Toml {}\n\n```\n\n\nUsage\n-----\n\n```php\n\u003c?php\nrequire(\"../src/Toml.php\");\n\n// Parse TOML string\n$tomlStr = file_get_contents('example.toml');\n$result = Toml::parse($tomlStr);\n\n\n// Parse TOML file path\n$result = Toml::parseFile('example.toml');\n```\n\n\nTest\n----\n\nThis project supports the toml-test Test Suite:\n\n(https://github.com/BurntSushi/toml-test)\n\nTo run the test suite, after toml-test is installed on your environment, run the following:\n\n```bash\ntoml-test /path/to/github/cloned/repo/php-toml/toml-test/test.php\n```\n\n\nContribute\n----------\n\n- Use and test the lib.\n- Report issues/bugs/comments/suggestions on Github\n- Send me your pull requests with improvements/new features\n\n\nLicense\n-------\n\nBSD License\n\n```\nCopyright (c) 2013 Leonel Quinteros.\nAll rights reserved.\n\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n\n * Redistributions of source code must retain the above copyright\n   notice, this list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above\n   copyright notice, this list of conditions and the following disclaimer\n   in the documentation and/or other materials provided with the\n   distribution.\n * Neither the name of the  nor the names of its\n   contributors may be used to endorse or promote products derived from\n   this software without specific prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonelquinteros%2Fphp-toml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonelquinteros%2Fphp-toml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonelquinteros%2Fphp-toml/lists"}