PHP Classes

PHP Google Search Dork Generator: Generate query strings to perform Google searches

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2022-11-18 (15 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 99 All time: 9,672 This week: 189Up
Version License PHP version Categories
dorkgen 1.9.2The PHP License5PHP 5, Searching
Description Author

This class can generate query strings to perform Google searches.

It provides a fluent interface of functions to compose Google search queries.

The class can assemble the query and generates a URL of a Google search page that will perform the composed query when the page is accessed.

The class supports most search parameters operators supported by Google for instance to restrict the search to results with keywords in:

- The pages

- A given site

- Pages with links

- Pages URL

- Pages text

- The page title

- Pages URL anchor text

- Pages post title

- Pages post author

- Files of given type

- The search results cache

- Related pages

- URL extension

- Book

- IP address

- Maps

- Page information

- Etc.

Innovation Award
PHP Programming Innovation award nominee
July 2022
Number 8
Many people use Google as a prevalent search engine due to its ability to present results about pages that are available on the Web.

Google provides a way to query the search engine using text strings that support a powerful syntax to restrict the search results to pages that can match complex conditions.

This package provides a more straightforward way to compose Google search query strings by providing a set of functions that PHP developers can use without understanding Google search query syntax.

Manuel Lemos
Picture of 0x1881
  Performance   Level  
Name: 0x1881 <contact>
Classes: 2 packages by
Country: Turkey Turkey
Innovation award
Innovation award
Nominee: 1x

Details

DorkGen

Google dork generator

Install

composer require 0x1881/dorkgen

Using

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

use C4N\DorkGen\Google;

$google = (new Google)->exclude(
    (new Google)->site('instagram.com')->site('facebook.com')
)
->group(
    (new Google)->plain('mark')->and()->plain('zuckerberg')
)
->username('zuck');

echo $google.PHP_EOL; // == return $google->string()
echo $google->dork().PHP_EOL; // == return $google->string()
echo $google->string().PHP_EOL;
echo $google->url().PHP_EOL;
print_r($google->tags());
  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file test.php Example Example script

  Files folder image Files  /  src  
File Role Description
  Plain text file google.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:99
This week:0
All time:9,672
This week:189Up