Phrosemirror, a library for PHP

Hi there :wave:

I have written a library to handle ProseMirror documents in a type-safe way in PHP. It’s MIT-licensed, and I’m happy to share it with the ProseMirror community.

Here are some of the features:

  • Define your own schema with nodes, marks, and strictly typed attributes.
  • Parse Prosemirror (or Tiptap) JSON into a Document (a typed PHP object)
  • Convert a document to HTML, JSON, PHP array, or text
  • Parse HTML into a Document
  • content and group
  • Analyze a document (go through nodes, etc.)
  • Update documents (ex: update the domain in all internal links, etc.)

We have been using this in production at HYVOR on both of our products successfully. Happy to hear your feedback.