magicalella/yii2-wswordpress
最新稳定版本:v1
Composer 安装命令:
composer require magicalella/yii2-wswordpress
包简介
Component for Yii 2 framework vs Wordpress WS
README 文档
README
Modulo per integrare la Yii con Wordpress
Documentazione API WP https://developer.wordpress.org/rest-api/
Installation
The preferred way to install this extension is through composer.
Run
php composer.phar require magicalella/yii2-wswordpress
or add
"magicalella/yii2-wswordpress": "*"
to the require section of your composer.json file.
Usage
- Add component to your config file
'components' => [ // ... 'wswordpress' => [ 'class' => 'magicalella\wswordpress\Wswordpress', 'endpoint' => 'https://miosito.it/wp-json/', 'method' => 'GET', 'consumer_key' => 'ck_xxx',//for Woocommerce 'consumer_secret' => 'cs_xxx'//for Woocommerce ], ]
- Get dato to WP
$wswordpress = Yii::$app->wswordpress; $result = $wswordpress->call('wp/v2/...',[ 'param'=>value_param ] );
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-05-13