Skip to content

Commit 4d40dfd

Browse files
committed
In PHP, use DeepL\Client, not DeepL\Translator
correcting error in a couple of other guides
1 parent d3d9895 commit 4d40dfd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/getting-started/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ New user? Follow these quick steps to get started with the DeepL API.
142142

143143
```php Sample request
144144
require_once 'vendor/autoload.php';
145-
use DeepL\Translator;
145+
use DeepL\Client;
146146

147147
$authKey = "{YOUR_API_KEY}"; // replace with your key
148148
$deeplClient = new \DeepL\DeepLClient($authKey);

docs/getting-started/your-first-api-request.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ We included text translation examples for our [client libraries](/docs/getting-s
104104
<Tab title="PHP">
105105
```php
106106
require_once 'vendor/autoload.php';
107-
use DeepL\Translator;
107+
use DeepL\Client;
108108

109109
$authKey = "f63c02c5-f056-..."; // Replace with your key
110110
$deeplClient = new \DeepL\DeepLClient($authKey);

0 commit comments

Comments
 (0)