PHPackages                             textagroup/brafton-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. textagroup/brafton-api

ActiveSilverstripe-module[API Development](/categories/api)

textagroup/brafton-api
======================

SilverStripe module to fetch feeds from Brafton API

01432[1 issues](https://github.com/textagroup/brafton-api/issues)PHP

Since May 20Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Brafton API
===========

[](#brafton-api)

Introduction
------------

[](#introduction)

This module is used for the Brafton/Castleford API

Copyright (C) 2010-2014

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see .

Maintainer Contact
------------------

[](#maintainer-contact)

```
* Kirk Mayo kirk.mayo (at) solnet (dot) co.nz

```

Requirements
------------

[](#requirements)

```
* SilverStripe 3.0 +

```

Features
--------

[](#features)

- Connects to Brafton/Castleford API

Composer Installation
---------------------

[](#composer-installation)

composer require textagroup/brafton-api

Installation Manual
-------------------

[](#installation-manual)

1. Download the module form GitHub (Composer support to be added)
2. Extract the file (if you are on windows try 7-zip for extracting tar.gz files
3. Make sure the folder after being extracted is named 'brafton-api'
4. Place this directory in your sites root directory. This is the one with framework and cms in it.
5. Run in your browser - `/dev/build` to rebuild the database.

Usage
-----

[](#usage)

To use the module you will need to specify the api key and api URL in the Brafton tab of settings.

The module contains a task to connect to the API and retrieve the content and images from the Brafton API.

The images are stored in assets as a normal SilverStripe Image and the items and categories are stored in the DataObjects BraftonNewsItem and BraftonNewsCategory.

This module acts as a wrapper for the [Brafton API library](http://www.brafton.com/support/php-sample/).

A good example of how this works is the job to fetch the blog items [FetchBraftonBlogItemsJob](code/jobs/FetchBraftonBlogItemsJob.php). This calls the Braftonservice class and the constructor handles connecting and creating a API object which can then be retrieved by the method getApi

```
        $service = new BraftonService();
        $api = $service->getApi();
        if ($api) {
            $newsItems = $api->getNewsHTML();
            foreach ($newsItems as $item) {
                $service->addNews($item);
            }
        }

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/337336c48c947ac51fcfbb6ec3d018a6703b63d29d7080d283d714ccd71f0d91?d=identicon)[kmayo-ss](/maintainers/kmayo-ss)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/textagroup-brafton-api/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k12](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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