nb-yii2-plugin
Yii2 Framework plugin for NetBeans 8.0+
Requirements
- NetBeans 8.0+ (depend on build version of NetBeans now)
- Yii2 Framework (app-basic)
- Composer
Features
- Badge icon
- New Project Wizard (create a project via composer)
- Go to View/Action Action
- Create htaccess Action
- Hyperlink Navigation
- Custom alias paths support
How to enable
Right-click your php project > Frameworks > Yii2 > Check Enabled
Project settings
Base path of application
Have a look at http://www.yiiframework.com/doc-2.0/guide-structure-applications.html#basepath
Path aliases file path
Path aliases file provides support for your custom directory structure. These aliases will be used when navigation feature (e.g. Go To Action) is used. It's json file. It has a format like the following:
{
"aliases": {
"@app/controllers" : ["controllers", "mycontrollers"],
"@app/models" : ["mymodels"],
"@app/views" : ["themes/basic", "views", "views2"],
"@yii": ["vendor/yiisoft/yii2"]
}
}
NOTE: Can't recognize altogether aliases.
Create a New Project via Composer
Preparation
- Open your terminal
- Install Composer
composer global require "fxp/composer-asset-plugin:1.0.0"
composer config (--global) github-oauth.github.com YOUR_TOKEN
You can create a personal token at https://github.com/settings/applications
Steps
- New Project > PHP > Yii2 Framework Application
- Input proper values
- Finished
NOTE
If it fails, please run the composer command using the terminal manually.
Downloads
License
Common Development and Distribution License (CDDL) v1.0 and GNU General Public License (GPL) v2