{"id":19488581,"url":"https://github.com/yocto/yoclib-oembed-php","last_synced_at":"2026-01-19T02:02:08.526Z","repository":{"id":257806251,"uuid":"866192793","full_name":"yocto/yoclib-oembed-php","owner":"yocto","description":"This yocLibrary enables your project to encode and decode OEmbed data in PHP.","archived":false,"fork":false,"pushed_at":"2024-10-02T13:28:55.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-27T04:28:53.983Z","etag":null,"topics":["composer","json","oembed","php","xml","yoclib","yocto"],"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/yocto.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,"zenodo":null}},"created_at":"2024-10-01T20:02:41.000Z","updated_at":"2024-10-02T13:28:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"2877da34-daf2-404c-bd54-13e5691564b1","html_url":"https://github.com/yocto/yoclib-oembed-php","commit_stats":null,"previous_names":["yocto/yoclib-oembed-php"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/yocto/yoclib-oembed-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yocto%2Fyoclib-oembed-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yocto%2Fyoclib-oembed-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yocto%2Fyoclib-oembed-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yocto%2Fyoclib-oembed-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yocto","download_url":"https://codeload.github.com/yocto/yoclib-oembed-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yocto%2Fyoclib-oembed-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28557784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T00:46:33.223Z","status":"online","status_checked_at":"2026-01-19T02:00:08.049Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["composer","json","oembed","php","xml","yoclib","yocto"],"created_at":"2024-11-10T21:04:02.331Z","updated_at":"2026-01-19T02:02:08.504Z","avatar_url":"https://github.com/yocto.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yocLib - OEmbed (PHP)\n\nThis yocLibrary enables your project to encode and decode OEmbed data in PHP.\n\n## Status\n\n[![PHP Composer](https://github.com/yocto/yoclib-oembed-php/actions/workflows/php.yml/badge.svg)](https://github.com/yocto/yoclib-oembed-php/actions/workflows/php.yml)\n[![codecov](https://codecov.io/gh/yocto/yoclib-oembed-php/graph/badge.svg)](https://codecov.io/gh/yocto/yoclib-oembed-php)\n\n## Installation\n\n`composer require yocto/yoclib-oembed`\n\n## Usage\n\n### Encoding\n\n```php\nuse YOCLIB\\OEmbed\\OEmbed;\n\n$data = [\n    'version' =\u003e '1.0',\n];\n\n$json = OEmbed::encode($data,'json');\n// or\n$xml = OEmbed::encode($data,);\n```\n\n### Decoding\n\n```php\nuse YOCLIB\\OEmbed\\OEmbed;\n\n$json = '{\"version\":\"1.0\"}';\n$data = OEmbed::decode($json,'json');\n\n// or\n\n$xml = '\u003coembed\u003e\u003cversion\u003e1.0\u003c/version\u003e\u003c/oembed\u003e';\n$data = OEmbed::decode($xml);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyocto%2Fyoclib-oembed-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyocto%2Fyoclib-oembed-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyocto%2Fyoclib-oembed-php/lists"}