Download the PHP package julienbourdeau/laravel-ghost-connector without Composer
On this page you can find all versions of the php package julienbourdeau/laravel-ghost-connector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download julienbourdeau/laravel-ghost-connector
More information about julienbourdeau/laravel-ghost-connector
Files in julienbourdeau/laravel-ghost-connector
Package laravel-ghost-connector
Short Description Use your Ghost posts as if they were Eloquent models from your DB. Thanks to Sushi and the Ghost API!
License MIT
Homepage https://github.com/julienbourdeau/laravel-ghost-connector
Informations about the package laravel-ghost-connector
Laravel Ghost connector
This package retrieve content from a Ghost blog and make it available as a regular model using Sushi.
The content will be kept in memory and reused anytime you call the model builder. It's not shared between requests.
I wrote this package because I built my custom blog on Laravel, with Laravel Nova. I like it for long articles but for journaling, I found the writing experience not so nice. With this package, I write in Ghost admin, but the content is still published via Laravel. 🏄♂️
Installation
You can install the package via composer:
Add your Ghost credentials in our .env
.
Usage
Here are a few simple example how you'd typically use this package. The following code will make one single HTTP call to Ghost.
Ghost API
When retrieving the posts from Ghost, the package will include tags and authors.
Content is also casted, using the regular $casts
Model feature.
Example
This is the API response and the following is Post::first()->toArray()
.
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
- Julien Bourdeau
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.
All versions of laravel-ghost-connector with dependencies
calebporzio/sushi Version ^2.0
guzzlehttp/guzzle Version ^6.5
illuminate/support Version ^7.0