incraigulous / prismic-toolkit
A PHP toolkit for working with Prismic.
0.19.2
2018-02-27 15:33 UTC
Requires
- illuminate/support: ^5.4
- nesbot/carbon: ^1.22
- prismic/php-sdk: ^3.3
- spatie/regex: ^1.2
Requires (Dev)
- fzaninotto/faker: ^1.7
- orchestra/testbench: ^3.4
- phpunit/phpunit: 6.0
- predis/predis: ^1.1
README
Click here for the documentation.
A suite of helpful tools for working with Prismic. You can use some or all of them. There are some Laravel specific tools, but you don't have to use Laravel to use this package.
Vanilla php features
- A wrapper around the official Prismic PHP sdk that provides a cleaner, fluent API.
- Automatic relationship resolution.
- Arrayable and Jasonable responses with relationship resolution.
- \Illuminate\Support\Collection objections are returned instead of arrays.
Laravel specific features
- A Laravel facade
- A Laravel service provider
- A Laravel Artisan command to precache data so you never have to call Prismic directly in production
- A Laravel tagged cacher
- A Laravel non-tagged cacher
- Customizable cache rules so you can miro-manage which resources should be cached.
- Endpoints to bust the cache and resync content via webhook
- Prismic webhook secret validation middleware
- A model trait to create relationships between database records and prismic resources