{"id":36980203,"url":"https://github.com/ejetar/laravel-formatter","last_synced_at":"2026-01-13T22:49:55.968Z","repository":{"id":56976011,"uuid":"198919822","full_name":"ejetar/laravel-formatter","owner":"ejetar","description":"A package that enables you to convert your data into various formats such as JSON, XML, CSV and YAML. Based on FuelPHP's 💧 formatter class.","archived":true,"fork":true,"pushed_at":"2020-04-03T15:03:34.000Z","size":124,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-26T23:48:29.450Z","etag":null,"topics":["conversion","convert","csv","data","format","formatter","json","laravel","output","php","response","xml","yaml"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Soapbox/laravel-formatter","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ejetar.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}},"created_at":"2019-07-26T00:42:17.000Z","updated_at":"2023-07-28T05:12:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ejetar/laravel-formatter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ejetar/laravel-formatter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejetar%2Flaravel-formatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejetar%2Flaravel-formatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejetar%2Flaravel-formatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejetar%2Flaravel-formatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ejetar","download_url":"https://codeload.github.com/ejetar/laravel-formatter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejetar%2Flaravel-formatter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28402160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"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":["conversion","convert","csv","data","format","formatter","json","laravel","output","php","response","xml","yaml"],"created_at":"2026-01-13T22:49:52.102Z","updated_at":"2026-01-13T22:49:55.963Z","avatar_url":"https://github.com/ejetar.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Formatter\n\n## Table of Contents\n  * [About](#about)\n  * [Installation](#installation)\n  * [Parsers](#parsers)\n  * [Formats](#formats)\n  * [General Usage](#general-usage)\n  * [Changelog](#changelog)\n  * [Contributing](#contributing)\n  * [License](#license)\n  \n## About\nA package that enables you to convert your data into various formats such as JSON, XML, CSV and YAML. Based on FuelPHP's 💧 formatter class.\n\n## Installation\n\nThrough command line:\n\n```bash\ncomposer require ejetar/laravel-formatter\n```\n\n## Parsers\nAll of the following are supported formats that the formatter can read from.\n* Array\n* CSV\n* JSON\n* XML\n* YAML\n\n## Formats\nAll of the following are formats that are supported for output.\n* Array\n* CSV\n* JSON\n* XML\n* YAML\n\n## General Usage\n\n__Including The Formatter__\n\n```php\nuse Ejetar\\Formatter\\Formatter;\n```\n\n__Supported Types__\n\n```php\nFormatter::JSON; //json\nFormatter::CSV;  //csv\nFormatter::XML;  //xml\nFormatter::ARR;  //array\nFormatter::YAML; //yaml\n```\n\n__Making Your First Formatter(s)__\n\n```php\n$formatter = Formatter::make($jsonString, Formatter::JSON);\n$formatter = Formatter::make($yamlString, Formatter::YAML);\n$formatter = Formatter::make($array, Formatter::ARR);\n...\n```\n\n__Outputting From Your Formatter__\n\n```php\n$csv   = $formatter-\u003etoCsv();\n$json  = $formatter-\u003etoJson();\n$xml   = $formatter-\u003etoXml();\n$array = $formatter-\u003etoArray();\n$yaml  = $formatter-\u003etoYaml();\n```\n\n## Changelog\nNothing for now...\n\n## Contributing\nContribute to this wonderful project, it will be a pleasure to have you with us. Let's help the free software community. You are invited to incorporate new features, make corrections, report bugs, and any other form of support.\nDon't forget to star in this repository! 😀 \n\n## License\nThis library is a open-source software licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejetar%2Flaravel-formatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fejetar%2Flaravel-formatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejetar%2Flaravel-formatter/lists"}