Skip to content

LTD-Beget/php-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Php vim helper

Latest Stable Version Total Downloads Scrutinizer Code Quality Code Coverage Build Status Documentation Documentation License MIT

Console helper for php to open vim in script, gives it control and returns control to script after close vim

Installation

composer require ltd-beget/php-vim

Usage

<?php
    use LTDBeget\vim\Options;
        use LTDBeget\vim\Vim;
        
        require(__DIR__ . '/vendor/autoload.php');
    
        $vim = new Vim(
            (new Options())->setDiffMode(true)->setReadonlyMode(true)
        );
        $vim->addFileContent('a.txt', 'some text')->addFileContent('b.txt', 'some text2')->execute();
    
    
        $vim = new Vim;
        $vim->addFileContent('a.txt', 'some text')->execute();
        $vim->getContent('a.txt');

Developers

Regenerate documentation

$ ./vendor/bin/phpdox

Run tests

$ wget https://phar.phpunit.de/phpunit.phar
$ php phpunit.phar --coverage-html coverage
$ php phpunit.phar --coverage-clover coverage.xml

License

released under the MIT License. See the bundled LICENSE file for details.

About

Console helper for php to open vim in script, gives it control and returns control to script after close vim

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages