Hi @Mohammed Hussein,
Please refer to this link:
I'm not familiar with PHP. So I can only answer your question from the SQL Server perspective.
Check that the required dependencies are installed. The sqlsrv driver has several dependencies that need to be installed on your system, including the Microsoft ODBC Driver for SQL Server, the Microsoft Command Line Utilities 15 for SQL Server, and the Visual C++ Redistributable for Visual Studio 2019.
Best regards,
Seeya
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".