1. Go to this page and download the library: Download diezeel/laravel-sphinx 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/ */
$sq->whereMulti('id', '=', [1, 2, 3, [4, 5]]);
// Output: WHERE id = 1 and id = 2 and id = 3 and id = 4 and id = 5
$sq->whereMulti('id', 'in', [1, 2, 3]);
// Output: WHERE id in (1) and id in (2) and id in (3)
$sq->whereMulti('id', 'in', [1, [20, 21], [30, 31]]);
// Output: WHERE id in (1) and id in (20, 21) and id in (30, 31)
// Equivalently
$sq->whereMulti('id', 'in', 1, [20, 21], [30, 31]);
// Output: WHERE id in (1) and id in (20, 21) and id in (30, 31)