https://github.com/mathsgod/duckduckgo-search-php
https://github.com/mathsgod/duckduckgo-search-php
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mathsgod/duckduckgo-search-php
- Owner: mathsgod
- License: mit
- Created: 2023-03-15T10:12:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-18T13:40:03.000Z (over 2 years ago)
- Last Synced: 2025-07-19T20:43:54.012Z (11 months ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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:
```bash
composer require mathsgod/duckduckgo-search-php
```
## Usage
```php
$ddg=new DuckDuckGo;
$results=$ddg->search('php');
```
### Region
You can also search in a specific region:
```php
$ddg=new DuckDuckGo;
$results=$ddg->search('php','hk-tzh');//Hong Kong
```
### Time range
You can also search in a specific time range:
```php
$ddg=new DuckDuckGo;
$results=$ddg->search('php','hk-tzh','m');//Last month
```