PHPackages                             contentstack/utils - 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. [API Development](/categories/api)
4. /
5. contentstack/utils

ActiveLibrary[API Development](/categories/api)

contentstack/utils
==================

Contentstack is a headless CMS with an API-first approach that puts content at the centre. It is designed to simplify the process of publication by separating code from content.

v1.2.1(2y ago)063.3k↓11.1%1MITPHPPHP &gt;=7.2CI failing

Since Apr 5Pushed 8mo ago8 watchersCompare

[ Source](https://github.com/contentstack/contentstack-utils-php)[ Packagist](https://packagist.org/packages/contentstack/utils)[ Docs](https://github.com/contentstack/contentstack-utils-php)[ RSS](/packages/contentstack-utils/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (14)Used By (1)

Contentstack PHP Utils SDK:
===========================

[](#contentstack-php-utils-sdk)

Contentstack is a headless CMS with an API-first approach. It is a CMS that developers can use to build powerful cross-platform applications in their favorite languages. Build your application frontend, and Contentstack will take care of the rest. Read More.

This guide will help you get started with Contentstack PHP Utils SDK to build apps powered by Contentstack.

Prerequisites
-------------

[](#prerequisites)

- PHP version 5.5.0 or later

SDK Installation and Setup
--------------------------

[](#sdk-installation-and-setup)

To set up the Utils SDK in your PHP project, install it via gem:

```
composer require contentstack/utils
```

If you are using Contentstack PHP SDK, then “contentstack/utils” is already imported into your project.

Usage
-----

[](#usage)

Let’s learn how you can use Utils SDK to render embedded items.

### Create Render Option:

[](#create-render-option)

To render embedded items on the front-end, use the renderOptions function, and define the UI elements you want to show in the front-end of your website, as shown in the example code below:

```
