{"id":16624759,"url":"https://github.com/vumanskyi/php-open-graph-library","last_synced_at":"2026-05-25T13:41:08.723Z","repository":{"id":54665401,"uuid":"302975363","full_name":"vumanskyi/php-open-graph-library","owner":"vumanskyi","description":"PHP Open Graph library","archived":false,"fork":false,"pushed_at":"2022-03-21T20:24:44.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-18T02:13:31.024Z","etag":null,"topics":["opengraph","php","php-library","seo-meta","twitter-cards"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/vumanskyi/php-open-graph-library","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/vumanskyi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-10T19:28:38.000Z","updated_at":"2021-12-08T11:27:46.000Z","dependencies_parsed_at":"2022-08-13T23:11:00.008Z","dependency_job_id":null,"html_url":"https://github.com/vumanskyi/php-open-graph-library","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vumanskyi%2Fphp-open-graph-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vumanskyi%2Fphp-open-graph-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vumanskyi%2Fphp-open-graph-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vumanskyi%2Fphp-open-graph-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vumanskyi","download_url":"https://codeload.github.com/vumanskyi/php-open-graph-library/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243030808,"owners_count":20224666,"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":["opengraph","php","php-library","seo-meta","twitter-cards"],"created_at":"2024-10-12T03:47:55.645Z","updated_at":"2025-12-16T11:21:43.274Z","avatar_url":"https://github.com/vumanskyi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://supportukrainenow.org/\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg\" width=\"100%\"\u003e\u003c/a\u003e\n\n------\n\n[![CircleCI](https://circleci.com/gh/vumanskyi/php-open-graph-library.svg?style=svg)](https://circleci.com/gh/vumanskyi/php-open-graph-library)\n[![StyleCI](https://github.styleci.io/repos/302975363/shield?branch=main)](https://github.styleci.io/repos/302975363?branch=main)\n[![Total Downloads](https://poser.pugx.org/vumanskyi/php-open-graph-library/downloads)](https://packagist.org/packages/vumanskyi/php-open-graph-library)\n[![Latest Stable Version](https://poser.pugx.org/vumanskyi/php-open-graph-library/v/stable)](https://packagist.org/packages/vumanskyi/php-open-graph-library)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/vumanskyi/php-open-graph-library/blob/main/LICENSE)\n# PHP Open Graph library\n\nThis is a library to help you configure and render [Open Graph Protocol](https://ogp.me) and [Twitter Cards](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/abouts-cards)     for your website.\n\n## Installation\n\nThe package could be installed with composer:\n\n```\ncomposer require vumanskyi/php-open-graph-library\n```\n\n## Usage\n```\nuse VU\\OpenGraph\\Render;\nuse VU\\OpenGraph\\PropertyConfiguration;\nuse VU\\OpenGraph\\Properties\\Basic;\n\n$render = new Render();\n$configuration = new PropertyConfiguration($render);\n\n$basic = new Basic($configuration);\n$basic-\u003esetTitle('Test title')\n    -\u003esetDescription('Test description')\n    -\u003esetLocale('uk_UA')\n    -\u003ehandle();\n\necho $basic-\u003erender();\n```\nAnd the result will be:\n```\n\u003cmeta property=\"og:title\" content=\"Test title\"\u003e\n\u003cmeta property=\"og:description\" content=\"Test description\"\u003e\n\u003cmeta property=\"og:locale\" content=\"uk_UA\"\u003e\n```\n\nAnother types:\n - \\VU\\OpenGraph\\Properties\\Articles\n - \\VU\\OpenGraph\\Properties\\Audio\n - \\VU\\OpenGraph\\Properties\\Basic\n - \\VU\\OpenGraph\\Properties\\Book\n - \\VU\\OpenGraph\\Properties\\Image\n - \\VU\\OpenGraph\\Properties\\Profile\n - \\VU\\OpenGraph\\Properties\\Video\n - \\VU\\OpenGraph\\Properties\\TwitterCard\n \n## Unit testing\n```\n./vendor/bin/phpunit \n```\n---------------------- \nIf you have any [issues](https://github.com/vumanskyi/vanilla-open-graph/issues), please let me know\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvumanskyi%2Fphp-open-graph-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvumanskyi%2Fphp-open-graph-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvumanskyi%2Fphp-open-graph-library/lists"}