/StinkerPhar

Internal Tinker helper package for Stinker

Primary LanguagePHPDo What The F*ck You Want To Public LicenseWTFPL

Stinker helper package

This package is used internally within Stinker.

But can be used in vim as well:

in your .profile


export STINKER=$(pwd to index.php / Stinker.phar)
export STINKER_PROJECT=$(pwd to Laravel app)

in your .vimrc


function! s:Art()
	let b64 = system('base64', bufnr())
	botright new
	setlocal buftype=nofile bufhidden=wipe nobuflisted noswapfile nowrap	
	execute "$read !php $STINKER $STINKER_PROJECT tinker --tinker_code=".b64
	setlocal nomodifiable
	1
endfunction
command! -complete=shellcmd  Tinker call s:Art()