PHPackages                             googlechromelabs/wp-third-parties - 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. googlechromelabs/wp-third-parties

AbandonedArchivedLibrary

googlechromelabs/wp-third-parties
=================================

This package is a collection of classes and utilities that can be used to efficiently load third-party libraries into your WordPress application.

1.0.0(1y ago)1951Apache-2.0PHPPHP &gt;=7.2

Since Sep 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/GoogleChromeLabs/wp-third-parties)[ Packagist](https://packagist.org/packages/googlechromelabs/wp-third-parties)[ RSS](/packages/googlechromelabs-wp-third-parties/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (13)Versions (2)Used By (0)

WordPress Third-Parties Composer package
========================================

[](#wordpress-third-parties-composer-package)

This package is a collection of classes and utilities that can be used to efficiently load third-party libraries into your WordPress application.

It relies on the platform agnostic solution from [Third Party Capital](https://github.com/GoogleChromeLabs/third-party-capital).

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

[](#installation)

You can include this package in your WordPress project using Composer:

```
composer require googlechromelabs/wp-third-parties:^1.0

```

Usage
-----

[](#usage)

### Google Analytics

[](#google-analytics)

```
$ga = new Google_Chrome_Labs\WP_Third_Parties\Third_Parties\Google_Analytics(
	array(
		'id' => 'G-...', // Replace this with your actual Google Analytics ID.
	)
);

// Add hooks to enqueue assets.
add_action( 'wp_loaded', array( $ga, 'add_hooks' ) );
```

See the [Google Analytics JSON schema](https://github.com/GoogleChromeLabs/third-party-capital/blob/main/data/google-analytics.json) for the full list of supported arguments.

### Google Tag Manager

[](#google-tag-manager)

```
$gtm = new Google_Chrome_Labs\WP_Third_Parties\Third_Parties\Google_Tag_Manager(
	array(
		'id' => 'GTM-...', // Replace this with your actual Google Tag Manager ID.
	)
);

// Add hooks to enqueue assets.
add_action( 'wp_loaded', array( $gtm, 'add_hooks' ) );
```

See the [Google Tag Manager JSON schema](https://github.com/GoogleChromeLabs/third-party-capital/blob/main/data/google-tag-manager.json) for the full list of supported arguments.

### Google Maps Embed

[](#google-maps-embed)

```
$gme = new Google_Chrome_Labs\WP_Third_Parties\Third_Parties\Google_Maps_Embed(
	array(
		'mode' => '...', // Provide this and other parameters like 'key', 'q', 'center', etc.
	)
);

// No assets need to be enqueued for a Google Maps Embed.
// To actually render the Google Maps Embed, use this.
echo $gme->get_html();
```

See the [Google Maps Embed JSON schema](https://github.com/GoogleChromeLabs/third-party-capital/blob/main/data/google-maps-embed.json) for the full list of supported arguments.

### YouTube Embed

[](#youtube-embed)

```
$yte = new Google_Chrome_Labs\WP_Third_Parties\Third_Parties\YouTube_Embed(
	array(
		'videoid' => '...', // Replace this with your actual YouTube video ID.
	)
);

// Add hooks to enqueue assets.
add_action( 'wp_loaded', array( $yte, 'add_hooks' ) );

// To actually render the YouTube Embed, use this.
echo $yte->get_html();
```

See the [YouTube Embed JSON schema](https://github.com/GoogleChromeLabs/third-party-capital/blob/main/data/youtube-embed.json) for the full list of supported arguments.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

598d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a60abe9a2c42fe5cf2117b88aac2eab186f0ea3c969f1f4a29d4a09d831153b8?d=identicon)[felixarntz](/maintainers/felixarntz)

![](https://www.gravatar.com/avatar/c36fb890fd40499bcf1024280ba5c19f117efd9f6d65f6cbe0c448ce7720eaee?d=identicon)[adamsilverstein](/maintainers/adamsilverstein)

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/googlechromelabs-wp-third-parties/health.svg)

```
[![Health](https://phpackages.com/badges/googlechromelabs-wp-third-parties/health.svg)](https://phpackages.com/packages/googlechromelabs-wp-third-parties)
```

PHPackages © 2026

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