PHP code example of sharpapi / laravel-content-keywords
1. Go to this page and download the library: Download sharpapi/laravel-content-keywords 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-keywords example snippets
use SharpAPI\ContentKeywords\ContentKeywordsService;
$service = new ContentKeywordsService();
// Generate keywords from text
$keywords = $service->generateKeywords(
'Your text content here',
'English', // optional language
10, // optional max quantity
'professional', // optional voice tone
'technology blog' // optional context
);
// $keywords will contain a JSON string with the generated keywords