Download the PHP package rjp2525/laravel-tiptap without Composer
On this page you can find all versions of the php package rjp2525/laravel-tiptap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rjp2525/laravel-tiptap
More information about rjp2525/laravel-tiptap
Files in rjp2525/laravel-tiptap
Package laravel-tiptap
Short Description A fluent Laravel wrapper for Tiptap PHP
License MIT
Homepage https://github.com/rjp2525/laravel-tiptap
Informations about the package laravel-tiptap
Laravel Tiptap
A Laravel wrapper for the Tiptap PHP package that provides a fluent, Laravel-friendly interface for processing rich text content. Transforms JSON to HTML, HTML to JSON, validates content structure, extracts statistics etc. with an elegant API that feels like home in a Laravel app.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Optionally, you can publish the views using
Basic Usage
Using the Facade
Using the Fluent Builder
Advanced Usage
Extension Configuration
Configure extensions with specific options:
Content Validation
Conditional Processing
Caching
Enable caching for better performance with frequently processed content
Laravel Integration Examples
Form Request Validation
Eloquent Model Integration
Controller Usage
Queued Jobs for Heavy Processing
Blade Components
Custom Extension Registration
While the Tiptap PHP package currently supports StarterKit, Color, FontFamily, and TextAlign extensions, you can register custom extensions by extending the service:
For custom nodes and marks, you'll need to create them following the Tiptap PHP documentation and then register them through the configuration.
Package Extensibility
Custom Service Implementation
You can create your own service implementation for advanced customization:
Extending the Builder
The TiptapBuilder
class is designed to be extended as well:
Then create a custom service that uses your builder:
Builder Macros
Add methods to the existing builder without extending:
Available Extensions
The package currently supports these extensions from Tiptap PHP:
- StarterKit: Includes essential nodes (document, paragraph, text, heading, etc.) and marks (bold, italic, strike, etc.)
- Color: Text and background color support
- FontFamily: Font family formatting
- TextAlign: Text alignment (left, center, right, justify)
API Reference
Facade Methods
Builder Methods
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- rjp2525
- Built on top of the official Tiptap PHP by ueberdosis
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-tiptap with dependencies
illuminate/contracts Version ^10.0||^11.0||^12.0
laravel/framework Version ^10.0||^11.0||^12.0
spatie/laravel-package-tools Version ^1.16
ueberdosis/tiptap-php Version ^2.0