PHP code example of 96qbhy / productai-laravel
1. Go to this page and download the library: Download 96qbhy/productai-laravel library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
96qbhy / productai-laravel example snippets
'providers' => [
...
Qbhy\ProductAI\ProductAIServiceProvider::class,
]
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(...);
}
}
bash
php artisan vendor:publish --provider="Qbhy\ProductAI\ProductAIServiceProvider"