Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
/ prismic4D Public archive

Minimalist PHP library for interaction with the Prismic.io API

License

Notifications You must be signed in to change notification settings

pTinosq/prismic4D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prismic4D - Prismic For Dummies

A very minimalist PHP library for interacting with the Prismic.io CDN.


Installation

Composer

composer require pTinosq/Prismic4D

Usage

<?php
require_once 'vendor/autoload.php';

use pTinosq\Prismic4D;

$api = new Prismic4D\API();
$api->setProjectName('my-project-name');
$api->setAccessToken('my-access-token');

$ref = $api->getRef();
$document = $api->getDocument($ref, 'my-document-id');

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Credits