This example shows how to integrate PSPDFKit for Web into a Laravel app.
You can install PHP via XAMPP, MAMP or Homebrew.
PSPDFKit offers support for customers with an active SDK license via https://pspdfkit.com/support/request/
Are you evaluating our SDK? That's great, we're happy to help out! To make sure this is fast, please use a work email and have someone from your company fill out our sales form: https://pspdfkit.com/sales/
- Clone the repo:
git clone https://github.com/PSPDFKit/pspdfkit-web-example-laravel.git
cd pspdfkit-web-example-laravel
-
Run
composer install
on your terminal. -
Copy
.env.example
file to.env
on the root folder.
- For Windows, type
copy .env.example .env
- For Ubuntu, type
cp .env.example .env
-
Generate your application encryption key using
php artisan key:generate
. -
Install PSPDFKit as a dependency:
npm install
- Run
npm run dev
to copy the PSPDFKit artifacts to yourpublic/assets/pspdfkit/
folder.
Make sure your /public/assets/pspdfkit/
folder contains the file pspdfkit.js
and a pspdfkit-lib
directory with library assets.
We are ready to launch the app! 🎉
php artisan serve
You can now open http://localhost:8000/ in your browser and enjoy!
This software is licensed under a modified BSD license.
Please ensure you have signed our CLA so that we can accept your contributions.