Download the PHP package rarq/filament-whatsapp-message-preview without Composer

On this page you can find all versions of the php package rarq/filament-whatsapp-message-preview. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-whatsapp-message-preview

WhatsApp Message Preview

Header

Latest Version Downloads PHP Version Laravel Filament License

A FilamentPHP field plugin that renders a real-time WhatsApp-style message preview with support for formatting, lists, quotes and message direction.

Preview

Screenshot 1
Screenshot 2

Features

Compatibility

Filament Version Laravel Version PHP Version Tailwind Version
v3.x Laravel 10 8.1 – 8.3 Tailwind CSS v3
v4.x Laravel 11 8.2 – 8.4 Tailwind CSS v4
v5.x Laravel 11–12 8.2 – 8.5 Tailwind CSS v4

PHP compatibility is determined by the supported Laravel version.

Installation

You can install the package via composer:

Assets

This package includes Blade views that must be scanned by Tailwind CSS to properly generate the component styles.

The configuration differs depending on your Filament version.


FilamentPHP v3

If you are using Filament v3, you must create a custom theme and register the package views inside your tailwind.config.js.

📖 Click here to follow the official guide for creating a custom theme.

Then, add the plugin views to the content array of your tailwind.config.js:

After that, rebuild your assets:


FilamentPHP v4 & v5

If you are using Filament v4 or v5, you must also create a custom theme.

📖 Official documentation:

Instead of modifying your tailwind.config.js, register the package views using the @source directive inside your custom theme CSS file (usually located at resources/css/filament/admin/theme.css):

Then rebuild your assets:


⚠️ Important:
If you do not configure these assets correctly, Tailwind may purge the component styles and the WhatsApp preview UI may not render properly.

Usage

Available Methods

Method Description
hideMessageDirectionTabs() Hide the direction selector tabs
messageDirection() Set default message direction
incomingDirectionLabel() Customize incoming label
outgoingDirectionLabel() Customize outgoing label
previewLabel() Customize preview title
hiddenPreview() Hide the preview panel

Troubleshooting

Styles not applied?

Make sure:

Contributing

Contributions are welcome!

Please open an issue before submitting a pull request.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of filament-whatsapp-message-preview with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
filament/forms Version ^3.0|^4.0|^5.0
spatie/laravel-package-tools Version ^1.15.0
illuminate/contracts Version ^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rarq/filament-whatsapp-message-preview contains the following files

Loading the files please wait ...