PHP code example of chance-fyi / hyperf-database-sqlserver

1. Go to this page and download the library: Download chance-fyi/hyperf-database-sqlserver 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/ */

    

chance-fyi / hyperf-database-sqlserver example snippets


// config/autoload/databases.php
return [
    'sqlsrv' => [
        'driver'       => 'sqlsrv',
        // host / database / username / password / ...
        'task_timeout' => 60, // optional, seconds, default 10
    ],
];