1. Go to this page and download the library: Download webhappens/prismic library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?phprequire_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
webhappens / prismic example snippets
namespaceApp;
useWebHappens\Prismic\Document;
classArticleextendsDocument{
/**
* The 'API ID' of the Custom Type associated with the document model.
*
* @var string
*/protectedstatic $type = 'article';
}