Download the PHP package buchin/laravel-ghost without Composer
On this page you can find all versions of the php package buchin/laravel-ghost. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download buchin/laravel-ghost
More information about buchin/laravel-ghost
Files in buchin/laravel-ghost
Package laravel-ghost
Short Description 👻• A Laravel wrapper that allows you to access Ghost APIs (Content & Admin). Access, create and manage your Ghost content from you app!
License MIT
Homepage https://github.com/igorsgm/laravel-ghost
Informations about the package laravel-ghost
A Laravel wrapper that allows you to access Ghost APIs (Content & Admin). Access, create and manage your Ghost content from you app!
Installation
You can install the package via composer:
You can publish the config file with:
Usage
Define Ghost API credentials at ghost.php config or in your .env file. i.e.:
Content API
1) General Usage
The Content API for posts, pages, tags, authors, settings, tiers are similiar and can be used with the following methods:
Single resource returned as Post, Author, Tag, Page or Tier
Paginations
Build your request
Valid for both: Ghost::content() and Ghost::admin() APIs
Admin API
- All ContentAPI methods related to Post, Author, Tag, Page or Tier are also available in the Admin API.
| Resource | Methods |
|---|---|
| ->posts() | get, create, update, delete |
| ->pages() | get, create, update, delete |
| ->tags() | get, create, update, delete |
| ->tiers() | get, create, update, delete |
| ->offers() | get, create, update |
| ->members() | get, create, update |
| ->users() | get |
| ->images() | upload |
| ->themes() | upload, activate |
| ->site() | get |
| ->webhooks() | create, update, delete |
(Admin) Posts, Pages, Tags, Tiers, Offers, Members, Users, Webhooks
The consume of these Admin APIs are similar and can be used with the following methods:
(Admin) Images, Themes
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-ghost with dependencies
firebase/php-jwt Version ^5.0|^6.0
guzzlehttp/guzzle Version ^6.0|^7.0
illuminate/support Version ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0