Skip to content

rkashaev/nb-yii2-plugin

 
 

Repository files navigation

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

  1. Open your terminal
  2. Install Composer
  3. composer global require "fxp/composer-asset-plugin:1.0.0"
  4. composer config (--global) github-oauth.github.com YOUR_TOKEN

You can create a personal token at https://github.com/settings/applications

Steps

  1. New Project > PHP > Yii2 Framework Application
  2. Input proper values
  3. 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

About

Yii2 Framework plugin for NetBeans

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 98.8%
  • HTML 1.1%
  • ApacheConf 0.1%