Download the PHP package winternet-studio/yii2-wordpress-glue without Composer
On this page you can find all versions of the php package winternet-studio/yii2-wordpress-glue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download winternet-studio/yii2-wordpress-glue
More information about winternet-studio/yii2-wordpress-glue
Files in winternet-studio/yii2-wordpress-glue
Package yii2-wordpress-glue
Short Description Toolkit for Wordpress Plugin Development with Yii2 Framework
License MIT
Informations about the package yii2-wordpress-glue
Yii2-Wordpress-Glue
Development of Wordpress plugins with Yii2 framework
Quick Start
Create a new Wordpress plugin by creating a new folder in eg. wp-content/plugins/awesome-plugin
and run/execute these tasks that that folder:
-
create
composer.json
with at least this: - run
composer require winternet-studio/yii2-wordpress-glue
- create the wordpress plugin bootstrap file eg.
awesome-plugin.php
(replacemyplugin
with name of your plugin):
Translations
look at the $config-array in the example above:
The i18n
-Component is configured with basePath "plugin/messages".
Refer to the Yii2-Documentation for more informations.
Migrations
- create a folder "migrations" in your Application (wp-content/plugins/awesome-plugin/migrations)
- on the cli:
vendor/bin/yii2wp migrate/create 'MyMigrationName'
A new file should be generated in your migrations folder:
Core Migration
vendor/bin/yii2wp migrate/create --migrationPath=@Yii2Wordpress/migrations 'AddTemplates'
Credits
This is originally a fork of Henry Volkmer's project but many changes have been changed.
All versions of yii2-wordpress-glue with dependencies
yiisoft/yii2-bootstrap4 Version ^2.0
kartik-v/yii2-detail-view Version 1.8.x@dev