PHP CMS Learn how to use Cosmic JS to power content for your projects using tools you love.

PHP

Cosmic JS is an API-first CMS that integrates with PHP. Use Cosmic JS to quickly build content-powered blogs, dynamic pages, and more. Install the Official Cosmic JS PHP Client to start managing content for your app application.  Check out some PHP integration examples on our Apps page.

PHP CMS Articles

Build a PHP Single-Page Website in 4 Steps
Building an Inventory Management App Using Vue.js and Laravel

PHP CMS Resources

Cosmic JS Docs
Official PHP Client
PHP Apps
Cosmic JS GitHub

Examples

Clone the PHP client:

git clone https://github.com/cosmicjs/cosmicjs-php

Then in your PHP file:

$config = new stdClass();
$config->bucket_slug = "astral";
include("cosmicjs.php");
$objects = $cosmicjs->getObjects();
var_dump($objects);
PHP CMS