PHP code example of faruh / smmry
1. Go to this page and download the library: Download faruh/smmry 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/ */
faruh / smmry example snippets
use Faruh\Smmry\SmmryClient;
$client = new SmmryClient([
'sm_api_key' => 'API_KEY',
'sm_length' => 7,
'sm_keyword_count' => 2
]);
$result = $client
->strategy('url')
->setResource('http://randomtextgenerator.com/')
->summarize();