{"id":20410028,"url":"https://github.com/vdlp/oc-schemaorg-plugin","last_synced_at":"2025-04-12T16:02:14.552Z","repository":{"id":47291349,"uuid":"225382248","full_name":"vdlp/oc-schemaorg-plugin","owner":"vdlp","description":"Provides the rendering of structured data on your October CMS powered website.","archived":false,"fork":false,"pushed_at":"2024-03-14T13:59:12.000Z","size":30,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-03-14T15:19:39.811Z","etag":null,"topics":["cms","laravel","october-cms","october-plugin","octobercms","php","schemaorg","search","seo"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vdlp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-02T13:32:11.000Z","updated_at":"2024-03-14T15:19:39.812Z","dependencies_parsed_at":"2024-11-15T12:16:38.876Z","dependency_job_id":null,"html_url":"https://github.com/vdlp/oc-schemaorg-plugin","commit_stats":{"total_commits":14,"total_committers":4,"mean_commits":3.5,"dds":0.2857142857142857,"last_synced_commit":"7eee5db85faec8538e322e51e20741897a8aa3e7"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-schemaorg-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-schemaorg-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-schemaorg-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-schemaorg-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vdlp","download_url":"https://codeload.github.com/vdlp/oc-schemaorg-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248593568,"owners_count":21130310,"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":["cms","laravel","october-cms","october-plugin","octobercms","php","schemaorg","search","seo"],"created_at":"2024-11-15T05:44:37.980Z","updated_at":"2025-04-12T16:02:14.495Z","avatar_url":"https://github.com/vdlp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vdlp.SchemaOrg\n\nProvides the rendering of structured data on your October CMS powered website.\n\n## What is structured data?\n\nStructured data is code in a specific format, written in such a way that search engines understand it. Search engines read the code and use it to display search results in a specific and much richer way. You can easily put this piece of code on your website.\n\nThere are all kinds of structured data. Structured data is always a code format. There’s structured data for books, for reviews, for movies, and for products in your online store, for instance. In all cases, structured data adds more details to your snippet in the search results.\n\nBrowse [Google’s Search Gallery](https://developers.google.com/search/docs/advanced/structured-data/search-gallery) to see which rich results are powered by structured data.\n\nSource: [yoast.com](https://yoast.com/what-is-structured-data/)\n\n## Requirements\n\n- PHP 8.0 or higher\n- October CMS 3.0 or higher\n\n## Installation\n\n`composer require vdlp/oc-schemaorg-plugin`\n\n## Usage\n\nTo render structured data from a component you can listen to the `Vdlp\\SchemaOrg\\Classes\\Events\\FetchStructuredData` event.\n\nExample:\n\n```\n/** @var \\Illuminate\\Contracts\\Events\\Dispatcher $eventDispatcher */\n$eventDispatcher = resolve(\\Illuminate\\Contracts\\Events\\Dispatcher::class);\n\n$eventDispatcher-\u003elisten(\\Vdlp\\SchemaOrg\\Classes\\Events\\FetchStructuredData::class, static function () {\n    return \\Spatie\\SchemaOrg\\Schema::localBusiness()\n        -\u003ename('VDLP')\n        -\u003eemail('octobercms@vdlp.nl')\n        -\u003econtactPoint(\\Spatie\\SchemaOrg\\Schema::contactPoint()-\u003eareaServed('Worldwide'));\n});\n```\n\nAdd the `vdlpStructuredData` component to your page or layout to render the structured data.\n\n## Issues\n\nIf you have issues using this plugin. Please create an issue on GitHub or contact us at [octobercms@vdlp.nl]().\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdlp%2Foc-schemaorg-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvdlp%2Foc-schemaorg-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdlp%2Foc-schemaorg-plugin/lists"}