PHP code example of psg / sr1-implementation

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


$Factory = new \Psg\Sr1\Implementation\Factory;
$request = $Factory->createRequest('GET', 'http://tnyholm.se');
$request = $request->withBodyString('{"name":"bob"}');