ltd-beget / php-vim
Console helper for php to open vim in script, gives it control and returns control to script after close vim
Installs: 6 550
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 13
Forks: 1
Open Issues: 0
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: 5.2.*
- theseer/phpdox: 0.8.*
- tideways/profiler: 2.0.*
This package is not auto-updated.
Last update: 2024-11-09 19:30:22 UTC
README
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.