PHP code example of yggverse / gemini
1. Go to this page and download the library: Download yggverse/gemini 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/ */
yggverse / gemini example snippets
php
$request = new \Yggverse\Gemini\Client\Request(
'gemini://yggverse.cities.yesterweb.org:1965/index.gmi'
);
php
$request->setResolvedHost(
'68.133.1.71'
)
php
var_dump(
$request->getResponse()
);
php
$response = new \Yggverse\Gemini\Client\Response(
$request->getResponse()
);
php
var_dump(
$response->getBody()
);