magicalella / yii2-wswordpress
Component for Yii 2 framework vs Wordpress WS
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- yiisoft/yii2: ~2.0.6
Requires (Dev)
- php: >=5.4.0
- yiisoft/yii2: ~2.0.6
This package is auto-updated.
Last update: 2024-12-18 16:57:55 UTC
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' => 'URL API Wordpress', 'method' => 'GET' ], ]
- Get dato to WP
$wswordpress = Yii::$app->wswordpress; $result = $wswordpress->call('wp/v2/...',[ 'param'=>value_param ] );