96qbhy/productai-laravel

This package is abandoned and no longer maintained. The author suggests using the 96qbhy/productai-sdk package instead.

码隆科技 ProductAI Laravel SDK

1.0.2 2017-09-09 07:33 UTC

This package is not auto-updated.

Last update: 2022-02-01 13:09:38 UTC


README

码隆科技 ProductAI Laravel SDK

安装

  1. 下载
composer require 96qbhy/productai-laravel
  1. 添加服务提供者
'providers' => [
    ...
    Qbhy\ProductAI\ProductAIServiceProvider::class,
]
  1. 发布配置文件
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