How can I insert data (a document) to CosmosDB (using the SQL API) from a PHP web app?
Is it possible or not to process the insert query?
How can I insert data (a document) to CosmosDB (using the SQL API) from a PHP web app?
Is it possible or not to process the insert query?
Azure CosmosDB supports multiple clients you can choose from. Currently it does not have native php client, but you can use REST API:
The Azure Cosmos DB REST API provides programmatic access to Azure Cosmos DB resources to create, query, and delete databases, document collections, and documents. To perform operations on Azure Cosmos DB resources, you send HTTPS requests with a supported method: GET, POST, PUT, or DELETE to an endpoint that targets a resource collection or a specific resource.
Read more from here: Azure Cosmos DB: REST API Reference.
To check if your preferred language has an official client library available, check the official CosmosDB documentation page "How can I develop apps with the SQL API?".
If by "Insert query" you mean INSERT INTO .. SQL syntax then note that CosmosDB SQL API is not ANSI SQL. See also another SO answer on the subject of SQL syntax in CosmosDB.