Learn how to use Cosmic JS to power content
for your PHP applications.
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
PHP CMS Resources
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);