PHP code example of phprise / http-contract
1. Go to this page and download the library: Download phprise/http-contract 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/ */
phprise / http-contract example snippets
use Phprise\Http\Contract\StoreRequestInterface;
use Phprise\DataTransferObject\TransferObjectInterface;
class MyStoreRequest implements StoreRequestInterface
{
public function payload(): TransferObjectInterface
{
// implementation
}
// ... Psr\Http\Message\RequestInterface implementation
}