1. Go to this page and download the library: Download jstewmc/rtf-token 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/ */
jstewmc / rtf-token example snippets
namespace Jstewmc\RtfToken;
$open = new Group\Open();
$control = new Control\Word('foo');
$text = new Text('bar');
$close = new Group\Close();
echo $open . $control . $text . $close;
namespace Jstewmc\RtfToken\Group;
(string) (new Open()); // returns "{"
(string) (new Close()); // returns "}"