You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
667 B
36 lines
667 B
# gemini-php 0.4.0 |
|
|
|
Includes Body::findLinks method to grab clickable links from Gemtext |
|
|
|
## Example |
|
|
|
``` php |
|
$request = new \Yggverse\Gemini\Client\Request( |
|
'gemini://yggverse.cities.yesterweb.org' |
|
); |
|
|
|
$response = new \Yggverse\Gemini\Client\Response( |
|
$request->getResponse() |
|
); |
|
|
|
$body = new \Yggverse\Gemini\Gemtext\Body( |
|
$response->getBody() |
|
); |
|
|
|
var_dump( |
|
$body->findLinks() // returns array of gemini links |
|
); |
|
|
|
var_dump( |
|
$body->findLinks('http') // returns array of http links |
|
); |
|
``` |
|
|
|
## Other |
|
|
|
* add response setters |
|
* reduce default chunk size |
|
|
|
## Links |
|
|
|
=> https://github.com/YGGverse/gemini-php/releases/tag/0.4.0 Download gemini-php 0.4.0 |