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

Commit

Permalink
- set standard-api-host to api-free.deepl.com
Browse files Browse the repository at this point in the history
- update README.md
- update CHANGELOG.md
  • Loading branch information
VimS committed Jul 7, 2021
1 parent fb2e151 commit c9c2ed1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.0.0] - 2020-09-??
## [3.0.0] - 2021-07-??
####Major overhaul of the Library with some Breaking changes. Please read before updating!
### Added
- Support for PHP 8
- Support for cURL proxy
### Changed
- Moved from travis-ci.org to travis-ci.com
- Added specific curl_error to message in DeepLException
- Fix some Tests that where too specific
- standard api-host from api.deepl.com to api-free.deepl.com
### Removed
- Support for PHP < 7.3

## [2.0.1] - 2020-09-29
####Major overhaul of the Library with some Breaking changes. Please read before updating!
### Added
- Ability to change the API-Host
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Simple PHP Library for DeepL API. You can translate one or multiple text strings (up to 50) per request.

๐Ÿ‡ฉ๐Ÿ‡ช๐Ÿ‡ฌ๐Ÿ‡ง๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ๐Ÿ‡ฒ๐Ÿ‡ฝ๐Ÿ‡ซ๐Ÿ‡ท๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ‡ฏ๐Ÿ‡ต๐Ÿ‡ณ๐Ÿ‡ฑ๐Ÿ‡ต๐Ÿ‡ฑ๐Ÿ‡ต๐Ÿ‡น๐Ÿ‡ง๐Ÿ‡ท๐Ÿ‡ท๐Ÿ‡บ๐Ÿ‡จ๐Ÿ‡ณ
๐Ÿ‡ฉ๐Ÿ‡ช๐Ÿ‡ฆ๐Ÿ‡น๐Ÿ‡จ๐Ÿ‡ญ๐Ÿ‡ฌ๐Ÿ‡ง๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ๐Ÿ‡ฒ๐Ÿ‡ฝ๐Ÿ‡ซ๐Ÿ‡ท๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ‡ฏ๐Ÿ‡ต๐Ÿ‡ณ๐Ÿ‡ฑ๐Ÿ‡ต๐Ÿ‡ฑ๐Ÿ‡ต๐Ÿ‡น๐Ÿ‡ง๐Ÿ‡ท๐Ÿ‡ท๐Ÿ‡บ๐Ÿ‡จ๐Ÿ‡ณ๐Ÿ‡ฌ๐Ÿ‡ท๐Ÿ‡ฉ๐Ÿ‡ฐ๐Ÿ‡จ๐Ÿ‡ฟ๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡ซ๐Ÿ‡ฎ๐Ÿ‡ญ๐Ÿ‡บ๐Ÿ‡ฑ๐Ÿ‡น๐Ÿ‡ฑ๐Ÿ‡ป๐Ÿ‡ท๐Ÿ‡ด๐Ÿ‡ท๐Ÿ‡ธ๐Ÿ‡ธ๐Ÿ‡ฐ๐Ÿ‡ธ๐Ÿ‡ช

[Official DeepL API][link-deepl]

Expand All @@ -32,6 +32,12 @@ $authKey = '<AUTH KEY>';
$deepl = new DeepL($authKey);
```

Use the DeepL API Pro:
```php
$authKey = '<AUTH KEY>';
$deepl = new DeepL($authKey,2,'api.deepl.com');
```

### Translate
Translate one Text:

Expand Down
2 changes: 1 addition & 1 deletion src/DeepL.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class DeepL
* @param integer $apiVersion
* @param string $host
*/
public function __construct($authKey, $apiVersion = 2, $host = 'api.deepl.com')
public function __construct($authKey, $apiVersion = 2, $host = 'api-free.deepl.com')
{
$this->authKey = $authKey;
$this->apiVersion = $apiVersion;
Expand Down

0 comments on commit c9c2ed1

Please sign in to comment.