PHPackages                             thebiggive/php-govtalk - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. thebiggive/php-govtalk

ActiveLibrary[HTTP &amp; Networking](/categories/http)

thebiggive/php-govtalk
======================

A library for applications which interface with the UK Government Gateway

v1.0.3(2y ago)45.6k↓64.6%62GPL-3.0-or-laterPHPPHP ^8.0CI failing

Since Apr 7Pushed 2y ago2 watchersCompare

[ Source](https://github.com/thebiggive/php-govtalk)[ Packagist](https://packagist.org/packages/thebiggive/php-govtalk)[ Docs](https://github.com/thebiggive/php-govtalk)[ RSS](/packages/thebiggive-php-govtalk/feed)WikiDiscussions main Synced yesterday

READMEChangelog (9)Dependencies (5)Versions (18)Used By (2)

PHP GovTalk
===========

[](#php-govtalk)

**A library for applications which interface with the UK Government Gateway**

[![Build Status](https://camo.githubusercontent.com/a6b2cf56422d6dde074fc8c6586d415842f3e8b5137bc31f3f3cc5d0d24a17bd/68747470733a2f2f7472617669732d63692e6f72672f746865626967676976652f7068702d676f7674616c6b2e706e673f6272616e63683d6d61696e)](https://travis-ci.org/thebiggive/php-govtalk)[![Latest Stable Version](https://camo.githubusercontent.com/4d7b715ac5673b3c8a288ac38272be0656167f066a7cb3fddc2ba106e3faafb0/68747470733a2f2f706f7365722e707567782e6f72672f746865626967676976652f7068702d676f7674616c6b2f76657273696f6e2e706e67)](https://packagist.org/packages/thebiggive/php-govtalk)[![Total Downloads](https://camo.githubusercontent.com/904176eccde6a2a825b3251bfc5c98799743c5eccd0caa892ee9fa36efd4a9e6/68747470733a2f2f706f7365722e707567782e6f72672f746865626967676976652f7068702d676f7674616c6b2f642f746f74616c2e706e67)](https://packagist.org/packages/thebiggive/php-govtalk)[![License](https://camo.githubusercontent.com/29663e639d7ba9eb935fa224f4a338114a60f08441060c529852e94f0e4c8de4/68747470733a2f2f706f7365722e707567782e6f72672f746865626967676976652f7068702d676f7674616c6b2f6c6963656e73652e737667)](https://packagist.org/packages/thebiggive/php-govtalk)

The GovTalk Message Envelope is a standard developed by the United Kingdom government as a means of encapsulating a range of government XML services in a single standard data format.

This project was originally forked from [Fubra Limited](https://github.com/fubralimited/php-govtalk). Only the GovTalk class is preserved in this library. This library can be used whenever you need to build something that interfaces with any of the services that use the Government Gateway (e.g. Companies House, HMRC, etc.).

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

[](#installation)

The library can be installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file:

```
{
    "require": {
        "thebiggive/php-govtalk": "^1.0"
    }
}
```

And run composer to update your dependencies:

$ curl -s  | php $ php composer.phar update

Library background
------------------

[](#library-background)

Big Give forked this library from [`JustinBusschau/php-govtalk`](https://github.com/JustinBusschau/php-govtalk) in 2021, as that library's [no longer maintained](https://github.com/JustinBusschau/php-govtalk/pull/3) for active versions of PHP.

We don't offer support for the library, but plan to maintain it for the foreseeable future, with tests running against verions of PHP [still receiving security support](https://www.php.net/supported-versions.php).

Charities running campaigns on our platform who are using our managed service to claim their Gift Aid can [get in touch here](https://community.biggive.org/s/contact-us).

Basic usage
-----------

[](#basic-usage)

This library can be extended and used with any one of the gateways that use the GovTalk Message Envelope and the Document Submission Protocol. The following libraries currently use / extend GovTalk:

LibraryComposer PackageMaintainer[HMRC Gift Aid](https://github.com/thebiggive/hmrc-gift-aid)thebiggive/hmrc-gift-aid[Noel Light-Hilary](https://github.com/noellh)

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 55.9% 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

Every ~229 days

Recently: every ~158 days

Total

16

Last Release

1036d ago

Major Versions

0.2.1 → v1.0.0-beta2021-09-07

PHP version history (3 changes)0.1PHP &gt;=5.3.2

v1.0.0-betaPHP ^7.4 | ^8.0

v1.0.2PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/95aec0b98ffd04b60320f4b9670bed8346309fd54ba361e1f8007003e5753f83?d=identicon)[NoelLH](/maintainers/NoelLH)

---

Top Contributors

[![NoelLH](https://avatars.githubusercontent.com/u/3274454?v=4)](https://github.com/NoelLH "NoelLH (19 commits)")[![JustinBusschau](https://avatars.githubusercontent.com/u/1590364?v=4)](https://github.com/JustinBusschau "JustinBusschau (8 commits)")[![confuzzledduck](https://avatars.githubusercontent.com/u/893730?v=4)](https://github.com/confuzzledduck "confuzzledduck (5 commits)")[![alihejazi](https://avatars.githubusercontent.com/u/35169573?v=4)](https://github.com/alihejazi "alihejazi (1 commits)")[![bdsl](https://avatars.githubusercontent.com/u/159481?v=4)](https://github.com/bdsl "bdsl (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/thebiggive-php-govtalk/health.svg)

```
[![Health](https://phpackages.com/badges/thebiggive-php-govtalk/health.svg)](https://phpackages.com/packages/thebiggive-php-govtalk)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[symfony/http-kernel

Provides a structured process for converting a Request into a Response

8.1k869.4M8.8k](/packages/symfony-http-kernel)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[civicrm/civicrm-core

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

751291.4k43](/packages/civicrm-civicrm-core)

PHPackages © 2026

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