{"id":17160985,"url":"https://github.com/ezitisitis/laravel-open-graph","last_synced_at":"2025-10-16T14:27:56.268Z","repository":{"id":63178263,"uuid":"565724205","full_name":"ezitisitis/laravel-open-graph","owner":"ezitisitis","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-08T18:44:03.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T13:36:05.374Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ezitisitis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"patreon":"ezitisitis"}},"created_at":"2022-11-14T07:34:03.000Z","updated_at":"2024-08-08T18:44:06.000Z","dependencies_parsed_at":"2024-08-08T21:20:35.343Z","dependency_job_id":null,"html_url":"https://github.com/ezitisitis/laravel-open-graph","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"f207a5286c6f25cb1af765fe1b2a62ad298b50d5"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezitisitis%2Flaravel-open-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezitisitis%2Flaravel-open-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezitisitis%2Flaravel-open-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezitisitis%2Flaravel-open-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ezitisitis","download_url":"https://codeload.github.com/ezitisitis/laravel-open-graph/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246351959,"owners_count":20763386,"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":[],"created_at":"2024-10-14T22:26:44.320Z","updated_at":"2025-10-16T14:27:51.227Z","avatar_url":"https://github.com/ezitisitis.png","language":"PHP","funding_links":["https://patreon.com/ezitisitis"],"categories":[],"sub_categories":[],"readme":"# Laravel Open Graph\n\n[![Latest Version on Packagist][badge-version]][link-packagist]\n[![Total Downloads][badge-downloads]][link-packagist]\n[![CI Build Status][badge-ci]][link-ci]\n[![Style CI Build Status][badge-style-ci]][link-style-ci]\n\nSetting Open Graph for Laravel.\n\n## Install\n\nVia Composer install:\n\n```bash\ncomposer require ezitisitis/laravel-open-graph\n```\n\nInclude Open Graph meta view into your layout `\u003chead\u003e`:\n\n```blade\n@include('open-graph::meta')\n```\n\n## Usage\n\nSet Open Graph metadata into Controller (this example page title default is Laravel app name):\n\n*HomeController*\n```php\n\u003c?php\n\nnamespace App\\Http\\Controllers;\n\nuse Ezitisitis\\LaravelOpenGraph\\Facades\\OpenGraph;\n\nclass HomeController extends Controller\n{\n    public function index()\n    {\n        OpenGraph::start()\n            -\u003esetTitle()\n            -\u003esetDescription('The site description...')\n            -\u003esetImage(asset('images/og-image.png'));\n\n        return view('home');\n    }\n}\n```\n\nSet the article's Open Graph metadata Controller (this example article title like `Article name - App name`):\n\n*ArticleController*\n```php\n\u003c?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Article;\nuse Ezitisitis\\LaravelOpenGraph\\Facades\\OpenGraph;\n\nclass ArticleController extends Controller\n{\n    public function show(Article $article)\n    {\n        OpenGraph::start()\n            -\u003esetType('article')\n            -\u003esetTitle($article-\u003etitle)\n            -\u003esetDescription($article-\u003edescription)\n            -\u003esetImage($article-\u003ethumbnail)\n            -\u003esetData([\n                'article:published_time' =\u003e $article-\u003ecreated_at-\u003etoIso8601String(),\n            ]);\n\n        return view('home');\n    }\n}\n```\n\n## Credits\n\n- [Marks Bogdanovs](https://www.ezitisitis.com)\n\n[badge-version]: https://img.shields.io/packagist/v/ezitisitis/laravel-open-graph?style=flat-square\n[badge-downloads]: https://img.shields.io/packagist/dt/ezitisitis/laravel-open-graph?style=flat-square\n[badge-ci]: https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fezitisitis%2Flaravel-open-graph%2Fbadge%3Fref%3Dmain\u0026style=flat-square\n[badge-style-ci]: https://github.styleci.io/repos/565724205/shield?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/ezitisitis/laravel-open-graph\n[link-ci]: https://actions-badge.atrox.dev/ezitisitis/laravel-open-graph/goto?ref=main\n[link-style-ci]: https://github.styleci.io/repos/565724205\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezitisitis%2Flaravel-open-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fezitisitis%2Flaravel-open-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezitisitis%2Flaravel-open-graph/lists"}