PHP code example of sharpapi / laravel-content-paraphrase
1. Go to this page and download the library: Download sharpapi/laravel-content-paraphrase library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sharpapi / laravel-content-paraphrase example snippets
use SharpAPI\ContentParaphrase\ContentParaphraseService;
$service = new ContentParaphraseService();
// Paraphrase text
$paraphrasedText = $service->paraphrase(
'The quick brown fox jumps over the lazy dog.',
'English', // optional language
100, // optional max length
'professional', // optional voice tone
'blog post' // optional context
);
// $paraphrasedText will contain the paraphrased text as a string