2017 © Pedro Peláez
 

library surbl

A package to easliy test links and URLs against surbl.org

image

ampersa/surbl

A package to easliy test links and URLs against surbl.org

  • Thursday, April 13, 2017
  • by ampersa
  • Repository
  • 0 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 57 % Grown

The README.md

This package enables you to query multi.surbl.org with a URL and determine if the domain is listed., (*1)

Installation

Composer, (*2)

$ composer require ampersa/surbl

Usage

Basic usage, (*3)

use Ampersa\SURBL\SURBL;
...

$surbl = new SURBL;
$result = $surbl->listed('http://ampersa.co.uk');
// Returns: (bool) false

$result = $surbl->listed('http://surbl-org-permanent-test-point.com/');
// Returns: (bool) true

Specify lists to query
By default, all lists (phishing (PH), malware (MW), AbuseButler (ABUSE) and cracked (CR)) are queried., (*4)

To specify lists to use, pass a bitmask of options to the constructor, (*5)

$surbl = new SURBL(SURBL::LIST_PH | SURBL::LIST_MW);
$result = $surbl->listed('http://surbl-org-permanent-test-point.com/');
// Returns: (bool) false

Call statically
A static accessor has been included to provide shorthand access to the listed() function. The second argument may be used to pass the bitmask of options., (*6)

$result = SURBL::isListed('http://surbl-org-permanent-test-point.com/');
// Returns: (bool) true

$result = SURBL::isListed('http://surbl-org-permanent-test-point.com/', SURBL::LIST_PH | SURBL::LIST_MW);
// Returns: (bool) false

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

The Versions

13/04 2017

dev-master

9999999-dev

A package to easliy test links and URLs against surbl.org

  Sources   Download

MIT

The Requires

 

by Ampersa Ltd

13/04 2017

0.2

0.2.0.0

A package to easliy test links and URLs against surbl.org

  Sources   Download

MIT

The Requires

 

by Ampersa Ltd

13/04 2017

0.1.2

0.1.2.0

A package to easliy test links and URLs against surbl.org

  Sources   Download

MIT

The Requires

 

by Ampersa Ltd

13/04 2017

0.1.1

0.1.1.0

A package to easliy test links and URLs against surbl.org

  Sources   Download

MIT

The Requires

 

by Ampersa Ltd

13/04 2017

0.1

0.1.0.0

A package to easliy test links and URLs against surbl.org

  Sources   Download

MIT

The Requires

 

by Ampersa Ltd