windows create a file to connect sql server code example
Example 1: run php server mac
php -S localhost:9000
Example 2: php sql server connect
$serverName = "serverName\sqlexpress"; //serverName\instanceName
$connectionInfo = array( "Database"=>"dbName", "UID"=>"userName", "PWD"=>"password");
$conn = sqlsrv_connect( $serverName, $connectionInfo);