https://github.com/mskian/ghost-admin-api-php
A Simple PHP POST API for Ghost to Create Blog Post using Ghost Admin API 📝
https://github.com/mskian/ghost-admin-api-php
api ghost ghost-admin ghost-api ghost-blog json php tryghost
Last synced: 3 months ago
JSON representation
A Simple PHP POST API for Ghost to Create Blog Post using Ghost Admin API 📝
- Host: GitHub
- URL: https://github.com/mskian/ghost-admin-api-php
- Owner: mskian
- License: mit
- Created: 2020-11-20T12:53:20.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-16T07:53:30.000Z (about 5 years ago)
- Last Synced: 2024-12-29T21:14:13.394Z (over 1 year ago)
- Topics: api, ghost, ghost-admin, ghost-api, ghost-blog, json, php, tryghost
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/mskian/ghost-admin-api-php/blob/e7a1c84c18fab56d2651c796020a475cd307aff1/config.php#L9))
- Replace `someone@example.com` with your Ghost Username ([Line 19](https://github.com/mskian/ghost-admin-api-php/blob/e7a1c84c18fab56d2651c796020a475cd307aff1/config.php#L19))
- Replace `mysecurepassword` with your Ghost Password ([Line 20](https://github.com/mskian/ghost-admin-api-php/blob/e7a1c84c18fab56d2651c796020a475cd307aff1/config.php#L20))
## Usage 🍟
- Create Session and Auth your Ghost site
- Just Open the Below URL format on Browser and Create Ghost API Session
```bash
https://api.example.com/ghlogin.php
```
- Create a New Post - This is Just a PHP API Endpoint
```bash
https://api.example.com/post.php?title=Post%20via%20API&html=Hello%20world%20My%20new%20post%20via%20API
```
## Ghost Admin API 📦
- User Authentication -
- Create Post -
## LICENSE ✅
MIT