therour/wp-api-client

Wordpress REST Api Laravel 客户端

v0.1 2019-11-16 16:05 UTC

This package is auto-updated.

Last update: 2024-09-17 02:52:25 UTC


README

安装

composer require therour/wp-api-client

配置

.env 中设置你的 WordPress REST URL

WORDPRESS_REST_URL=http://example.com/wp-json

使用

use Therour\WpApi\Client\Models\WpPost;

$posts = WpPost::get();