sponsor Vim development Vim logo Vim Book Ad

VIM PHP Refactoring Toolbox : Easily refactor your PHP Code

 script karma  Rating 34/10, Downloaded by 1502  Comments, bugs, improvements  Vim wiki

created by
Pierrick Charron
 
script type
utility
 
description
This plugin contains multiple refactoring tools for PHP code.

Here is the default mapping :

nnoremap <unique> <Leader>rlv :call PhpRenameLocalVariable()<CR>
nnoremap <unique> <Leader>rcv :call PhpRenameClassVariable()<CR>
nnoremap <unique> <Leader>rm :call PhpRenameMethod()<CR>
nnoremap <unique> <Leader>eu :call PhpExtractUse()<CR>
vnoremap <unique> <Leader>ec :call PhpExtractConst()<CR>
nnoremap <unique> <Leader>ep :call PhpExtractClassProperty()<CR>
vnoremap <unique> <Leader>em :call PhpExtractMethod()<CR>
nnoremap <unique> <Leader>np :call PhpCreateProperty()<CR>
nnoremap <unique> <Leader>du :call PhpDetectUnusedUseStatements()<CR>
vnoremap <unique> <Leader>== :call PhpAlignAssigns()<CR>
nnoremap <unique> <Leader>sg :call PhpCreateSettersAndGetters()<CR>
nnoremap <unique> <Leader>da :call PhpDocAll()<CR>

You can find more details on how to use this script here : https://github.com/adoy/vim-php-refactoring-toolbox
 
install details
Just copy the php-refactoring-toolbox.vim file in your ~/.vim/plugin/ folder
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
php-refactoring-toolbox.vim 1.0.3 2017-05-07 7.0 Pierrick Charron Bug fixing.
php-refactoring-toolbox.vim 1.0.2 2015-05-22 7.0 Pierrick Charron - Fix add property in weird cases
- Add more configurations (auto validate, default visibility)
php-refactoring-toolbox.vim 1.0.1 2014-09-29 7.0 Pierrick Charron - Fix a bug in RenameLocalVariable when $ is included in iskeyword
- Add a g:vim_php_refactoring_use_default_mapping config to enable/disable default mapping
php-refactoring-toolbox.vim 1.0.0 2014-09-21 7.0 Pierrick Charron Initial upload
ip used for rating: 44.201.96.43

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
OSDN