2017 © Pedro Peláez
 

composer-plugin wappalyzer-wrapper

Wrapper for wappalyzer technology detection.

image

silktide/wappalyzer-wrapper

Wrapper for wappalyzer technology detection.

  • Friday, July 6, 2018
  • by andywaite
  • Repository
  • 3 Watchers
  • 2 Stars
  • 679 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 28 Versions
  • 29 % Grown

The README.md

Deprecated

Due to this making calls to the internal (very unstable) API of Wappalyzer this is deprecated, (*1)

wappalyzer-wrapper

A simple PHP wrapper for Wappalyzer technology detection that wraps up wappalyzer-cli command line client for use as an easily installed composer dependency., (*2)

This library now also allows you to optionally bypass Wappalyzer's use of zombie to download the page, and instead you can pass in your own HTML, headers etc., (*3)

Simple usage

//Build required classes (can also use DI)
$resultFactory = new \Silktide\WappalyzerWrapper\Result\ResultFactory();
$technologyResultFactory = new \Silktide\WappalyzerWrapper\Result\TechnologyResultFactory();
$parser = new \Silktide\WappalyzerWrapper\Result\ResultProcessor($resultFactory, $technologyResultFactory);
$commandFactory = new \Silktide\WappalyzerWrapper\CommandFactory();
$jsonFileWriter = new \Silktide\WappalyzerWrapper\Request\JsonFileWriter();

// Create client
$client = new \Silktide\WappalyzerWrapper\Client($commandFactory, $parser, $jsonFileWriter);

// Get the analysis results for a site
$result = $client->analyse('https://silktide.com');

// Output all technologies found
foreach ($result->getTechnologyResults() as $technologyResult) {
    echo "\nFound ".$technologyResult->getName();
}

// Output just something from a specific category
foreach ($result->getTechnologyResultsByCategory('Analytics') as $technologyResult) {
    echo "\nFound ".$technologyResult->getName();
}

Usage with existing page data

This client can also be used with existing page data you already have, bypassing wappalyzer's use of Zombie to download the page. You will need the hostname, URL, response headers, HTML and env vars. Wappalyzer env vars should be a list of keys from the window object of the page visited, e.g. ['jQuery', 'ga']., (*4)


//Build required classes (can also use DI) $resultFactory = new \Silktide\WappalyzerWrapper\Result\ResultFactory(); $technologyResultFactory = new \Silktide\WappalyzerWrapper\Result\TechnologyResultFactory(); $parser = new \Silktide\WappalyzerWrapper\Result\ResultProcessor($resultFactory, $technologyResultFactory); $commandFactory = new \Silktide\WappalyzerWrapper\CommandFactory(); $jsonFileWriter = new \Silktide\WappalyzerWrapper\Request\JsonFileWriter(); // Set up request from existing page data $existingPageDataRequest = new \Silktide\WappalyzerWrapper\Request\ExistingPageDataRequest(); $existingPageDataRequest->setHostname('example.com'); $existingPageDataRequest->setUrl('https://example.com'); $existingPageDataRequest->addHeader('Content-Type', 'application/json'); $existingPageDataRequest->addWindowObjectKey('ga'); $existingPageDataRequest->setHtml('<html><head><meta name="generator" content="Amiro"></head><body></body></html>'); // Create client $client = new \Silktide\WappalyzerWrapper\Client($commandFactory, $parser, $jsonFileWriter); // Get the analysis results for a site $result = $client->analyseFromExistingData($existingPageDataRequest); // Output all technologies found foreach ($result->getTechnologyResults() as $technologyResult) { echo "\nFound ".$technologyResult->getName(); } // Output just something from a specific category foreach ($result->getTechnologyResultsByCategory('Analytics') as $technologyResult) { echo "\nFound ".$technologyResult->getName(); }

The Versions

06/07 2018

dev-master

9999999-dev

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

14/05 2018

0.3.1

0.3.1.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

14/05 2018

0.3.0

0.3.0.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

01/05 2018

dev-pass-through-cookies-scripts

dev-pass-through-cookies-scripts

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

27/04 2018

0.2.13

0.2.13.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

26/03 2018

dev-amend-installer

dev-amend-installer

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

26/02 2018

0.2.12

0.2.12.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

26/02 2018

0.2.11

0.2.11.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

26/02 2018

dev-fix-lowercase

dev-fix-lowercase

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

26/02 2018

0.2.10

0.2.10.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

17/01 2018

0.2.9

0.2.9.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

17/01 2018

dev-leepercox-patch-1

dev-leepercox-patch-1

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

17/01 2018

dev-update-to-wappalyzer-5.4

dev-update-to-wappalyzer-5.4

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

17/01 2018

0.2.8

0.2.8.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

16/01 2018

0.2.7

0.2.7.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

16/01 2018

dev-fix-to-old-wappalyzer

dev-fix-to-old-wappalyzer

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

05/01 2018

0.2.6

0.2.6.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

03/01 2018

0.2.5

0.2.5.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

03/01 2018

0.2.4

0.2.4.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

24/11 2017

0.2.3

0.2.3.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

15/11 2017

0.2.2

0.2.2.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

15/11 2017

0.2.1

0.2.1.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

14/11 2017

0.2.0

0.2.0.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

02/11 2017

0.1.4

0.1.4.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

02/11 2017

0.1.3

0.1.3.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

02/11 2017

0.1.2

0.1.2.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

02/11 2017

0.1.1

0.1.1.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite

02/11 2017

0.1.0

0.1.0.0

Wrapper for wappalyzer technology detection.

  Sources   Download

The Requires

 

The Development Requires

by theandywaite