c0013r / laravel-ghost-api
Laravel 的 ghost.org API
v1.3
2018-12-13 18:24 UTC
Requires
- php: >=7.1
- guzzlehttp/guzzle: ^6.3
- illuminate/support: ~5
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ~3.0
- phpunit/phpunit: ~7.0
- sempro/phpunit-pretty-print: ^1.0
This package is auto-updated.
Last update: 2024-09-14 06:50:49 UTC
README
这里应该放置您的描述。请查看 contributing.md 以查看待办事项列表。
安装
通过 Composer
$ composer require c0013r/laravel-ghost-api
发布配置文件
$ php artisan vendor:publish --provider="c0013r\GhostAPI\ServiceProvider"
使用方法
use c0013r\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。请参阅 许可证文件 获取更多信息。