Comments (2)
Maybe you forgot the namespace? Either you have to use an use
statement like use \BabyMarkt\DeepL
at the beginning of your file or you must use the full qualified class name like new \BabyMarkt\DeepL\DeepL(...)
.
<?php
include "vendor/autoload.php";
$deepl = new \BabyMarkt\DeepL\DeepL('KEY',2,'api.deepl.com');
from deepl-php-lib.
ah, amazing. Thank you :-)
Just had to use api-free.deepl.com, but now I get the translations.
$deepl = new \BabyMarkt\DeepL\DeepL($authKey,2,'api-free.deepl.com');
Thanks a lot :-)
from deepl-php-lib.
Related Issues (11)
- Missed some languages HOT 1
- The API version must be specified HOT 2
- Release v1.0.11 HOT 1
- PHP Fatal error: Uncaught InvalidArgumentException: $tagHandling must be of type String in V2 of DeepLLibrar HOT 2
- test
- What would be the right way to set this up in Laravel? HOT 1
- Getting 403 although the API key is correct HOT 2
- The Response seems to not be valid JSON HOT 1
- Compatibility with PHP >8.1 HOT 3
- [Bug] Cannot create a Glossary after deleting another one HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepl-php-lib.