Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 283a2a4

Browse files
author
Jay Trees
committed
Add namespace
1 parent d254873 commit 283a2a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,16 @@ composer require babymarkt/deepl-php-lib
2828
Create an instance with your auth key:
2929

3030
```php
31+
use \BabyMarkt\DeepL\DeepL;
32+
3133
$authKey = '<AUTH KEY>';
3234
$deepl = new DeepL($authKey);
3335
```
3436

3537
Use the DeepL API Pro:
3638
```php
39+
use \BabyMarkt\DeepL\DeepL;
40+
3741
$authKey = '<AUTH KEY>';
3842
$deepl = new DeepL($authKey,2,'api.deepl.com');
3943
```
@@ -110,7 +114,7 @@ You can now check how much you translate, as well as the limit:
110114
$usageArray = $deepl->usage();
111115

112116
echo 'You have used '.$usageArray['character_count'].' of '.$usageArray['character_limit'].' in the current billing period.'.PHP_EOL;
113-
117+
114118
```
115119

116120
### Glossary

0 commit comments

Comments
 (0)