yggverse.github.io/news/release-gemini-php-0.7.0.gmi

35 lines
872 B
Plaintext
Raw Normal View History

2024-04-08 08:24:14 +03:00
# Release gemini-php 0.7.0
Client::Request method now supports resolved host as optional argument!
This feature useful to
* reduce traffic usage
* increase page loading time by DNS results cache in memory
* alternative networks resolvers, isolated of system
Update dedicated to the Yo! crawler project
=> https://github.com/YGGverse/Yo/tree/gemini
## Example
``` php
$request = new \Yggverse\Gemini\Client\Request(
'gemini://yggverse.cities.yesterweb.org:1965/index.gmi' // target URL
'68.133.1.71' // resolved IP, skip to use system-wide resolver
);
```
Alternatively, use setResolvedHost method of Request object before getResponse
``` php
$request->setResolvedHost(
'68.133.1.71'
)
```
## Links
=> https://github.com/YGGverse/gemini-php/releases/tag/0.7.0 Download gemini-php 0.7.0
=> https://github.com/YGGverse/net-php Network Resolver in PHP 8