PHP code example of johndoh / sauserprefs

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

    

johndoh / sauserprefs example snippets


$config['sauserprefs_db_dsnw'] =
'mysql://username:password@localhost/database?new_link=true';

$config['sauserprefs_default_prefs'] = [
  ...
  'score SYMBOLIC_TEST_NAME' => 2.0,
];