Download the PHP package prismic/php-sdk without Composer
On this page you can find all versions of the php package prismic/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-sdk
Prismic.io PHP SDK
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
- Getting started
- Installation
- Recommended PHP Extensions
- Basic Usage & API calls
- DOM Helper
- More information
- Contributing
- License
Getting started
Installation
Installation using Composer:
Recommended PHP Extensions
We recommend installing and enabeling the APCu 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 & API calls
If you are not using automatic autoloading, include the Composer autoload file:
Then you can start making your first API calls:
DOM Helper
The PHP SDK provides a set of DOM helpers to help you render your Prismic content.
In these examples we have a document variable corresponding to the fetched Prismic document. We also have a $linkResolver variable containing the functional link resolver, read our docs to learn more about Link Resolving.
Link
Rich Text
Date
More information
- Developer Documentaiton
- Generated PHPDoc
- Changelog
Contributing
Whether you're helping us fix bugs, improve the docs, or spread the word, we'd love to have you as part of the Prismic developer community!
Reporting a bug: Open an issue explaining your application's setup and the bug you're encountering.
Suggesting an improvement: Open an issue explaining your improvement or feature so we can discuss and learn more.
Submitting code changes: For small fixes, feel free to open a pull request with a description of your changes. For large changes, please first open an issue so we can discuss if and how the changes should be implemented.
For more clarity on this project, check out the detailed CONTRIBUTING.md for our guidelines.
License
This software is licensed under the Apache 2 License, quoted below:
All versions of php-sdk with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.5