marnick-s/directus9-laravel
最新稳定版本:1.0.0
Composer 安装命令:
composer require marnick-s/directus9-laravel
包简介
A Directus 9 SDK for Laravel
README 文档
README
This package makes it easier to use alantiller/directus-php-sdk with Laravel.
Just install the package by running
composer require marnick-s/directus9-laravel
and put this in your .env:
DIRECTUS_URL=https://directus.example.com
DIRECTUS_ACCESS_TOKEN=your-static-access-token-here
DIRECTUS_ACCESS_TOKEN is optional.
Then, you can use it like this:
$api = new Directus();
$posts = $api->get_items('posts');
or, you can use the helper function:
$posts = directus()->get_items('posts');
See this readme for all the available methods.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2022-12-28