{"id":26976876,"url":"https://github.com/ovidigital/js-object-to-json","last_synced_at":"2025-04-03T12:17:16.692Z","repository":{"id":41635785,"uuid":"257290239","full_name":"ovidigital/js-object-to-json","owner":"ovidigital","description":"PHP library to convert a JavaScript object string to JSON format","archived":false,"fork":false,"pushed_at":"2023-12-08T18:42:02.000Z","size":37,"stargazers_count":18,"open_issues_count":4,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T19:04:30.832Z","etag":null,"topics":["convert","javascript","json","object"],"latest_commit_sha":null,"homepage":null,"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/ovidigital.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-04-20T13:30:46.000Z","updated_at":"2024-10-11T14:05:15.000Z","dependencies_parsed_at":"2024-06-18T21:19:05.523Z","dependency_job_id":"a8282e08-13a7-4073-a452-e77813334f24","html_url":"https://github.com/ovidigital/js-object-to-json","commit_stats":{"total_commits":46,"total_committers":6,"mean_commits":7.666666666666667,"dds":0.5,"last_synced_commit":"192613f1c619635b37125c0382beb8bb14be14ac"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovidigital%2Fjs-object-to-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovidigital%2Fjs-object-to-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovidigital%2Fjs-object-to-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovidigital%2Fjs-object-to-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ovidigital","download_url":"https://codeload.github.com/ovidigital/js-object-to-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246998229,"owners_count":20866696,"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":["convert","javascript","json","object"],"created_at":"2025-04-03T12:17:16.203Z","updated_at":"2025-04-03T12:17:16.686Z","avatar_url":"https://github.com/ovidigital.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ovidigital/js-object-to-json\n###### PHP library to convert a JavaScript object string to JSON formatted string\n\n[![Latest Version](https://img.shields.io/packagist/v/ovidigital/js-object-to-json.svg?acheSeconds=3600\u0026label=latest%20version)](https://github.com/ovidigital/js-object-to-json/releases)\n[![Build Status](https://github.com/ovidigital/js-object-to-json/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/ovidigital/js-object-to-json/actions/workflows/ci.yml?query=branch%3Amaster)\n[![codecov](https://codecov.io/gh/ovidigital/js-object-to-json/branch/master/graph/badge.svg?token=YMKLV63PTA)](https://codecov.io/gh/ovidigital/js-object-to-json)\n\n## Installation\n```bash\ncomposer require ovidigital/js-object-to-json\n```\n\n## Usage\n\n```php\n// A variable containing a JavaScript object as a string\n$jsObjectString = \"{ foo:  'bar' }\";\n\n// Convert the JavaScript object to JSON format\n$json = \\OviDigital\\JsObjectToJson\\JsConverter::convertToJson($jsObjectString);\n\n// Alternatively convert the JavaScript object to a PHP array\n$phpArray = \\OviDigital\\JsObjectToJson\\JsConverter::convertToArray($jsObjectString);\n```\n\n## Contributing\n\nFeel free to submit a pull request or create an issue.\n\n## License\nThis project is licensed under the terms of the MIT license.\n\nCheck the [LICENSE.md](LICENSE.md) file for license rights and limitations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovidigital%2Fjs-object-to-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fovidigital%2Fjs-object-to-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovidigital%2Fjs-object-to-json/lists"}