PHPackages                             jeroendesloovere/countries-php-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. jeroendesloovere/countries-php-api

ActiveLibrary[API Development](/categories/api)

jeroendesloovere/countries-php-api
==================================

This Countries PHP API class gets all the countries in the world and their information.

1.1.1(11y ago)11.7k2[1 issues](https://github.com/jeroendesloovere/countries-php-api/issues)MITPHPPHP &gt;=5.3.3

Since Apr 2Pushed 10y ago2 watchersCompare

[ Source](https://github.com/jeroendesloovere/countries-php-api)[ Packagist](https://packagist.org/packages/jeroendesloovere/countries-php-api)[ Docs](https://github.com/jeroendesloovere/countries-php-api)[ RSS](/packages/jeroendesloovere-countries-php-api/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)DependenciesVersions (3)Used By (0)

Countries PHP API class
=======================

[](#countries-php-api-class)

This Countries PHP API class gets all the countries in the world and their information.

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

[](#installation)

You can install the class by using [composer](https://getcomposer.org/). Just add it as a dependency in you `composer.json` file,

```
{
	"require":{
		"jeroendesloovere/countries-php-api": "1.*"
	}
}
```

and run `composer install`.

Documentation
-------------

[](#documentation)

The class is well documented inline. If you use a decent IDE you'll see that each method is documented with PHPDoc.

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

[](#contributing)

It would be great if you could help us improve this class. GitHub does a great job in managing collaboration by providing different tools, the only thing you need is a [GitHub](http://github.com) login.

- Use **Pull requests** to add or update code
- **Issues** for bug reporting or code discussions
- Or regarding documentation and how-to's, check out **Wiki**More info on how to work with GitHub on help.github.com.

License
-------

[](#license)

The module is licensed under [MIT](./LICENSE.md). In short, this license allows you to do everything as long as the copyright statement stays present.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~212 days

Total

2

Last Release

4209d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/588616?v=4)[Jeroen Desloovere](/maintainers/jeroendesloovere)[@jeroendesloovere](https://github.com/jeroendesloovere)

---

Top Contributors

[![jeroendesloovere](https://avatars.githubusercontent.com/u/588616?v=4)](https://github.com/jeroendesloovere "jeroendesloovere (28 commits)")[![magkopian](https://avatars.githubusercontent.com/u/1429068?v=4)](https://github.com/magkopian "magkopian (7 commits)")

---

Tags

phpapicountries

### Embed Badge

![Health badge](/badges/jeroendesloovere-countries-php-api/health.svg)

```
[![Health](https://phpackages.com/badges/jeroendesloovere-countries-php-api/health.svg)](https://phpackages.com/packages/jeroendesloovere-countries-php-api)
```

###  Alternatives

[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

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