PHP code example of oliverearl / nomiai-php-laravel

1. Go to this page and download the library: Download oliverearl/nomiai-php-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/ */

    

oliverearl / nomiai-php-laravel example snippets


use \Nomiai\PhpSdk\Laravel\Facades\NomiAI;

/** @var array<int, \Nomiai\PhpSdk\Resources\Nomi> $nomis */
$nomis = NomiAI::getNomis();

$conversation = NomiAi::sendMessageToNomi(collect($nomis)->first(), 'Hello Nomi!');
bash
composer 
bash
php artisan vendor:publish --tag="nomiai-php-laravel-config"