1. Go to this page and download the library: Download vadage/oxidize 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/ */
$terminationDateOption = $user->getTerminationDate();
if ($terminationDateOption->isSome()) {
$terminationDate = $terminationDateOption->unwrap();
$this->messages->queue(sprintf('Your login will be deactivated after %1$s.', $terminationDate->format(DateTimeInterface::RSS)));
}
$this->userRpc->login($email, $password)->andThenContinue(function (User $user) {
$username = $user->getUsername();
$user->getTerminationDate()
->andThenContinue(function (DateTime $terminationDate) {
$formattedDate = $terminationDate->format(DateTimeInterface::RSS);
$this->messages->queue(sprintf('Hello %1$s. Your login will be deactivated after %2$s.', $username, $formattedDate));
})
->orElseContinue(function () {
$this->messages->queue(sprintf('Hello %1$s.', $username));
});
});
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.