Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Rtf Laravel Package

jstewmc/rtf

PHP library for reading, parsing, and working with Rich Text Format (RTF) documents. Extract text and metadata, traverse document structure, and integrate RTF handling into your applications with a lightweight, dependency-friendly package.

View on GitHub
Deep Wiki
Context7
0.5.2

Added

  • Added support for parsing font tables (but not support for styling fonts yet).
  • Added support for parsing color tables (but not support for styling colors yet).
  • Added support for parsing stylesheets (but not support for styles yet).

Changed

  • Moved character sets, font family, and special character control words into sub-directories.
  • Updated the Parse\ControlWord service to detect control word sub-types and constructor arguments automatically.

Fixed

  • Fixed #11, where the conversion of an RTF document to plain text output the text in the header's font table, color table, and stylesheets too.
0.5.1

Added

  • Added support for document encoding. If a document defines a character set (i.e., \pc, \pca, \mac) or it defines the \ansi character set and a code page (e.g., \ansicpg1252), this library will use that character encoding to render non-ASCII characters.

Fixed

  • Fixed issue parsing apostrophe control symbol, where a conditional was using the wrong symbol name.
  • Fixed issue parsing other tokens, where they caused a variable-not-defined exception to be thrown during parsing.
  • Fixed #2, where the Apostrophe control symbol did not work correctly.
0.5.0

Added

Changed

  • Modernized the library (i.e., add type hints, refactor big methods, move to services, add guard clauses, etc).
  • Updated test suite from PHPUnit version 4 to version 9.
  • Extended jstewmc/stream with custom methods to make lexing easier.

Fixed

  • Fixed #1, where the classnames in this library's PHPDoc comments were incorrect and prevented IDE code completion.
  • Fixed #3, where installation instructions were missing from this library's README.
0.4.3
  • Fix \cxds control word. The \cxds control word should glue two words together without a space between them. However, up to now, it only deleted the previous space, not the spaces to either side.
0.4.2
  • Add check for mismatched group-open and group-close tokens to Parser
0.4.1
  • Fix logic error in Snippet class
0.4.0
  • Add Snippet class
0.3.0
  • Add RTF-CRE control words
0.2.0
  • Update Document::read() and Document::load() to use Jstewmc\Chunker.
  • Update lexing methods to use Jstewmc\Stream instead of character arrays:
    • Replace Token\Text::createFromSource() with createFromStream()
    • Replace Token\Control\Word::createFromSource() with createFromStream()
    • Replace Token\Control\Symbol::createFromSource() with createFromStream()
    • Update Lexer::lex() to use accept instance of Jstewmc\Stream\Stream as argument instead of string
0.1.0

Initial release

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle