Getting Started

Code language

View this guide and its examples in your language.

Installation

Install the PHP package with Composer, then publish its Laravel configuration.

Requirements#

The PHP package requires:

  • PHP 8.2 or higher
  • Laravel ^12.69.0 or ^13.30.0
  • PHP extensions: fileinfo, filter, mbstring and openssl

Step 1: Composer Installation#

Run this command from your project directory:

composer require particle-academy/prism

This command will download Prism and its dependencies into your project.

Step 2: Publish the Configuration#

Publish the configuration file:

php artisan vendor:publish --tag=prism-config

This creates config/prism.php. Continue to Configuration to set up provider credentials.