Download the PHP package devkind/rytr-php without Composer
On this page you can find all versions of the php package devkind/rytr-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package rytr-php
PHP client to communicate with Rytr API
RytrPhp is a simple SDK implementation of Rytr API. It helps accessing the API in an object oriented way.
Oficial Rytr-me page: https://rytr.me/
Oficial Rytr-me git documentation: https://github.com/rytr-me/documentation
Getting the API key
please register an account and request an api key at Rytr.
Please check out the tutorials section for more information
Installation
You can install the package via composer:
Usage
Initialization:
alternatively we can initialize static
Objects / Endpoints:
Endpoints are basically the type of content that is supported by Rytr.
Each endpoint requireds an $tone
and $language
parameter to query from rytr.
Defaults
protected $language = '607adac76f8fe5000c1e636d'; //english
- language in which the texts will be generated - change using setLangugage()
protected $language = '607adac76f8fe5000c1e636d'; //english
- tones in which the text will be - change using setTone()
protected int $variations = 1;
- number of texts in response - change using setVariation()
protected string $format = 'text';
- html or text - change using setFormat()****
protected string $creativityLevel = 'default';
-
fault | none | low | medium | high | max - change using setCreativityLevel()
- "For userId you need to supply user ID from your database, eg: primary key for users database table." - change using setUserId()
in order to change the language or tone we can call the setter methods, which is available on all the endpoints.
to set the language
to set the tone
alternatively:
All the endpoints can be called into three different ways
through the get
method
through the setter methods
through the generate
method
Supported Objects / Endpoints:
Click here to view the entire documentation of supported endpoints
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Devkind Developer
- Devkind Developer
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of rytr-php with dependencies
guzzlehttp/guzzle Version ^7.2
guzzlehttp/promises Version ^1.3.1
guzzlehttp/psr7 Version ^2.4.1
nesbot/carbon Version ^1.26.3 || ^2.0