james.xue/search

source search [资源搜索工具、包括给公众号发送消息和 github 提交代码、上传图片并使用cdn加速等]


README

Latest Stable Version Total Downloads GitHub license

This package is meant to be used in your terminal. And allows working with lots of subdirectories containing git repositories.

Installation

A、Composer

composer global require james.xue/search

B、Shell Ubuntu

curl -O https://ghproxy.com/https://raw.githubusercontent.com/xiaoxuan6/search/main/install.sh && chmod +x ./install.sh && ./install.sh

Make sure to place the ~/.composer/vendor/bin directory in your PATH so the search executable can be located by your system.

Init configuration

search init

Env system variable

Copy the config.json file in the root directory to the current directory and modify the configuration file, And execute the following command:

search env -f ./config.json

Can also a value can be set individually

search config set --key=xxx --value=xxx

More

ocr
ocr ./16a7067.jpg
qrcode
qrcode ./16a7067.jpg

Api

$app = new Vinhson\Search\Api\Application();
OCR
$app->ocr->handle("./a.png");
Qrcode
// 生成二维码
$app->qrcode->generate("https://github.com/xiaoxuan6/search");
// 生成带背景的二维码
$app->qrcode->generate("https://github.com/xiaoxuan6/search", "https://background.com/a.png");
// 解析二维码
$app->qrcode->decode("./qrcode.png");
image
$app->image