noffily/duckduckgo-images-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

noffily/duckduckgo-images-api

Composer 安装命令:

composer require noffily/duckduckgo-images-api

包简介

Duckduckgo unofficial images api for PHP.

README 文档

README

This is unofficial DuckDuckGo images API client and created just for fun.
Please, use that package carefully and only for education purposes.
The official API is https://duckduckgo.com/api

The code for this package is based on ideas from python package

Install

composer require noffily/duckduckgo-images-api

Example usage

use DuckDuckGoImages\Client;

$client = new Client();
print_r($client->getImages('cars'));

Returns such as:

Array
(
    [ads] => 
    [next] => i.js?q=cars&o=json&p=-1&s=100&u=bing&f=,,,&l=wt-wt
    [query] => cars
    [queryEncoded] => cars
    [response_type] => places
    [results] => Array
        (
            [0] => Array
                (
                    [height] => 1067
                    [image] => http://example.com/image.jpg
                    [source] => Bing
                    [thumbnail] => http://example.com/thumbnail.jpg
                    [title] => Awesome car
                    [url] => http://example.com/url
                    [width] => 1600
                )
            ...
        )
    [vqd] => Array
        (
            [cars] => 3-47107992990464668095541999824506671634-149382371238630188221044527126906250971
        )    
)            

License

MIT

统计信息

  • 总下载量: 52
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固