PHPackages                             edwardcrompton/porthtermau - 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. edwardcrompton/porthtermau

ActiveLibrary[API Development](/categories/api)

edwardcrompton/porthtermau
==========================

API wrapper for the Porth Termau service

04PHP

Since Dec 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/edwardcrompton/porthtermau)[ Packagist](https://packagist.org/packages/edwardcrompton/porthtermau)[ RSS](/packages/edwardcrompton-porthtermau/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PorthTermau API wrapper
-----------------------

[](#porthtermau-api-wrapper)

[![Build Status](https://camo.githubusercontent.com/8218faffe4605285ff60bef6f716c06a63b08c61958a02c763c03c6f8c54a3c6/68747470733a2f2f7472617669732d63692e6f72672f65647761726463726f6d70746f6e2f706f7274687465726d61752e7376673f6272616e63683d6d61696e)](https://travis-ci.org/edwardcrompton/porthtermau)

This is a PHP wrapper for the PorthTermau API.

[https://www.bangor.ac.uk/cymorthcymraeg/porth\_termau.php.cy](https://www.bangor.ac.uk/cymorthcymraeg/porth_termau.php.cy)

You will require an API key issued by Bangor University to use the API.

This is currently a work in progress and more documentation will follow.

To install with composer:

`composer require edwardcrompton/porthtermau:dev-main`

To clone from git and install:

`git clone git@github.com:edwardcrompton/porthtermau.git`

`cd porthtermau`

`composer install`

To run phpunit tests:

`./vendor/bin/phpunit tests`

### Usage

[](#usage)

```
include('src/PorthTermauWrapper.php');
$api = new PorthTermau\PorthTermauWrapper(
  ['key' => 'secret key', 'referer' => 'http://llennatur.cymru']
);
// Look up a term
$term = $api->lookup('Vulpes vulpes');

// Translate the term to Cymraeg
$cyTerm = $term->translate('cy');

// Translate the term to English
$enTerm = $term->translate('en');

// Get the Url of the term in cy.wikipedia.org.
$url = $term->getUrl();

// Get an thumbnail image URL for the term
$img = $term->getImageThumb();

```

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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://avatars.githubusercontent.com/u/1056495?v=4)[Ed Crompton](/maintainers/edwardcrompton)[@edwardcrompton](https://github.com/edwardcrompton)

---

Top Contributors

[![edwardcrompton](https://avatars.githubusercontent.com/u/1056495?v=4)](https://github.com/edwardcrompton "edwardcrompton (20 commits)")

### Embed Badge

![Health badge](/badges/edwardcrompton-porthtermau/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

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

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k13](/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)
