This commit is contained in:
smiley
2024-11-21 15:31:45 +01:00
parent a54c1a56a0
commit bbb2414f10
4 changed files with 38 additions and 8 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# Configuration settings
<!-- This file is auto generated from the source of QROptionsTrait.php -->
<!-- This file is auto generated from the source of QROptions.php -->
## version
QR Code version number
+2 -1
View File
@@ -31,9 +31,9 @@ It also features a QR Code reader based on a [PHP port](https://github.com/khana
- PHP 7.4+
- [`ext-mbstring`](https://www.php.net/manual/book.mbstring.php)
- optional:
- [`ext-fileinfo`](https://www.php.net/manual/book.fileinfo.php) (required by `QRImagick` output)
- [`ext-gd`](https://www.php.net/manual/book.image)
- [`ext-imagick`](https://github.com/Imagick/imagick) with [ImageMagick](https://imagemagick.org) installed
- [`ext-fileinfo`](https://www.php.net/manual/book.fileinfo.php) (required by `QRImagick` output)
- [`setasign/fpdf`](https://github.com/setasign/fpdf) for the PDF output module
For the QR Code reader, either `ext-gd` or `ext-imagick` is required!
@@ -54,6 +54,7 @@ For the QR Code reader, either `ext-gd` or `ext-imagick` is required!
- [floating-share-button](https://github.com/qriouslad/floating-share-button)
- WoltLab Suite
- [two-step-verification](http://pluginstore.woltlab.com/file/3007-two-step-verification/)
- [[Developer] PHP QR Code](https://www.woltlab.com/pluginstore/file/7995-entwickler-php-qr-code/)
- other uses:
- [dependents](https://github.com/chillerlan/php-qrcode/network/dependents) / [packages](https://github.com/chillerlan/php-qrcode/network/dependents?dependent_type=PACKAGE)
- [Appwrite](https://github.com/appwrite/appwrite)
+3 -3
View File
@@ -1,9 +1,9 @@
.. php-qrcode documentation master file, created by sphinx-quickstart on Sun Jul 9 21:45:56 2023.
markdown-rst converter: https://pandoc.org/try/
=================
PHP-QRCode Manual
=================
============================
chillerlan PHP-QRCode Manual
============================
User manual for `chillerlan/php-qrcode <https://github.com/chillerlan/php-qrcode/>`__ [|version|]. Updated on |today|.
+32 -3
View File
@@ -35,7 +35,8 @@ foreach($reflectionClass->getProperties(ReflectionProperty::IS_PROTECTED) as $re
array_shift($lines);
array_pop($lines);
$see = [];
$see = [];
$link = [];
foreach($lines as $line){
@@ -50,7 +51,14 @@ foreach($reflectionClass->getProperties(ReflectionProperty::IS_PROTECTED) as $re
// collect links for "see also"
if(str_starts_with($line, '@see')){
$see[] = $line;
$see[] = substr($line, 5); // cut off the "@see "
continue;
}
// collect links for "links"
if(str_starts_with($line, '@link')){
$link[] = substr($line, 6); // cut off the "@link "
continue;
}
@@ -63,7 +71,6 @@ foreach($reflectionClass->getProperties(ReflectionProperty::IS_PROTECTED) as $re
$content[] = "\n**See also:**\n";
foreach($see as $line){
$line = substr($line, 5); // cut off the "@see "
// normal links
if(str_starts_with($line, 'http')){
@@ -88,6 +95,28 @@ foreach($reflectionClass->getProperties(ReflectionProperty::IS_PROTECTED) as $re
}
// add "Links" section
if(!empty($link)){
$content[] = "\n**Links:**\n";
foreach($link as $line){
// skip non-url
if(!str_starts_with($line, 'http')){
continue;
}
$url = explode(' ', $line, 2);
$content[] = match(count($url)){
1 => sprintf('- [%s](%s)', explode('://', $url[0])[1], $url[0]),
2 => sprintf('- [%s](%s)', trim($url[1]), $url[0]),
};
}
}
$content[] = "\n";
}