{"id":13752914,"url":"https://github.com/nilportugues/php-schema.org-mapping","last_synced_at":"2025-06-21T23:05:01.695Z","repository":{"id":57027245,"uuid":"48199103","full_name":"nilportugues/php-schema.org-mapping","owner":"nilportugues","description":"A fluent interface to create mappings using Schema.org for Microdata and JSON-LD.","archived":false,"fork":false,"pushed_at":"2016-03-06T10:15:21.000Z","size":2881,"stargazers_count":31,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-30T20:07:40.852Z","etag":null,"topics":["api","builder","json-ld","mapping","microdata","microservice","microservices","php","php7","schema","schema-org"],"latest_commit_sha":null,"homepage":"http://nilportugues.com","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/nilportugues.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-17T21:25:28.000Z","updated_at":"2023-12-05T10:25:47.000Z","dependencies_parsed_at":"2022-08-23T16:11:07.580Z","dependency_job_id":null,"html_url":"https://github.com/nilportugues/php-schema.org-mapping","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nilportugues/php-schema.org-mapping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fphp-schema.org-mapping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fphp-schema.org-mapping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fphp-schema.org-mapping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fphp-schema.org-mapping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nilportugues","download_url":"https://codeload.github.com/nilportugues/php-schema.org-mapping/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fphp-schema.org-mapping/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261206104,"owners_count":23124837,"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":["api","builder","json-ld","mapping","microdata","microservice","microservices","php","php7","schema","schema-org"],"created_at":"2024-08-03T09:01:12.597Z","updated_at":"2025-06-21T23:04:56.675Z","avatar_url":"https://github.com/nilportugues.png","language":"PHP","funding_links":["https://paypal.me/nilportugues"],"categories":["schema"],"sub_categories":[],"readme":"# Schema.org Mapping\n\n[![Build Status](https://travis-ci.org/nilportugues/php-schema.org-mapping.svg?branch=master)](https://travis-ci.org/nilportugues/php-schema.org-mapping)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nilportugues/schema.org-mapping/badges/quality-score.png)](https://scrutinizer-ci.com/g/nilportugues/schema.org-mapping/?branch=master) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/d32a29ac-4f5f-4ede-8aac-caf6d5e2022b/mini.png??)](https://insight.sensiolabs.com/projects/d32a29ac-4f5f-4ede-8aac-caf6d5e2022b) \n[![Latest Stable Version](https://poser.pugx.org/nilportugues/schema-org/v/stable)](https://packagist.org/packages/nilportugues/schema-org) \n[![Total Downloads](https://poser.pugx.org/nilportugues/schema-org/downloads)](https://packagist.org/packages/nilportugues/schema-org) \n[![License](https://poser.pugx.org/nilportugues/schema-org/license)](https://packagist.org/packages/nilportugues/schema-org) \n[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://paypal.me/nilportugues)\n\nA fluent interface to create mappings using Schema.org for Microdata and JSON-LD, supporting Schema.org v2.2 (latest).\n\n## Installation\n\nUse [Composer](https://getcomposer.org) to install the package:\n\n```\n$ composer require nilportugues/schema-org\n```\n\n## Usage\n\nAll you need to do is call the `SchemaOrg::schemas()` method and a fluent interface will be at your disposal.\n\nHaving a fluent interface makes it really easy to use as no previous knowledge of the Schemas is required. Considering how complex are the provided schemas by Schema.org this is really a relieve!\n\nThe interface will guide you to sub-schemas or down to property level.\n\n```php\nuse NilPortugues\\SchemaOrg\\SchemaOrg;\n\n$mapping = SchemaOrg::schemas()-\u003eblogPosting()-\u003earticleSection();\n\necho $mapping-\u003ename(); // returns \"articleSection\"\necho $mapping-\u003eurl(); // returns \"http://schema.org/articleSection\"\necho $mapping-\u003eusedBy(); // returns \"http://schema.org/Article\"\n```\n\n\n## Why?\n\nSchema.org vocabularies cover entities, relationships between entities and actions, and can easily be extended through a well-documented extension model.\n\nOver 10 million sites use Schema.org to markup their web pages and email messages, including Google, Microsoft, Pinterest, Yandex and others.\n\n\n\n## Contribute\n\nContributions to the package are always welcome!\n\n* Report any bugs or issues you find on the [issue tracker](https://github.com/nilportugues/schema.org-mapping/issues/new).\n* You can grab the source code at the package's [Git repository](https://github.com/nilportugues/schema.org-mapping).\n\n\n## Support\n\nGet in touch with me using one of the following means:\n\n - Emailing me at \u003ccontact@nilportugues.com\u003e\n - Opening an [Issue](https://github.com/nilportugues/schema.org-mapping/issues/new)\n\n## Authors\n\n* [Nil Portugués Calderó](http://nilportugues.com)\n* [The Community Contributors](https://github.com/nilportugues/schema.org-mapping/graphs/contributors)\n\n\n## License\nThe code base is licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilportugues%2Fphp-schema.org-mapping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilportugues%2Fphp-schema.org-mapping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilportugues%2Fphp-schema.org-mapping/lists"}