PHPackages                             deboorn/ccb-api - 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. [API Development](/categories/api)
4. /
5. deboorn/ccb-api

ActiveLibrary[API Development](/categories/api)

deboorn/ccb-api
===============

Church Community Builder Api Helper

v1.0.2(10y ago)520CC BY-NC 3.0PHP

Since Nov 20Pushed 10y ago1 watchersCompare

[ Source](https://github.com/deboorn/ccb-api)[ Packagist](https://packagist.org/packages/deboorn/ccb-api)[ RSS](/packages/deboorn-ccb-api/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

### CCB-Api

[](#ccb-api)

- PHP 5 Church Community Builder Helper
- License: Creative Commons Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0)
- Please respect the license above (CC BY-NC 3.0), it's strictly non commercial.
- Commercial license available for a very small one-time fee of $15.
- If you are a paid freelancer developing for a church you need a commercial license.
- These files are Not officially supported by Church Community Builder.
- Questions regarding this software should be directed to .

How to Install
--------------

[](#how-to-install)

Install the `deboorn/ccb-api` package

```
$ composer require deboorn/ccb-api
```

Example of Usage
----------------

[](#example-of-usage)

```
$ccb = new \CCB\Api('username', 'password', 'https://yourdomain.ccbchurch.com/api.php');

# Example 1 -- How to fetch and loop over api data

// fetch transaction detail type list
$response = $ccb->fetch('transaction_detail_type_list');

// loop over results (if any)
if ($response['transaction_detail_types']->attr('count') > 0) {
    foreach ($response['transaction_detail_type'] as $element) {
        $item = pq($element);
        var_dump($item['name']->text());
    }
}

# Example 2 -- How to build and post xml body data to api

// get model from local file /ccb/templates/import_online_gifts.xml
// you could also skip this and build your xml string directly
// add your own templates by saving them from the api docs to the template directory
$model = $ccb->fromTemplate('srv_endpoint_string');
$model['element_name']->text('value');
// ...
$response = $ccb->fetch('srv_endpoint_string', $model, 'POST');
var_dump($response);

# Example 3 -- How to build and send GET data to api

$params = array(
    // required
    'coa_category_id' => 50,
    'individual_id'   => 0,
    'amount'          => number_format(rand(100, 300), 2),
    // optional
    'merchant_transaction_id'     => uniqid('OG'), // max 50
    'merchant_authorization_code' => 'AP', // max 10
    'merchant_notes'              => 'Test Donation Api', // max 100
    'merchant_process_date'       => date('Y-m-d'),
    'first_name'                  => 'John',
    'last_name'                   => 'Doe',
    'street_address'              => '12th Ave North', // max 150
    'city'                        => 'Myrtle Beach', // max 30
    'state'                       => 'SC', // max 3
    'zip'                         => '29579', // max 10
    'email'                       => 'john.doe@example.com',
    'campus_id'                   => 1,
    'payment_method'              => 'API - CCard',
    'payment_method_type'         => 'VISA', // enum (Other, MC, VISA, AMEX, DISC
    'transaction_date'            => date('Y-m-d'),
);

try {
    $response = $ccb->fetch('online_giving_insert_gift', $params);
    var_dump($response['gift_id']->text());
} catch (\CCB\Exception $e) {
    var_dump($e->getMessage(), $e->getCode(), $e->getXml());
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3828d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/77820104cf95da04b1e59ca8c04ad0a2eb1706a6f87401b8f58e023083db9182?d=identicon)[daniel.boorn](/maintainers/daniel.boorn)

---

Top Contributors

[![deboorn](https://avatars.githubusercontent.com/u/1401839?v=4)](https://github.com/deboorn "deboorn (2 commits)")

### Embed Badge

![Health badge](/badges/deboorn-ccb-api/health.svg)

```
[![Health](https://phpackages.com/badges/deboorn-ccb-api/health.svg)](https://phpackages.com/packages/deboorn-ccb-api)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)

PHPackages © 2026

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