PHP code example of cooper / daily-sentence-sdk
1. Go to this page and download the library: Download cooper/daily-sentence-sdk 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/ */
cooper / daily-sentence-sdk example snippets
$daily = new \Cooper\Daily\DailyConnector();
$response = $daily->getSentence('2023-02-15');
$response->dto(); // returns an DTO class