james.xue / search
source search [资源搜索工具、包括给公众号发送消息和 github 提交代码、上传图片并使用cdn加速等]
Fund package maintenance!
xiaoxuan6.github.io/images/donate/alipayimg.jpg
Requires
- php: ^8.0
- ext-intl: *
- ext-json: *
- guzzlehttp/guzzle: ^7.5 | ^7.8
- illuminate/collections: ^10.48
- illuminate/support: ^10.48
- laravel/prompts: dev-main
- pimple/pimple: ^3.5
- symfony/finder: ^5.4 || ^6.0
- symfony/process: *
- titasgailius/terminal: ^1.2
Requires (Dev)
- friendsofphp/php-cs-fixer: *
- rector/rector: ^0.17.0 || ^0.18.0 || ^0.19.0 || ^1.0
- 1.x-dev
- v1.2.7
- v1.2.6
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.0
- v0.57.0
- v0.56.0
- v0.55.2
- v0.55.1
- v0.55.0
- v0.54.2
- v0.54.1
- v0.54.0
- v0.53.1
- v0.53.0
- v0.52.0
- v0.51.0
- v0.50.0
- v0.49.0
- v0.48.0
- v0.47.0
- v0.46.0
- v0.45.0
- v0.44.0
- v0.43.0
- v0.42.0
- v0.41.0
- v0.40.0
- v0.39.0
- v0.38.0
- v0.37.0
- v0.36.0
- v0.35.0
- v0.34.0
- v0.33.0
- v0.32.0
- v0.31.0
- v0.30.0
- v0.29.1
- v0.29.0
- v0.28.2
- v0.28.1
- v0.28.0
- v0.27.0
- v0.26.0
- v0.25.0
- v0.24.0
- v0.23.0
- v0.22.0
- v0.21.0
- v0.20.0
- v0.19.0
- v0.18.0
- v0.17.0
- v0.16.0
- v0.15.0
- v0.14.0
- v0.13.0
- v0.12.0
- v0.11.0
- v0.10.0
- v0.9.0
- v0.8.0
- v0.7.0
- v0.6.0
- v0.5.0
- v0.4.0
- v0.3.0
- v0.2.0
- v0.1.0
- dev-main
- dev-wechat
This package is auto-updated.
Last update: 2024-11-08 04:16:28 UTC
README
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