PHPackages                             darkgoldblade01/dnd-5e-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. darkgoldblade01/dnd-5e-api

ActiveLibrary[API Development](/categories/api)

darkgoldblade01/dnd-5e-api
==========================

A DND 5e API wrapper written in PHP

372PHP

Since Feb 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/darkgoldblade01/dnd-5e-api-php)[ Packagist](https://packagist.org/packages/darkgoldblade01/dnd-5e-api)[ RSS](/packages/darkgoldblade01-dnd-5e-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

DND 5e API Wrapper in PHP
=========================

[](#dnd-5e-api-wrapper-in-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9aaf06ddfe1eb49f1bef1d131afe406cc36bf05715aa27ee8a93fac1f6f9f994/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461726b676f6c64626c61646530312f646e642d35652d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/darkgoldblade01/dnd-5e-api)[![Build Status](https://camo.githubusercontent.com/6e2ede68ff439e5cfd3b76e57eee7c149e1e2224a31ab7e57d25f6eb0a6227be/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6d2f6461726b676f6c64626c61646530312f646e642d35652d6170692d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.com/darkgoldblade01/dnd-5e-api-php)[![Quality Score](https://camo.githubusercontent.com/5b6362a4811346b98e5c6d38894de4fa93f128d4dc8dff19fc002108beb6ded0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6461726b676f6c64626c61646530312f646e642d35652d6170692d7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/darkgoldblade01/dnd-5e-api-php)[![Total Downloads](https://camo.githubusercontent.com/0e25efdfa11a5a71a88f8263db31fc05b424aaf75f54e23273e852d40b14de11/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6461726b676f6c64626c61646530312f646e642d35652d6170692d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/darkgoldblade01/dnd-5e-api-php)

This package is a PHP wrapper for the [DND5eAPI](https://www.dnd5eapi.co/).

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

[](#installation)

You can install the package via composer:

```
composer require darkgoldblade01/dnd-5e-api
```

Usage
-----

[](#usage)

```
use Darkgoldblade01\Dnd5eApi;

$api = new Dnd5eApi();

// Get Ability Scores API
$ability_scores_api = $api->ability_scores();

// Get Skills
$skills_api = $api->skills();

// Get Proficiences
$proficiencies_api = $api->proficiencies();

// You can get all items under an api
// This returns an array with all the ability scores in the AbilityScores Models
$ability_scores_api->all();

// Returns the AbilityScore Model based on the index
$ability_scores_api->{ability_score_index}();
//For instance:
$ability_scores_api->cha(); // Returns the Charisma AbilityScores Model

```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please use the issue tracker.

Credits
-------

[](#credits)

- [Brian Logan](https://github.com/darkgoldblade01)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 94.7% 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/093f0f4c952fb410a2324eb9acfa28d8a9bd44ed9158bce0b336fec77a674820?d=identicon)[brianclogan](/maintainers/brianclogan)

---

Top Contributors

[![brianclogan](https://avatars.githubusercontent.com/u/9066551?v=4)](https://github.com/brianclogan "brianclogan (18 commits)")[![mend-bolt-for-github[bot]](https://avatars.githubusercontent.com/in/16809?v=4)](https://github.com/mend-bolt-for-github[bot] "mend-bolt-for-github[bot] (1 commits)")

---

Tags

dndphpwrapperwrapper-api

### Embed Badge

![Health badge](/badges/darkgoldblade01-dnd-5e-api/health.svg)

```
[![Health](https://phpackages.com/badges/darkgoldblade01-dnd-5e-api/health.svg)](https://phpackages.com/packages/darkgoldblade01-dnd-5e-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[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/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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