PHPackages                             cu-boulder/ucb\_trust\_schema - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cu-boulder/ucb\_trust\_schema

ActiveDrupal-custom-module[Utility &amp; Helpers](/categories/utility)

cu-boulder/ucb\_trust\_schema
=============================

University of Colorado Boulder Trust Schema Module

017.5k[2 issues](https://github.com/CuBoulder/ucb_trust_schema/issues)PHP

Since Jan 26Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/CuBoulder/ucb_trust_schema)[ Packagist](https://packagist.org/packages/cu-boulder/ucb_trust_schema)[ RSS](/packages/cu-boulder-ucb-trust-schema/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Trust Schema Module
===================

[](#trust-schema-module)

The Trust Schema Module enables individual Drupal sites to declare and expose trust metadata on selected content nodes. This metadata helps establish the credibility and context of content when it's syndicated across different sites.

Features
--------

[](#features)

- Trust metadata fields for content nodes:

    - Trust Role (e.g., primary source, secondary source)
    - Trust Scope (e.g., department level, university level)
    - Trust Contact (email for verification)
    - Trust Topics (taxonomy terms categorizing the content)
    - Trust Syndication Enabled (toggle for syndication)
- JSON:API integration for exposing trust metadata
- Custom form for managing trust metadata on nodes
- Trust Topics taxonomy vocabulary for categorizing content

Installation
------------

[](#installation)

1. Place the module in your Drupal installation's `modules/custom` directory
2. Enable the module using Drush or the Drupal admin interface: ```
    drush en ucb_trust_schema
    ```
3. The module will automatically create the necessary database table and taxonomy vocabulary

Usage
-----

[](#usage)

### Managing Trust Metadata

[](#managing-trust-metadata)

1. Navigate to any content node
2. Click the "Trust Syndication" tab
3. Fill in the trust metadata fields:
    - Select a Trust Role
    - Choose a Trust Scope
    - Enter a Trust Contact email
    - Select one or more Trust Topics
    - Enable/disable syndication as needed
4. Save the changes

### Accessing Trust Metadata via JSON:API

[](#accessing-trust-metadata-via-jsonapi)

Trust metadata is exposed through the JSON:API endpoints.

#### Basic Syndicated Nodes Endpoint

[](#basic-syndicated-nodes-endpoint)

Here is the easiest way to just view all syndicated nodes:

`/api/trust-schema/syndicated-nodes`

The response will include trust metadata in this format:

```
{
  "data": [{
    "id": "3",
    "type": "basic_page",
    "attributes": {
      "title": "Example Page",
      "trust_role": "primary_source",
      "trust_scope": "department_level",
      "trust_contact": "example@berkeley.edu",
      "trust_topics": ["Science", "Mathematics"],
      "trust_syndication_enabled": true
    }
  }]
}
```

#### Advanced JSON:API Endpoint

[](#advanced-jsonapi-endpoint)

For more detailed access to trust metadata with related node and taxonomy information, use the following JSON:API endpoint:

```
/jsonapi/trust_metadata/trust_metadata?fields[trust_metadata--trust_metadata]=trust_role,trust_scope,type,trust_contact,timeliness,audience,trust_topics,node_id,syndication_consumer_sites,syndication_total_views,syndication_consumer_sites_list&fields[taxonomy_term--trust_topic]=name&fields[node--article]=title,body,path,created,changed&include=trust_topics,node_id

```

This endpoint returns:

- Trust metadata fields (trust\_role, trust\_scope, type, trust\_contact, timeliness, audience, trust\_topics)
- Related node information (title, body, path, created, changed)
- Trust topic names
- All relationships between these entities

Example response:

```
{
  "data": [
    {
      "type": "trust_metadata--trust_metadata",
      "id": "23d1698c-6f66-4502-8f8e-469840942807",
      "attributes": {
        "trust_role": "primary_source",
        "trust_scope": "department_level",
        "trust_contact": null,
        "trust_topics": ["Student Life"],
        "node_id": "3",
        "syndication_consumer_sites": 3,
        "syndication_total_views": 6,
        "syndication_consumer_sites_list": "consumer.ddev.site, discovery.ddev.site, secondcon.ddev.site"
      }
    }
  ]
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance57

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b717634bb237615f360e13a5b1d2efc6f40cb17f77568f8a6401aa978921b4e?d=identicon)[OSRWebDeploy](/maintainers/OSRWebDeploy)

---

Top Contributors

[![jnicholCU](https://avatars.githubusercontent.com/u/94021017?v=4)](https://github.com/jnicholCU "jnicholCU (24 commits)")[![patrickbrown-io](https://avatars.githubusercontent.com/u/85851903?v=4)](https://github.com/patrickbrown-io "patrickbrown-io (6 commits)")[![jcsparks](https://avatars.githubusercontent.com/u/12704433?v=4)](https://github.com/jcsparks "jcsparks (2 commits)")

### Embed Badge

![Health badge](/badges/cu-boulder-ucb-trust-schema/health.svg)

```
[![Health](https://phpackages.com/badges/cu-boulder-ucb-trust-schema/health.svg)](https://phpackages.com/packages/cu-boulder-ucb-trust-schema)
```

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[bizley/quill

Quill editor implementation for Yii 2.

64133.3k5](/packages/bizley-quill)[ebanx/benjamin

Business rule provider lib for plugin implementations

18155.2k1](/packages/ebanx-benjamin)[shel/neos-colorpicker

A plugin for Neos CMS which provides a colorpicker editor

1494.4k6](/packages/shel-neos-colorpicker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
