PHP code example of vcarreira / wordsapi
1. Go to this page and download the library: Download vcarreira/wordsapi 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/ */
vcarreira / wordsapi example snippets
$service = new \WordsApi\WordService(API_KEY);
$word = $service->word('effect');
var_dump($word->definitions());
var_dump($word->synonyms());
var_dump($word->rhymes());
var_dump($word->pronunciation());