PHPackages                             salamwaddah/passport-visa-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. salamwaddah/passport-visa-api

AbandonedLibrary[API Development](/categories/api)

salamwaddah/passport-visa-api
=============================

Passport Visa API - an unofficial passportindex.org API

1.1.1(1y ago)548MITPHPPHP &gt;=7.1

Since Jan 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/salamwaddah/passport-visa-api)[ Packagist](https://packagist.org/packages/salamwaddah/passport-visa-api)[ RSS](/packages/salamwaddah-passport-visa-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Passport Visa API
=================

[](#passport-visa-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6144d27ac39bf83289ca74f398e35315483655721b4a381e9994d3c0e1a4f1fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616c616d7761646461682f70617373706f72742d766973612d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/salamwaddah/passport-visa-api)[![Total Downloads](https://camo.githubusercontent.com/ad03705d2cd6bb2167274a92fa2cad41f303d6777d2b06ab746a22fdc31089c7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616c616d7761646461682f70617373706f72742d766973612d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/salamwaddah/passport-visa-api)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

An unofficial passportindex.org API - supports [199 passports](src/countries.csv)

### ABANDONED: You may inspect the code but it's no longer maintained, passportindex.org making it more difficult to scrape.

[](#abandoned-you-may-inspect-the-code-but-its-no-longer-maintained-passportindexorg-making-it-more-difficult-to-scrape)

Showcase website
----------------

[](#showcase-website)

- [Visa requirements per passport](https://salamwaddah.com) - Page is deleted

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

[](#installation)

You can install the package via composer:

```
composer require salamwaddah/passport-visa-api
```

Usage
-----

[](#usage)

You can get all the visa requirements for a passport by using the `get()` method.

```
require_once __DIR__ . '/../vendor/autoload.php';

$passport = \SalamWaddah\PassportVisa\Passport::make('ma');

$passport->get();
// [
//     "visa-free" => ["tr", etc...],
//     "visa-on-arrival" => ["lb", etc...],
//     "electronic-travel-authorization" => ["kr", etc...],
//     "e-visa" => ["jo", etc...],
//     "visa-required" => ["gb", etc...],
//     "not-admitted" => [],
//     "covid-ban" => [],
// ]
```

Alternatively you can get the visa requirements for a passport by using the methods:

- `listVisaFree()`
- `listVisaOnArrival()`
- `listEta()`
- `listEVisa()`
- `listVisaRequired()`
- `listNotAdmitted()`
- `listCovidBan()`

```
// list of visa free countries for your $passport
$passport->listVisaFree(); // returns ["tr", etc...]

// list of countries which do not admit your $passport
$passport->listNotAdmitted(); // returns []
```

Caching
-------

[](#caching)

This library does not cache the results, you can use your own caching mechanism to avoid unnecessarily calling passportindex.org everytime. A recommended TTL for your cache is 1 day.

Testing
-------

[](#testing)

```
composer test
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

Every ~36 days

Total

5

Last Release

703d ago

Major Versions

0.0.0 → 1.0.02024-01-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/f49a697f92ca5b498868ced9c24eda225da3a9b83fdf325bbcdffd4c5c376f26?d=identicon)[salamwaddah](/maintainers/salamwaddah)

---

Top Contributors

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

---

Tags

passportindexpassportvisa

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/salamwaddah-passport-visa-api/health.svg)

```
[![Health](https://phpackages.com/badges/salamwaddah-passport-visa-api/health.svg)](https://phpackages.com/packages/salamwaddah-passport-visa-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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