96qbhy / productai-laravel
码隆科技 ProductAI Laravel SDK
Installs: 38
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 1
pkg:composer/96qbhy/productai-laravel
Requires
- malong/productai: ^0.2.5
Requires (Dev)
- laravel/laravel: ^5.5
This package is not auto-updated.
Last update: 2022-02-01 13:09:38 UTC
README
码隆科技 ProductAI Laravel SDK
安装
- 下载
composer require 96qbhy/productai-laravel
- 添加服务提供者
'providers' => [ ... Qbhy\ProductAI\ProductAIServiceProvider::class, ]
- 发布配置文件
php artisan vendor:publish --provider="Qbhy\ProductAI\ProductAIServiceProvider"
使用
<?php namespace App\Http\Controllers; use Qbhy\ProductAI; class AliPayController extends Controller { public function example(ProductAI $api) { $api->search(file_get_contents(__DIR__.'/test.png')); // $api->addImage(...); } }
https://github.com/96qbhy/productai-laravel
96qbhy@gmail.com