{"id":24529268,"url":"https://github.com/opencomponents/oc-client-php","last_synced_at":"2025-04-14T17:11:01.946Z","repository":{"id":57032107,"uuid":"90885929","full_name":"opencomponents/oc-client-php","owner":"opencomponents","description":"PHP client for OpenComponents","archived":false,"fork":false,"pushed_at":"2023-11-07T18:11:50.000Z","size":103,"stargazers_count":6,"open_issues_count":2,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-28T05:51:02.901Z","etag":null,"topics":["oc-client","opencomponents","php","widgets"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opencomponents.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-10T16:32:12.000Z","updated_at":"2023-09-08T12:15:21.000Z","dependencies_parsed_at":"2025-01-22T07:45:59.201Z","dependency_job_id":null,"html_url":"https://github.com/opencomponents/oc-client-php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencomponents%2Foc-client-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencomponents%2Foc-client-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencomponents%2Foc-client-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencomponents%2Foc-client-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opencomponents","download_url":"https://codeload.github.com/opencomponents/oc-client-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248923764,"owners_count":21183954,"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":["oc-client","opencomponents","php","widgets"],"created_at":"2025-01-22T07:35:42.457Z","updated_at":"2025-04-14T17:11:01.918Z","avatar_url":"https://github.com/opencomponents.png","language":"PHP","readme":"# oc-client-php\n\n[![Build status][build svg]][build status]\n[![Code coverage][coverage svg]][coverage]\n\nPHP client for [OpenComponents][open-components]\n\nFor a nodejs implementation check this [link][oc-client-node]. This library is heavily based on it.\n\n## Install\n\n```bash\ncomposer require opencomponents/oc-client-php\n```\n\n## Quickstart\n\n```php\nuse OpenComponents\\Client;\n\n// Initializing the client\n$client = new Client(array(\n    \"serverRendering\" =\u003e 'https://your-components.repository.com/'\n));\n\n// Render some component\n$components = $client-\u003erenderComponents(array(\n    array(\n        'name' =\u003e 'your-amazing-widget',\n        'parameters' =\u003e array(\n            'param1' =\u003e 'hello opencomponents!',\n            'param2' =\u003e 'just show me the component'\n        )\n    ),\n    array(\n        'name' =\u003e 'one-more-component'\n    )\n));\n\n// Print the rendered component and volià\necho $components['html'];\n```\n\n## Running tests\n\n```bash\ncomposer test\n```\n\n[open-components]: https://github.com/opentable/oc\n[oc-client-node]: https://github.com/opencomponents/oc-client-node\n[build status]: https://travis-ci.org/opencomponents/oc-client-php\n[build svg]: https://img.shields.io/travis/opencomponents/oc-client-php/master.svg?style=flat-square\n\n[coverage]: https://codecov.io/gh/opencomponents/oc-client-php\n[coverage svg]: https://img.shields.io/codecov/c/github/opencomponents/oc-client-php/master.svg?style=flat-square\n","funding_links":[],"categories":["Clients"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencomponents%2Foc-client-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopencomponents%2Foc-client-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencomponents%2Foc-client-php/lists"}