LaravelPackages.net
Acme Inc.
Toggle sidebar
tttptd/laravel-ghost-api

ghost.org api v2 for Laravel (forked from c0013r/laravel-ghost-api)

9
1
2.0.3
About tttptd/laravel-ghost-api

tttptd/laravel-ghost-api is a Laravel package for ghost.org api v2 for laravel (forked from c0013r/laravel-ghost-api). It currently has 1 GitHub stars and 9 downloads on Packagist (latest version 2.0.3). Install it with composer require tttptd/laravel-ghost-api. Discover more Laravel packages by tttptd or browse all Laravel packages to compare alternatives.

Last updated

laravel-ghost-api

Latest Version on Packagist Total Downloads

This is where your description should go. Take a look at contributing.md to see a to do list.

Installation

Via Composer

$ composer require tttptd/laravel-ghost-api

Publish config file

$ php artisan vendor:publish --provider="c0013r\GhostAPI\ServiceProvider"

Usage

use Tttptd\GhostAPI\Facades\Ghost;

// get all posts
$posts = Ghost::posts()->get();

// get latest 15 (default limit) posts
$posts = Ghost::posts()->limit()->get();

// get posts with authors & tags
$posts = Ghost::posts()
            ->includeAuthors()
            ->includeTags()
            ->limit()->get();

// get tags
$tags = Ghost::tags()->get();

// get users
$tags = Ghost::users()->get();

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.

Star History Chart