PHPackages                             pxgamer/phishtank-php - 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. pxgamer/phishtank-php

ActiveLibrary[API Development](/categories/api)

pxgamer/phishtank-php
=====================

A simple PHP wrapper for the PhishTank API.

v2.1.2(8y ago)318MITPHPPHP ^7.1

Since Feb 27Pushed 7y ago1 watchersCompare

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

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

phishtank-php
=============

[](#phishtank-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8e112168deddf219ed4d83a08904c4e852a8704a155d4f31e4d7c495e170f0f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f707867616d65722f706869736874616e6b2d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pxgamer/phishtank-php)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/a2debd4adaab80c8d9dd569ba47594b49dab92aacc8c71903ad907b79d406fc2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f707867616d65722f706869736874616e6b2d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/pxgamer/phishtank-php)[![Style CI](https://camo.githubusercontent.com/636f0efa7a90b2a74f89555546973c81fe110b8fe00dba6b7a93e5712ded6287/68747470733a2f2f7374796c6563692e696f2f7265706f732f38333333303737352f736869656c64)](https://styleci.io/repos/83330775)[![Code Coverage](https://camo.githubusercontent.com/be1ca9a86496b96ae88589d82e585add8ebd3ec01a47d09cafc156fbc5c45aab/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f707867616d65722f706869736874616e6b2d7068702e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/pxgamer/phishtank-php)[![Total Downloads](https://camo.githubusercontent.com/c4a6f6bbfca9ec2df819be0568665a4e608f27f75c097f6ec61b1c105e4381b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f707867616d65722f706869736874616e6b2d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pxgamer/phishtank-php)

A simple PHP wrapper for the [PhishTank](https://www.phishtank.com) API.

Structure
---------

[](#structure)

If any of the following are applicable to your project, then the directory structure should follow industry best practises by being named the following.

```
src/
tests/
vendor/

```

Install
-------

[](#install)

Via Composer

```
$ composer require pxgamer/phishtank-php
```

Usage
-----

[](#usage)

**\_\_construct($url, $api\_key = null)**

This will initialise the object with all details.

```
// Api Key parameter is optional. Should be a string if included.
$client = new \pxgamer\PhishTank\Hook($url);
```

**getResults()**

This will refresh the results and fetch new ones from the server.

#### Example code

[](#example-code)

```
use pxgamer\PhishTank\Hook;

$result = new Hook('https://github.com');

echo '' . print_r($result, true) . '';
```

#### Example response

[](#example-response)

```
pxgamer\PhishTank\Hook Object
(
    [url:pxgamer\PhishTank\Hook:private] => https://github.com
    [requestData:pxgamer\PhishTank\Hook:private] => Array
        (
            [format] => json
            [url] => https://github.com
        )

    [app_key:pxgamer\PhishTank\Hook:private] =>
    [meta:pxgamer\PhishTank\Hook:private] => pxgamer\PhishTank\Meta Object
        (
            [timestamp:protected] => DateTime Object
                (
                    [date] => 2017-08-07 13:18:13.000000
                    [timezone_type] => 1
                    [timezone] => +00:00
                )

            [serverid:protected] => ab9f6c17
            [status:protected] => 1
            [requestid:protected] => 146.112.225.22.59886895b52782.72884672
        )

    [results:pxgamer\PhishTank\Hook:private] => pxgamer\PhishTank\Results Object
        (
            [url:protected] => https://github.com
            [in_database:protected] =>
            [phish_id:protected] =>
            [phish_detail_page:protected] =>
            [verified:protected] =>
            [verified_at:protected] =>
            [valid:protected] =>
        )

)
```

Change log
----------

[](#change-log)

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

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [pxgamer](https://github.com/pxgamer)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~56 days

Recently: every ~30 days

Total

6

Last Release

3081d ago

Major Versions

v1.0.0 → v2.0.02017-08-07

PHP version history (2 changes)v2.0.0PHP ^7.1.0

v2.1.0PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1899334?v=4)[Owen Voke](/maintainers/owenvoke)[@owenvoke](https://github.com/owenvoke)

---

Top Contributors

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

---

Tags

apiphishtankphpwrapper

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/pxgamer-phishtank-php/health.svg)

```
[![Health](https://phpackages.com/badges/pxgamer-phishtank-php/health.svg)](https://phpackages.com/packages/pxgamer-phishtank-php)
```

###  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)
