tttptd/laravel-ghost-api

Laravel的ghost.org api v2 (从c0013r/laravel-ghost-api分支)

2.0.3 2019-06-09 15:39 UTC

This package is not auto-updated.

Last update: 2024-09-23 08:32:44 UTC


README

Latest Version on Packagist Total Downloads

这里应该是你的描述。请查看 contributing.md 了解待办事项清单。

安装

通过Composer

$ composer require tttptd/laravel-ghost-api

发布配置文件

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

用法

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();

变更日志

请参阅 changelog 了解最近的变化。

测试

$ composer test

贡献

请参阅 contributing.md 了解详细信息和待办事项清单。

安全性

如果你发现任何安全问题,请通过电子邮件 andrew@7glyphs.com 而不是使用问题跟踪器。

致谢

许可证

MIT。请参阅 许可证文件 了解更多信息。