Skip to content

A Simple PHP POST API for Ghost to Create Blog Post using Ghost Admin API πŸ“

License

Notifications You must be signed in to change notification settings

mskian/ghost-admin-api-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Ghost Admin PHP πŸ”

A Simple PHP POST API for Ghost to Create Blog Post using Ghost Admin API πŸ“

Requirements πŸ“‘

  • Active Ghost Site
  • Server with PHP Support for Running the API
  • PHP cURL
  • SSL for Secure Connection

Setup 🍞

Open config.php file

  • Replace http://localhost:2368 with your Ghost Domain (Line 9)
  • Replace someone@example.com with your Ghost Username (Line 19)
  • Replace mysecurepassword with your Ghost Password (Line 20)

Usage 🍟

  • Create Session and Auth your Ghost site
  • Just Open the Below URL format on Browser and Create Ghost API Session
https://api.example.com/ghlogin.php
  • Create a New Post - This is Just a PHP API Endpoint
https://api.example.com/post.php?title=Post%20via%20API&html=Hello%20world%20My%20new%20post%20via%20API

Ghost Admin API πŸ“¦

LICENSE βœ…

MIT

About

A Simple PHP POST API for Ghost to Create Blog Post using Ghost Admin API πŸ“

Topics

Resources

License

Stars

Watchers

Forks

Languages