PHP code example of vcarreira / wordsapi-laravel
1. Go to this page and download the library: Download vcarreira/wordsapi-laravel 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-laravel example snippets
$word = app('wordsapi')->word('effect');
var_dump($word->definitions());
var_dump($word->synonyms());
var_dump($word->rhymes());
var_dump($word->pronunciation());
$word = WordsApi::word('effect');
var_dump($word->definitions());
var_dump($word->synonyms());
var_dump($word->rhymes());
var_dump($word->pronunciation());
sh
php artisan vendor:publish --provider="WordsApi\WordsApiServiceProvider"