ptinosq/prismic4d

This package is abandoned and no longer maintained. The author suggests using the prismic/php-sdk package instead.

A minimalist PHP library for interaction with the Prismic.io API

1.0.0 2022-10-06 20:18 UTC

This package is auto-updated.

Last update: 2024-10-02 15:14:35 UTC


README

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