PHP code example of psg / sr1

1. Go to this page and download the library: Download psg/sr1 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/ */

    

psg / sr1 example snippets


class Request implements Psg\Sr1\RequestInterface{}

public function __construct(StreamFactory $streamFactory, UriFactory $UriFactory, $config_param1, $config_param2){}

interface x{
	public function bob();
}
interface y extends x{
	public function bill();
}


interface Bob{
	public function process(x $param);
}
interface Sue extends Bob{
	public function process(y $param);
}