2017 © Pedro Peláez
 

library phishtank-php

A simple PHP wrapper for the PhishTank API.

image

pxgamer/phishtank-php

A simple PHP wrapper for the PhishTank API.

  • Friday, June 22, 2018
  • by PXgamer
  • Repository
  • 0 Watchers
  • 3 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

phishtank-php

![Latest Version on Packagist][ico-version] Software License ![Build Status][ico-travis] Style CI ![Code Coverage][ico-code-quality] Total Downloads, (*1)

A simple PHP wrapper for the PhishTank API., (*2)

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., (*3)

src/
tests/
vendor/

Install

Via Composer, (*4)

``` bash $ composer require pxgamer/phishtank-php, (*5)


## Usage **__construct($url, $api_key = null)** This will initialise the object with all details. ```php // Api Key parameter is optional. Should be a string if included. $client = new \pxgamer\PhishTank\Hook($url);

getResults(), (*6)

This will refresh the results and fetch new ones from the server., (*7)

Example code

use pxgamer\PhishTank\Hook;

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

echo '

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

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

Please see CHANGELOG for more information on what has changed recently., (*8)

Testing

bash $ composer test, (*9)

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*10)

Security

If you discover any security related issues, please email owzie123@gmail.com instead of using the issue tracker., (*11)

Credits

License

The MIT License (MIT). Please see License File for more information., (*12)

The Versions

22/06 2018

dev-develop

dev-develop

A simple PHP wrapper for the PhishTank API.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

06/12 2017

dev-master

9999999-dev

A simple PHP wrapper for the PhishTank API.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Avatar PXgamer

06/12 2017

v2.1.2

2.1.2.0

A simple PHP wrapper for the PhishTank API.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

20/11 2017

v2.1.1

2.1.1.0

A simple PHP wrapper for the PhishTank API.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

07/11 2017

v2.1.0

2.1.0.0

A simple PHP wrapper for the PhishTank API.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

02/11 2017

v2.0.1

2.0.1.0

A simple PHP wrapper for the PhishTank API.

  Sources   Download

MIT

The Requires

  • php ^7.1.0

 

The Development Requires

07/08 2017

v2.0.0

2.0.0.0

A simple PHP wrapper for the PhishTank API.

  Sources   Download

MIT

The Requires

  • php ^7.1.0

 

The Development Requires

27/02 2017

v1.0.0

1.0.0.0 https://github.com/pxgamer/phishtank-php

A simple PHP wrapper for the PhishTank API.

  Sources   Download

MIT

by Avatar PXgamer