{"id":22276120,"url":"https://github.com/noud/laravel-seo-schema-org","last_synced_at":"2025-07-28T16:32:35.570Z","repository":{"id":57028606,"uuid":"233250314","full_name":"noud/laravel-seo-schema-org","owner":"noud","description":"Laravel SEO Schema.org","archived":false,"fork":false,"pushed_at":"2020-09-26T09:59:45.000Z","size":727,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-04T14:45:53.995Z","etag":null,"topics":["laravel","schema-org","seo"],"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-11T15:10:03.000Z","updated_at":"2023-05-31T19:08:11.000Z","dependencies_parsed_at":"2022-08-23T16:20:45.226Z","dependency_job_id":null,"html_url":"https://github.com/noud/laravel-seo-schema-org","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noud%2Flaravel-seo-schema-org","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noud%2Flaravel-seo-schema-org/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noud%2Flaravel-seo-schema-org/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noud%2Flaravel-seo-schema-org/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noud","download_url":"https://codeload.github.com/noud/laravel-seo-schema-org/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227932578,"owners_count":17843136,"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":["laravel","schema-org","seo"],"created_at":"2024-12-03T14:13:32.251Z","updated_at":"2024-12-03T14:13:32.918Z","avatar_url":"https://github.com/noud.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel SEO Schema.org\n\nLaravel SEO Schema.org 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-schema-org\n```\n\n## Usage in models\n\nNow you can extend your models from Schema.org\n\n```\n\u003c?php\n\nnamespace App\\Models;\n\nuse SEO\\SchemaOrg\\Models\\BlogPosting as SchemaOrgBlogPosting;\n\nclass BlogPosting extends SchemaOrgBlogPosting\n{}\n```\n\n### [Schema.org](https://schema.org) [Types](https://schema.org/docs/full.html)\n\n- [Thing](https://schema.org/Thing)\n    - Action\n        - [SearchAction](https://schema.org/SearchAction)\n    - [CreativeWork](https://schema.org/CreativeWork)\n        - [Article](https://schema.org/Article)\n            - SocialMediaPosting\n                - [BlogPosting](https://schema.org/BlogPosting)\n        - [WebSite](https://schema.org/WebSite)\n    - [Organization](https://schema.org/Organization)\n        - [LocalBusiness](https://schema.org/LocalBusiness)\n    - [Person](https://schema.org/Person)\n    - [Place](https://schema.org/Place)\n        - [LocalBusiness](https://schema.org/LocalBusiness)\n    - Intangible\n        - [ItemList](http://schema.org/ItemList)\n            - [BreadcrumbList](https://schema.org/BreadcrumbList)\n        - [JobPosting](https://schema.org/JobPosting)\n        - [ListItem](http://schema.org/ListItem)\n        - [PropertyValueSpecification](https://schema.org/PropertyValueSpecification)\n        - [Role](https://schema.org/Role)\n        - StructuredValue\n            - [ContactPoint](https://schema.org/ContactPoint)\n                - [PostalAddress](https://schema.org/PostalAddress)\n            - [GeoCoordinates](https://schema.org/GeoCoordinates)\n            - [MonetaryAmount](https://schema.org/MonetaryAmount)\n            - [OpeningHoursSpecification](https://schema.org/OpeningHoursSpecification)\n            - [PropertyValue](https://schema.org/PropertyValue)\n            - [QuantitativeValue](https://schema.org/QuantitativeValue)\n\n## [Entity-Relationship Diagram](https://en.wikipedia.org/wiki/Entity–relationship_model)\n\n![Schema.org Entity-Relationship Diagram](./docs/erd.png?raw=true \"Schema.org 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-schema-org\": \"*\"\n    },\n    \"repositories\": [\n        {\n            \"type\": \"path\",\n            \"url\": \"../laravel-seo-schema-org\"\n        }\n    ]\n```\nIn ```.env``` of the target project i set the database to an alternative database\n```\nDB_DATABASE=schema-org\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-schema-org/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-schema-org'),\n        'namespace' =\u003e 'SEO\\SchemaOrg\\Models',\n```\nI generate the models from this schema like so in the target project:\n```\nphp artisan code:models --schema=schema-org\n```\n\nThen copy everything from ```app/Models-schema-org``` to the package.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoud%2Flaravel-seo-schema-org","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoud%2Flaravel-seo-schema-org","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoud%2Flaravel-seo-schema-org/lists"}