PHP code example of ft / rfc_abnf
1. Go to this page and download the library: Download ft/rfc_abnf 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/ */
ft / rfc_abnf example snippets
public static function OWS() : ABNF;
public static function TIME_OF_DAY() : ABNF;
(new RegexBuilder(Specs::RFC9110))
->with("DQUOTE")
->group(
(new RegexBuilder(Specs::RFC9110))
->with("qdtext")
->text("|")
->with("quoted-pair")
)
->with("DQUOTE")
->build()
(new RegexBuilder(Specs::RFC9110))
->abnf(":dquote (?::qdtext|:quoted-pair)* :dquote")
->build();