PHPackages                             ampahkwabena/ice-and-fire - 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. ampahkwabena/ice-and-fire

ActiveLibrary[API Development](/categories/api)

ampahkwabena/ice-and-fire
=========================

Ic &amp; Fire PHP package is php package wrapper for accessing https://anapioficeandfire.com/

v1.0.0(4y ago)010MITPHP

Since Feb 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/khobbie/ice_and_fire)[ Packagist](https://packagist.org/packages/ampahkwabena/ice-and-fire)[ RSS](/packages/ampahkwabena-ice-and-fire/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Ice &amp; Fire PHP Package
==========================

[](#ice--fire-php-package)

Overview
--------

[](#overview)

IceOnFire is php package wrapper for accessing [AnApiOfIceAndFire](https://anapioficeandfire.com/).

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

[](#installation)

The current production release of A-song-of-ice-and-fire-API is available through [Composer](https://packagist.org/packages/ampahkwabena/ice-and-fire):

```
composer require ampahkwabena/ice-and-fire

```

Usage
-----

[](#usage)

```
> use AmpahKwabena\Anapioficeandfire;

> $ice_and_fire = new Anapioficeandfire();

> return $ice_and_fire->getAllBooks();

[ { url: 'http://www.anapioficeandfire.com/api/characters/583',
    name: 'Jon Snow',
    gender: 'Male',
    culture: 'Northmen',
    born: 'In 283 AC',
    died: '',
    titles: [ 'Lord Commander of the Night\'s Watch' ],
    aliases:
     [ 'Lord Snow',
       'Ned Stark\'s Bastard',
       'The Snow of Winterfell',
       'The Crow-Come-Over',
       'The 998th Lord Commander of the Night\'s Watch',
       'The Bastard of Winterfell',
       'The Black Bastard of the Wall',
       'Lord Crow' ],
    father: '',
    mother: '',
    spouse: '',
    allegiances: [ 'http://www.anapioficeandfire.com/api/houses/362' ],
    books: [ 'http://www.anapioficeandfire.com/api/books/5' ],
    povBooks:
     [ 'http://www.anapioficeandfire.com/api/books/1',
       'http://www.anapioficeandfire.com/api/books/2',
       'http://www.anapioficeandfire.com/api/books/3',
       'http://www.anapioficeandfire.com/api/books/8' ],
    tvSeries: [ 'Season 1', 'Season 2', 'Season 3', 'Season 4', 'Season 5' ],
    playedBy: [ 'Kit Harington' ] } ]
```

API
---

[](#api)

### Characters

[](#characters)

**getCharacterByID**

- Accepts: A string or number representing a character ID.
- Returns: An object containing the character's properties if the character exists.

**getCharacterByName**

- Accepts: A string representing full name of the character.
- Returns: An array of objects containing all the characters with given name.

**getCharactersByCulture**

- Accepts: A string representing the culture of Character.
- Returns: An array of objects containing all the characters with given culture.

**getCharactersByGender**

- Accepts: A string representing the gender of Character.
- Returns: An array of objects containing all the characters with given gender.

**getAllCharacters**

- Returns: An array of objects containing all the characters.

### Houses

[](#houses)

**getHouseByID**

- Accepts: A string or number representing a house ID.
- Returns: An object containing the house's properties if the house exists.

**getHouseByName**

- Accepts: A string representing full name of the house.
- Returns: An array of objects containing all the houses with given name.

**getHouseByRegion**

- Accepts: A string representing the region of the house.
- Returns: An array of objects containing all the houses with given region.

**getHouseByWords**

- Accepts: A string representing the words/saying of the house.
- Returns: An array of objects containing all the houses with given words/saying.

**getAllHouses**

- Returns: An array of objects containing all the houses.

### Books

[](#books)

**getBookByID**

- Accepts: A string or number representing a book ID.
- Returns: An object containing the book's properties if the book exists.

**getBookByName**

- Accepts: A string representing full name of the book.
- Returns: An array of objects containing all the books with given name.

**getAllBooks**

- Returns: An array of objects containing all the books.

### FUN

[](#fun)

**getRandomCharacter**

- Returns: An object containing the properties of a random character.

**getRandomHouse**

- Returns: An object containing the properties of a random house.

**getRandomCharacterOfHouse**

- Accepts: A string representing full name of the house.
- Returns: An object containing the properties of a random character from the given house

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1542d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6282bd6954d667508791dc37b5752a523586ae0088680ebde6cae04b95089959?d=identicon)[ampahkwabena](/maintainers/ampahkwabena)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ampahkwabena-ice-and-fire/health.svg)

```
[![Health](https://phpackages.com/badges/ampahkwabena-ice-and-fire/health.svg)](https://phpackages.com/packages/ampahkwabena-ice-and-fire)
```

###  Alternatives

[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[packbackbooks/lti-1p3-tool

A library used for building IMS-certified LTI 1.3 tool providers in PHP.

51438.3k2](/packages/packbackbooks-lti-1p3-tool)[yoti/yoti-php-sdk

Yoti SDK for quickly integrating your PHP backend with Yoti

27539.9k1](/packages/yoti-yoti-php-sdk)[hoels/app-store-server-library-php

The PHP server library for the App Store Server API and App Store Server Notifications.

44162.2k](/packages/hoels-app-store-server-library-php)[soneso/stellar-php-sdk

Stellar PHP SDK for the Stellar Network

4048.2k4](/packages/soneso-stellar-php-sdk)

PHPackages © 2026

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