Skip to content

Commit 1bd7078

Browse files
author
Gianluca Arbezzano
committed
Merge pull request #11 from vim-php/feature/doc
Add help
2 parents a70741a + 04fe2c0 commit 1bd7078

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

Diff for: doc/composer.txt

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
*composer.txt* refactoring tools for PHP
2+
3+
PHP COMPOSER SUPPORT FOR VIM
4+
(requires https://github.com/vim-php/vim-composer)
5+
6+
================================================================================
7+
CONTENTS *VimComposerContents*
8+
9+
1. Setup ............................. |VimComposerSetup|
10+
2. Usage ............................. |VimComposerUsage|
11+
4. License ........................... |VimComposerLicense|
12+
5. Contributing ...................... |VimComposerContrib|
13+
14+
================================================================================
15+
SETUP *VimComposerSetup*
16+
17+
Manage composer https://getcomposer.org in Vim
18+
19+
Bundle 'vim-php/vim-composer'
20+
21+
This plugin support an autodetach test to check the correct path of composer.phar
22+
If this check fails you can try to force correct path
23+
24+
let g:composer_cmd = "/usr/bin/composer"
25+
26+
================================================================================
27+
USAGE *VimComposerUsage*
28+
29+
:ComposerRun <args>
30+
To run command for example `:ComposerRun validate` run command validate for your json
31+
32+
:ComposerGet
33+
This command exec the installation flow of composer's install. This process require `curl`
34+
35+
:ComposerInstall [--no-dev ..]
36+
This command exec `composer install`. Now you can attach after this command a custom callback to exec your personal flow.
37+
38+
function! MyCallbackFunction()
39+
exec ':silent ! ctags -a %'
40+
endfunction
41+
let g:composer_install_callback = "MyCallbackFunction"
42+
43+
In this example after every `composer install` I exec a ctags generation
44+
45+
:ComposerJSON
46+
This command open `composer.json`
47+
48+
================================================================================
49+
LICENSE *VimComposerLicense*
50+
51+
The MIT License (MIT)
52+
53+
Copyright (c) 2015 Gianluca Arbezzano
54+
55+
Permission is hereby granted, free of charge, to any person obtaining a copy of
56+
this software and associated documentation files (the "Software"), to deal in
57+
the Software without restriction, including without limitation the rights to
58+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
59+
the Software, and to permit persons to whom the Software is furnished to do so,
60+
subject to the following conditions:
61+
62+
The above copyright notice and this permission notice shall be included in all
63+
copies or substantial portions of the Software.
64+
65+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
66+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
67+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
68+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
69+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
70+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
71+
72+
================================================================================
73+
CONTRIBUTING *VimComposerContrib*
74+
75+
https://github.com/vim-php/vim-composer
76+
This plugin is very easy, there is a lot of space for community update, feedback and
77+
features request.
78+
Help me with issues and PRs!
79+
Thanks!

0 commit comments

Comments
 (0)