mathsgod/duckduckgo-search-php

There is no license information available for the latest version (1.0.1) of this package.

A PHP library to search DuckDuckGo.

1.0.1 2023-03-15 10:19 UTC

This package is auto-updated.

Last update: 2024-12-13 12:26:53 UTC


README

PHP DuckDuckGo Search

This is a PHP class that allows you to search DuckDuckGo from your PHP application.

Installation

You can install this package via composer:

composer require mathsgod/duckduckgo-search-php

Usage

$ddg=new DuckDuckGo;
$results=$ddg->search('php');

Region

You can also search in a specific region:

$ddg=new DuckDuckGo;
$results=$ddg->search('php','hk-tzh');//Hong Kong

Time range

You can also search in a specific time range:

$ddg=new DuckDuckGo;
$results=$ddg->search('php','hk-tzh','m');//Last month