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-07-06 (2 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 98 This week: 1All time: 9,677 This week: 181Up
Version License PHP version Categories
dorkgen 1.0.0The 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 Mehmet Can
  Performance   Level  
Name: Mehmet Can <contact>
Classes: 2 packages by
Country: Turkey Turkey
Age: ???
All time rank: 426081 in Turkey Turkey
Week rank: 175 Up5 in Turkey Turkey Up
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->string().PHP_EOL;
echo $google->url();
  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:98
This week:1
All time:9,677
This week:181Up
For more information send a message to info at phpclasses dot org.