PHP code example of hans-thomas / sphinx

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

    

hans-thomas / sphinx example snippets


php artisan vendor:publish --tag sphinx-config

use SphinxTrait, SphinxTrait {
    SphinxTrait::hooks as private sphinxHooks;
}

protected static function booted() {
    self::sphinxHooks();
}