{"id":22276162,"url":"https://github.com/noud/laravel-seo-google-structured-data","last_synced_at":"2025-03-25T17:27:11.116Z","repository":{"id":50887619,"uuid":"233297954","full_name":"noud/laravel-seo-google-structured-data","owner":"noud","description":"Laravel SEO Google Structured data","archived":false,"fork":false,"pushed_at":"2020-09-26T09:59:33.000Z","size":107,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T01:26:41.738Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noud.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}},"created_at":"2020-01-11T21:11:21.000Z","updated_at":"2023-04-12T11:45:45.000Z","dependencies_parsed_at":"2022-09-22T14:41:19.758Z","dependency_job_id":null,"html_url":"https://github.com/noud/laravel-seo-google-structured-data","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/noud%2Flaravel-seo-google-structured-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noud%2Flaravel-seo-google-structured-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noud%2Flaravel-seo-google-structured-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noud%2Flaravel-seo-google-structured-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noud","download_url":"https://codeload.github.com/noud/laravel-seo-google-structured-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245509662,"owners_count":20627027,"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-12-03T14:13:46.068Z","updated_at":"2025-03-25T17:27:11.088Z","avatar_url":"https://github.com/noud.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel SEO Google Structured data\n\nLaravel SEO Google Structured data package.\n\n## Requirements\n\n* PHP 7.2+\n* Laravel 5.6+\n\n## Installation\n\nInstall the package by running this command in your terminal/cmd:\n```\ncomposer require noud/laravel-seo-google-structured-data\n```\n\n## Usage in models\n\nNow you can extend your models from Google Structured data\n```\n\u003c?php\n\nnamespace App\\Models;\n\nuse SEO\\Google\\Structured\\data\\Models\\WebSite as GoogleWebSite;\n\nclass WebSiteGoogle extends GoogleWebSite\n{}\n```\n\n## Structured data and Types used\n\n### [Google Search](https://developers.google.com/search) [Structured data](https://developers.google.com/search/docs/data-types/article)\n\n- [Sitelinks Searchbox](https://developers.google.com/search/docs/data-types/sitelinks-searchbox)\n\n### [Google Search](https://developers.google.com/search) [Structured data](https://developers.google.com/search/docs/data-types/article) conform [Schema.org](https://schema.org)\n\n- [Article](https://developers.google.com/search/docs/data-types/article) can be\n    - [Article](https://schema.org/Article)\n    - [NewsArticle](https://schema.org/NewsArticle)\n    - [BlogPosting](https://schema.org/BlogPosting)\n- [Breadcrumb](https://developers.google.com/search/docs/data-types/breadcrumb) consists of\n    - [BreadcrumbList](https://schema.org/BreadcrumbList)\n    - [ListItem](https://schema.org/ListItem)\n- [Carousel](https://developers.google.com/search/docs/data-types/carousel) consists of\n    - [ItemList](https://schema.org/ItemList)\n    - [ListItem](https://schema.org/ListItem)\n- [Job Posting](https://developers.google.com/search/docs/data-types/job-posting) is\n    - [JobPosting](https://schema.org/JobPosting)\n- [Local Business Listing](https://developers.google.com/search/docs/data-types/local-business) is\n    - [LocalBusiness](https://schema.org/LocalBusiness)\n\n## [Entity-Relationship Diagram](https://en.wikipedia.org/wiki/Entity–relationship_model)\n\n![Google Structured data Entity-Relationship Diagram](./docs/erd.png?raw=true \"Google Structured data Entity-Relationship Diagram\")\n\n## Development\n\nPut this package directory beside your project directory.\n\nIn ```conmposer.json``` of the target project add\n```\n    \"require\": {\n        \"noud/laravel-seo-google-structured-data\": \"*\"\n    },\n    \"repositories\": [\n        {\n            \"type\": \"path\",\n            \"url\": \"../laravel-seo-google-structured-data\"\n        }\n    ]\n```\nIn ```.env``` of the target project i set the database to an alternative database\n```\nDB_DATABASE=google-structured-data\n#DB_DATABASE=seo\n```\n\n## Development migration\n\nI migrate just this schema like so in the target project:\n```\nphp artisan migrate --realpath --path=/var/www/laravel-seo-google-structured-data/src/database/migrations\n```\n\n## Development models generation\n\nIn the target project set the path and namespace in ```config/models.php```\n```\n        'path' =\u003e app_path('Models-google-structured-data'),\n        'namespace' =\u003e 'SEO\\Google\\Structured\\data\\Models',\n```\nI generate the models from this schema like so in the target project:\n```\nphp artisan code:models --schema=google-structured-data\n```\n\nThen copy everything from ```app/Models-google-structured-data``` to the package.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoud%2Flaravel-seo-google-structured-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoud%2Flaravel-seo-google-structured-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoud%2Flaravel-seo-google-structured-data/lists"}