{"id":28763823,"url":"https://github.com/neos/metadata-contentrepositoryadapter","last_synced_at":"2025-06-17T09:10:34.017Z","repository":{"id":47253485,"uuid":"57244898","full_name":"neos/metadata-contentrepositoryadapter","owner":"neos","description":"Neos MetaData ContentRepositoryAdapter","archived":false,"fork":false,"pushed_at":"2023-02-13T11:22:22.000Z","size":74,"stargazers_count":3,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-30T00:08:22.664Z","etag":null,"topics":["flowframework","hacktoberfest","metadata","neoscms"],"latest_commit_sha":null,"homepage":"","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/neos.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-27T20:20:25.000Z","updated_at":"2023-01-31T16:42:51.000Z","dependencies_parsed_at":"2022-09-01T18:11:30.625Z","dependency_job_id":null,"html_url":"https://github.com/neos/metadata-contentrepositoryadapter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/neos/metadata-contentrepositoryadapter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neos%2Fmetadata-contentrepositoryadapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neos%2Fmetadata-contentrepositoryadapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neos%2Fmetadata-contentrepositoryadapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neos%2Fmetadata-contentrepositoryadapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neos","download_url":"https://codeload.github.com/neos/metadata-contentrepositoryadapter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neos%2Fmetadata-contentrepositoryadapter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260326793,"owners_count":22992388,"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":["flowframework","hacktoberfest","metadata","neoscms"],"created_at":"2025-06-17T09:10:32.827Z","updated_at":"2025-06-17T09:10:34.005Z","avatar_url":"https://github.com/neos.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/neos/metadata-contentrepositoryadapter/v/stable)](https://packagist.org/packages/neos/metadata-contentrepositoryadapter)\n[![Total Downloads](https://poser.pugx.org/neos/metadata-contentrepositoryadapter/downloads)](https://packagist.org/packages/neos/metadata-contentrepositoryadapter)\n[![License](https://poser.pugx.org/neos/metadata-contentrepositoryadapter/license)](https://packagist.org/packages/neos/metadata-contentrepositoryadapter)\n\n# Neos.MetaData.ContentRepositoryAdapter Package\n\nThis package handles the mapping of meta data DTOs to the Neos Content Repository.\n\nIt provides three main features:\n\n* Configurable mapping of the meta data DTOs to MetaData node types.\n* FlowQuery operation to query for assets by their meta data.\n* Eel helper to load the meta data nodes for any existing asset object.\n\n## Installation\n\nInstall using composer:\n\n    composer require neos/metadata-contentrepositoryadapter  \n\nSome related packages are:\n\n- [`neos/metadata`](https://github.com/neos/metadata): Provides provides data types and interfaces\n  (and is automatically installed with this package)\n- [`neos/metadata-extractor`](https://github.com/neos/metadata-extractor): Provides CLI and realtime\n  meta data extraction on assets\n\n## Configuration\n\nThe package provides a way to store asset meta data in nodes, so it can be used in an application.\n\n## Usage\n\nThe package does not in itself change the way metadata is handled. Instead it provides ways for\nother packages to interact with meta data of assets.\n\n1. Install the package\n2. Extract the meta data (f.e. with suggested `neos/metadata-extractor`)\n3. Use the meta data in FlowQuery or Eel\n\n## Examples\n\n### Custom meta data node types\n\nCreate a NodeType inheriting from `Neos.MetaData:AbstractMetaData`. Most of the time you will be\ninheriting from `Neos.MetaData:Asset`.\n\n```yaml\n'Vendor.Namespace:Type':\n  superTypes:\n    'Neos.MetaData:Asset': true\n  properties:\n    yourProperty:\n      mapping: '${yourDto.yourProperty}'\n```\n\nSpecify the media types for which your NodeType will be used for.\n\n```yaml\nNeos:\n  MetaData:\n    ContentRepositoryAdapter:\n      mapping:\n        nodeTypeMappings:\n          'type/subtype': 'Vendor.Namespace:Type'\n          'type/otherSubtype': 'Vendor.Namespace:Type'\n```\n\n### Eel\n\nFind the meta data of an asset - here of the node property `image`:\n\n```\nprototype(Neos.NodeTypes:Image) {\n    imageMetaDataNode = ${MetaData.find(q(node).property('image'), node)}\n    imageTitle = ${q(this.imageMetaDataNode).property('title')}\n}\n```\n\n### FlowQuery\n\nGet all meta data nodes matching the filter:\n\n    collection = ${q(assets).children('[instanceof Neos.MetaData:Exif][artist*=\"Daniel Lienert\"]').get()}\n\nGet the assets referenced by those meta data nodes:\n\n    assets = ${q(this.collection).getAssets()}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneos%2Fmetadata-contentrepositoryadapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneos%2Fmetadata-contentrepositoryadapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneos%2Fmetadata-contentrepositoryadapter/lists"}