PHPackages                             divinityfound/churchmetricsapiphp - 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. divinityfound/churchmetricsapiphp

ActiveLibrary

divinityfound/churchmetricsapiphp
=================================

Free public churchmetrics.com API in PHP

2497PHP

Since Feb 1Pushed 6y ago2 watchersCompare

[ Source](https://github.com/MathisonProjects/churchmetrics-api-php)[ Packagist](https://packagist.org/packages/divinityfound/churchmetricsapiphp)[ RSS](/packages/divinityfound-churchmetricsapiphp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Church Metrics PHP API
======================

[](#church-metrics-php-api)

License: MIT

Contents
--------

[](#contents)

1. About
2. Installation via Composer
3. Usage Example
4. About

---

Church Metrics (originally) did not have a publicly available PHP API, though they did have an a public API... so I chose to remedy that situation to make it easier to implement Church Metrics API via PHP.

To view the original API, visit here:

Currently this API only "Gets" data from Church Metrics API. It does not modify any data (as of yet);

2. Installation via Composer

---

```
{
	"require": {
		"divinityfound/churchmetricsapiphp": "dev-master"
	},
	"minimum-stability": "dev"
}
```

Then install with Composer

```
$ composer install
```

3. Usage Examples

---

```
// Load Rest Client
require_once(__DIR__ . '/../vendor/autoload.php');
use \Divinityfound\ChurchMetricsApiPhp\Rest;

// Define API Credentials
define('CHURCH_METRICS_EMAIL', 'XXXXXX@XXXXXXXXX.com');
define('CHURCH_METRICS_AUTH' , 'XXXXXXXXXXXXXXXXXXXX');

//Implement Church Metrics Client
$CM_Client = new Rest(CHURCH_METRICS_EMAIL, CHURCH_METRICS_AUTH);

// Campuses
$params  = [];
$params  = ['url' 			 => '1'];
$params  = ['url' 			 => 'weekly_totals',
			'category_id'    => '1', // Required
			'week_reference' => '5275']; //Optional
$results = $CM_Client->campuses($params);

// Categories
$params  = [];
$params  = ['url' => '1'];
$results = $CM_Client->categories($params);

// Deprecated
// Churches
$params  = ['url' => 'me'];
$params  = ['url' => 'weekly_totals',
			'category_id'    => '1',  // Required
			'week_reference' => '1']; // Optional
$results = $CM_Client->churches($params);

// Events
$params  = [];
$params  = ['url' => '1'];
$results = $CM_Client->events($params);

// Groups
$params  = ['url' 			  => 'records',
			'church_id'       => '1',     // Optional
			'tag_id'          => '1',     // Optional
			'start_time'      => '1',     // Optional
			'end_time'        => '1',     // Optional
			'start_week'      => '1',     // Optional
			'end_week'        => '1',     // Optional
			'category_id'     => '1',     // Optional
			'event_id'        => '1',     // Optional
			'campus_id'       => '1',     // Optional
			'week_reference'  => '5275']; // Optional
$params  = ['url' 			  => 'churches',
			'church_id'       => '1',     // Optional
			'tag_id'          => '1',     // Optional
			'pagination'      => true,
			'page'            => '1'];
$params  = ['url'			  => 'tags',
			'church_id'       => '1',     // Optional
			'tag_id'          => '1'];    // Optional
$results = $CM_Client->groups($params);

// Organizations
$params  = ['url' 			 => 'me'];
$params  = ['url' 			 => 'weekly_totals',
			'category_id'    => '1', // Required
			'week_reference' => '5275']; //Optional
$results = $CM_Client->organizations($params);

// Projections
$params  = ['pagination' => true,
			'page'       => '1',
			'category_id'=> '1',
			'campus_id'  => '1',
			'start_week' => '1',
			'end_week'   => '1'];
$params  = ['url'        => '1'];
$results = $CM_Client->projections($params);

// Records
$params  = ['url'			 => '1',
			'pagination'     => true,
			'page'           => '1',
			'start_time'     => '1',
			'end_time'       => '1',
			'start_week'     => '1',
			'end_week'       => '1',
			'category_id'    => '1',
			'event_id'       => '1',
			'campus_id'      => '1',
			'week_reference' => '1'];
$params  = ['url'            => '1'];
$results = $CM_Client->records($params);

// Regions
$params  = [];
$params  = ['url' => '1'];
$results = $CM_Client->regions($params);

// Service Times
$params  = ['pagination' => true,
			'page'       => '1',
			'event_id'   => '1']; // Optional
$params  = ['url'        => '1'];
$results = $CM_Client->service_times($params);

// Users
$params  = [];
$params  = ['url' => '1'];
$results = $CM_Client->users($params);
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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/12566b2564f3af043bbc5f4fa902c82913eb984ed23f8b675d168001898fc0e7?d=identicon)[MathisonProjects](/maintainers/MathisonProjects)

---

Top Contributors

[![MathisonProjects](https://avatars.githubusercontent.com/u/1110845?v=4)](https://github.com/MathisonProjects "MathisonProjects (3 commits)")

### Embed Badge

![Health badge](/badges/divinityfound-churchmetricsapiphp/health.svg)

```
[![Health](https://phpackages.com/badges/divinityfound-churchmetricsapiphp/health.svg)](https://phpackages.com/packages/divinityfound-churchmetricsapiphp)
```

PHPackages © 2026

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