PHP code example of apiverve / textlanguage

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

    

apiverve / textlanguage example snippets

bash
curl -X POST "https://api.apiverve.com/v1/textlanguage" \
  -H "x-api-key: YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Ceci est un exemple de texte. Il peut détecter la langue"
}'