PHP code example of otis22 / php-interfaces
1. Go to this page and download the library: Download otis22/php-interfaces 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/ */
otis22 / php-interfaces example snippets
declare(strict_types=1);
use Otis22\PhpInterfaces\KeyValue;
final class FakeLoginCredentials implements KeyValue
{
public function asKeyValue(): array
{
return [
'login' => 'test'
];
}
}
composer