PHPackages                             davaxi/ghost - 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. davaxi/ghost

ActiveLibrary[API Development](/categories/api)

davaxi/ghost
============

A PHP client library for accessing Ghost's APIs

2.0.0(4y ago)054MITPHPPHP &gt;=7.0

Since Oct 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/davaxi/Ghost)[ Packagist](https://packagist.org/packages/davaxi/ghost)[ RSS](/packages/davaxi-ghost/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

Ghost
=====

[](#ghost)

A PHP client library for accessing Ghost's APIs (for Ghost &gt;= 5.0)

For Ghost &lt; 5.0, use version [1.0.0](https://github.com/davaxi/Ghost/tree/1.0.0) of project.

[![Latest Stable Version](https://camo.githubusercontent.com/79920dcb1d6a0b9a610af74b52c2d3c814a3aeb5f357a663480d70cfa26aaf4e/68747470733a2f2f706f7365722e707567782e6f72672f6461766178692f67686f73742f762f737461626c65)](https://packagist.org/packages/davaxi/ghost)[![Total Downloads](https://camo.githubusercontent.com/44d41b3de55b31a924f9650c9d7ddf64f9c4f027a7c6ec497e9063078fc5f61f/68747470733a2f2f706f7365722e707567782e6f72672f6461766178692f67686f73742f646f776e6c6f616473)](https://packagist.org/packages/davaxi/ghost)[![Latest Unstable Version](https://camo.githubusercontent.com/43fa1ebc6b750a7c3eba7c95e72d59e7a7af7dc9a10b1c31020bc728604e63d3/68747470733a2f2f706f7365722e707567782e6f72672f6461766178692f67686f73742f762f756e737461626c65)](https://packagist.org/packages/davaxi/ghost)[![License](https://camo.githubusercontent.com/b1f44d5cc6e0f67d152bbe0b48b3f2a0dca44c503ea41a0e61d1eb7ddd6286b4/68747470733a2f2f706f7365722e707567782e6f72672f6461766178692f67686f73742f6c6963656e7365)](https://packagist.org/packages/davaxi/ghost)

Installation
------------

[](#installation)

This page contains information about installing the Library for PHP.

### Requirements

[](#requirements)

- PHP version 7.0.0 or greater
- The Curl PHP extension
- The Json PHP extension

#### Using Composer

[](#using-composer)

You can install the library by adding it as a dependency to your composer.json.

```
$ composer require davaxi/ghost
```

or

```
{
  "require": {
    "davaxi/ghost": "^1.0"
  }
}
```

Usage
-----

[](#usage)

### Configure client authentication

[](#configure-client-authentication)

Use official documentation for create tokens :

#### Use environment to set credentials

[](#use-environment-to-set-credentials)

Replace with your values

```
GHOST_API_URL=XXXXXX
GHOST_ADMIN_API_KEY=YYYYYY
GHOST_CONTENT_API_KEY=ZZZZZZZ
```

In your PHP

```
