DeepLy

PHP client for the DeepL.com translation API (unofficial)

MIT License

Downloads
65.4K
Stars
228
Committers
1
DeepLy - 2.2.0 Latest Release

Published by chriskonnertz over 1 year ago

Differences to DeepLy version 2.1 are:

Added new languages: Indonesian and Turkish

DeepLy - 2.1.0

Published by chriskonnertz over 1 year ago

Version 2.1

Differences to DeepLy version 2.0 are:

  • Deactivated deprecated method translateFile(). It still exists but if you call it an exception is going to be thrown
  • Added support for Korean and Norwegian languages
  • Added resetSettings() method (a convenient helper method that you can use instead of setSettings())
DeepLy - v2.0.1

Published by chriskonnertz over 2 years ago

Minor release

DeepLy - v2.0

Published by chriskonnertz over 2 years ago

Version 2.0

Differences to DeepLy version 1.x are:

  • Text length check has been removed (because the limit is now about 120000 letters which should be enough in most cases)
  • Texts can no longer be split into sentences, as the API does not seem to support this
  • proposeTranslations() method has been removed
  • Guzzle implementation removed (you can still write your own though)
  • HttpClientInterface has been modified
  • JSON RPC protocol support has been removed
  • All the bag classes have been removed
  • No longer uses the unofficial API, but uses official v2 API
  • API key has been introduced
  • Updated API error handling, CallException now contains API HTTP error code
  • Glossary support has been introduced
  • Usage method has been introduced
  • Support for new languages added
  • The translateFile() method is now deprecated, please use translateTextFile() instead!

How to migrate from v1 to v2

To upgrade from v1 to v2, make sure you specify the API key when instantiating the DeepLy object. Apart from the changes mentioned above your v1 code should still work with v2 as long as you did not write your own HTTP client or extended the DeepLy class with a custom class.

DeepLy - v2.0-beta

Published by chriskonnertz over 2 years ago

Version 2.0-beta

Differences to DeepLy version 1.x are:

  • Text length check has been removed (because the limit is now about 120000 letters which should be enough in most cases)
  • Texts can no longer be split into sentences, as the API does not seem to support this
  • proposeTranslations() method has been removed
  • Guzzle implementation removed (you can still write your own though)
  • JSON RPC protocol support has been removed
  • All the bag classes have been removed
  • No longer uses the unofficial API, but uses official v2 API
  • API key has been introduced
  • Updated API error handling, CallException now contains API HTTP error code
  • Glossary support has been introduced
  • Usage method has been introduced
  • Support for new languages added
  • The translateFile() method is now deprecated, please use translateTextFile() instead!
DeepLy - v1.6.1

Published by chriskonnertz over 5 years ago

Changelog:

  • Added Russian and Portuguese languages
DeepLy - v1.6.0

Published by chriskonnertz about 6 years ago

Changelog:

  • Changed API endpoint URI -> this made DeepLy work again
DeepLy - v1.5.3

Published by chriskonnertz over 6 years ago

Changelog:

  • README.md changes

Notes:

  • DeepLy 2 is under development and will be released soon. It will support DeepL Pro. It is recommended to switch to DeepLy 2 as soon as possible.
  • The tests are red (failing) not because of bugs in DeepLy but because the DeepL API is not responding in the expected way
DeepLy - v1.5.2

Published by chriskonnertz over 6 years ago

Changelog:

  • Fixed a bug in the autoloader of the demo files
  • README.md changes
DeepLy - v1.5.1

Published by chriskonnertz almost 7 years ago

Changelog:

  • Added error codes to all bag exceptions
  • Better UI and UX for the demo pages
  • Updated tests
  • Updated README.md
DeepLy - v1.5.0

Published by chriskonnertz almost 7 years ago

Attention: The joinSentences parameter has been removed from these methods: DeepLy::translate(), DeepLy::requestTranslation() and DeepLy::translateFile()

The handling of text that contains line breaks has changed: line breaks will be kept now.

Please check that everything works they way it should after you have updated to this version!

Changelog:

  • Line breaks will be kept now
  • Added getLanguage() method to SentencesBag class
  • DeepLy now throws a proper exception if language auto-detection fails
  • Added split text demo (demos/demo_split.php)
  • Enhanced README.md
DeepLy - v1.4.4

Published by chriskonnertz about 7 years ago

Changelog:

  • Added a bugfix: In the translation request the source language was not stored in the right parameter
DeepLy - v1.4.3

Published by chriskonnertz about 7 years ago

Changelog:

  • Added the HTML server message to the exception message
DeepLy - v1.4.2

Published by chriskonnertz about 7 years ago

Changelog:

  • Use "joinSentence" parameter so only one API call will be made, not two
  • Renamed demo scripts
DeepLy - v1.4.1

Published by chriskonnertz about 7 years ago

Changelog:

  • Added getLangName() and getLangCodeByName() methods
DeepLy - v1.4.0

Published by chriskonnertz about 7 years ago

Changelog:

  • Reworte translateSentences()method so that it internally only makes one API call.
    IMPORTANT: Now it expects an array of sentences!! Please check if you call this method in your code and adjust your code.
  • Added detectTranslation()method. This change has been inspired by https://github.com/vsetka/deepl-translator that added a "language detection" method as well.
  • Refactored HttpClient classes
  • Added Guzzle tests, improved tests in general
  • Updated README.md
DeepLy - v1.3.1

Published by chriskonnertz about 7 years ago

Changelog:

  • Important bugfix in composer.json for Laravel's package auto-discovery
  • Added array size check
DeepLy - v1.3.0

Published by chriskonnertz about 7 years ago

Changelog:

  • Added Laravel framework integration
  • Added Guzzle support
  • Throw an exception if translation text length is exceeded
  • Renamed main demo script
DeepLy - v1.2.0

Published by chriskonnertz about 7 years ago

Changelog:

  • Important bug fixes
  • Added ping method
  • Added more tests
  • Enhanced error handling in the cURL client class
  • Refactoring
  • Renamed dev folder to demos
DeepLy - v1.1.0

Published by chriskonnertz about 7 years ago

Changelog:

  • Made VALIDATE_ID a var and added getter/setter method
  • Added $allowAuto param to supportsLangCode method
  • Adjusted interface so it also has the processResponseData() method
  • Split test class into two test classes
  • Added more tests
  • Some changes in the README.md
Package Rankings
Top 6.69% on Proxy.golang.org
Top 3.92% on Packagist.org
Badges
Extracted from project README
Build Status Version GitHub license Version
Related Projects