PHPackages                             prismic/php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. prismic/php-sdk

ActiveLibrary

prismic/php-sdk
===============

PHP development kit for Prismic

5.4.0(1y ago)1081.9M↓21%79[1 PRs](https://github.com/prismicio-community/php-kit/pulls)11Apache-2.0PHPPHP ~8.0 || ~8.1CI passing

Since Oct 3Pushed 3mo ago20 watchersCompare

[ Source](https://github.com/prismicio-community/php-kit)[ Packagist](https://packagist.org/packages/prismic/php-sdk)[ RSS](/packages/prismic-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (102)Used By (11)

Prismic.io PHP SDK
==================

[](#prismicio-php-sdk)

[![Github Actions CI](https://github.com/prismicio-community/php-kit/workflows/ci/badge.svg)](https://github.com/prismicio-community/php-kit/actions?query=workflow%3Aci)[![Total Downloads](https://camo.githubusercontent.com/4b428ea04f50db8d1b0dc81eb6977d58f33eaac7e7224de7ed126ecf42998f28/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f707269736d69632f7068702d73646b)](https://packagist.org/packages/prismicio-community/php-kit)[![Latest Stable Version](https://camo.githubusercontent.com/87d52b371d5a13878f4f6f2d0d90aa13044b9db53935984c54b2e73ee7058a30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f707269736d69632f7068702d73646b)](https://packagist.org/packages/prismicio-community/php-kit)[![License](https://camo.githubusercontent.com/c623c424c01aad246c6bad0a5865b1e46534c62c2322836d4116dd1a28f909b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f707269736d69632f7068702d73646b)](https://packagist.org/packages/prismicio-community/php-kit)

This is the official PHP SDK for Prismic.io, providing a straightforward way to connect to Prismic’s headless API. It is maintained by the community to help developers get started with Prismic in PHP.

- Offers an easy-to-use interface for basic interactions with Prismic content
- Covers core features of the Prismic API

### Overview

[](#overview)

1. [Getting started](#getting-started)
    1. [Installation](#installation)
    2. [Recommended PHP Extensions](#recommended-php-extensions)
    3. [Basic Usage &amp; API calls](#basic-usage--api-calls)
    4. [DOM Helper](#dom-helper)
2. [More information](#more-information)
3. [Contributing](#contributing)
4. [License](#license)

Getting started
---------------

[](#getting-started)

### Installation

[](#installation)

Installation using [Composer](https://getcomposer.org/doc/00-intro.md):

```
$ composer require prismic/php-sdk
```

### Recommended PHP Extensions

[](#recommended-php-extensions)

We recommend installing and enabeling the [APCu](https://www.php.net/manual/en/ref.apcu.php) extension to have the built-in default cache support. Otherwise, you can implement your own cache strategy by extending the `Prismic\Cache\CacheInterface` interface.

### Basic Usage &amp; API calls

[](#basic-usage--api-calls)

If you are not using automatic autoloading, include the Composer autoload file:

```
