PHPackages                             weebly/ghost-io-php - 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. weebly/ghost-io-php

ActiveLibrary[API Development](/categories/api)

weebly/ghost-io-php
===================

SDK library for php to simplify ghost.io API requests.

0.1.4(7y ago)37.4k5[1 PRs](https://github.com/Weebly/ghost-io-php/pulls)BSD-2-ClausePHPPHP &gt;=5.4

Since Aug 11Pushed 3y ago13 watchersCompare

[ Source](https://github.com/Weebly/ghost-io-php)[ Packagist](https://packagist.org/packages/weebly/ghost-io-php)[ RSS](/packages/weebly-ghost-io-php/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

Ghost IO Unofficial PHP library
===============================

[](#ghost-io-unofficial-php-library)

![CircleCI](https://camo.githubusercontent.com/4a8855909b9548e4a443dd123f448cb27445a2dfa3e976aa55aa3604c0515dcc/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f6769746875622f576565626c792f67686f73742d696f2d7068702f6d61737465722e737667)![MadeBy](https://camo.githubusercontent.com/9f6b6f88f378964a360d1d74111b60264562e6ebc296941c4d4a8f46d4404df3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61646525323062792d776565626c792d3266386265392e737667)

This library is intended to help developer to use the Ghost.io API with their php code.

Features
--------

[](#features)

- PSR-4 autoloading compliant structure
- Unit-Testing with PHPUnit
- Easy to use library

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

[](#installation)

We use packagist to serve this library so is easier to include to any of your projects. Make sure you have composer available in your PATH. To do this you can run the following command in the terminal:

```
composer require weebly/ghost-io-php
```

For the most recent dev version:

```
"require": {
  "weebly/ghost-io-php": "master@dev"
},
```

Install or update your composer dependencies:

```
composer install
```

As a final check you could review your vendor library to see if you have a weeblu/ghost-io-php folder created. Now you're ready to use this on you're code.

Usage
-----

[](#usage)

```
use GhostIO\GhostIO;

$ghost = new GhostIO(
	'https://your-blog.ghost.io',	// This is the base url for your blog
	'example@example.com',		// email (username) of the user that will do the API requests
	'password',			// The user password
	'ghost-frontend',		// The client id
	'the-client-secret'		// The client secret
);

$res = $ghost->getAllPosts(); // retrieve all posts from the ghost server
```

Available Client Methods
------------------------

[](#available-client-methods)

The following list shows what methods are available and the route that they represent on the ghost.io API:

MethodAPI serviceDescription```
$ghost->getAllPosts($fields = [])
```

/postsGet a collection with all the posts of the blog.Some filters apply.```
$ghost->getPostById($postId)
```

/posts:idThis will find one specific post by the ID.```
$ghost->getPostBySlug($slug)
```

/posts:slugThis will find one specific post by the slug.```
$ghost->getAllTags($fields = [])
```

/tagsGet a collection with all the tags (categories).```
$ghost->getTagById($tagId)
```

/tags:idThis will find one specific tag by the ID.```
$ghost->getTagBySlug($slug)
```

/tags:slugThis will find one specific tag by the slug.```
$ghost->getAllUsers($fields = [])
```

/usersGet a collection with all the users of the blog. Some filters apply.```
$ghost->getUserById($userId)
```

/users:idThis will find one specific user by the ID.```
$ghost->getUserBySlug($slug)
```

/users:slugThis will find one specific user by the slug.```
$ghost->getUserByEmail($email)
```

/users/email:emailThis will find one specific user by his email address.Contributing
------------

[](#contributing)

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

Documentation
-------------

[](#documentation)

For more documentation, check the ghost.io API docs here: [GhostIO API Docs](https://api.ghost.org).

Enjoy!

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~92 days

Total

6

Last Release

2783d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c065c37399d317e2453cdd736a20a497a2e203bfe6c403159e92e45b72429127?d=identicon)[bryanashley](/maintainers/bryanashley)

![](https://avatars.githubusercontent.com/u/739642?v=4)[eaperezc](/maintainers/eaperezc)[@eaperezc](https://github.com/eaperezc)

---

Top Contributors

[![eaperezc](https://avatars.githubusercontent.com/u/739642?v=4)](https://github.com/eaperezc "eaperezc (15 commits)")

---

Tags

libraryblogghostio

### Embed Badge

![Health badge](/badges/weebly-ghost-io-php/health.svg)

```
[![Health](https://phpackages.com/badges/weebly-ghost-io-php/health.svg)](https://phpackages.com/packages/weebly-ghost-io-php)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.5M11](/packages/checkout-checkout-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)[volcengine/volcengine-php-sdk

118.7k](/packages/volcengine-volcengine-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
