Skip to content

PHP library for parsing and applying .gitignore-like rules

License

Notifications You must be signed in to change notification settings

civicrm/PHPGitIgnore

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Git Ignore

This is a maintenance fork of https://github.com/TOGoS/PHPGitIgnore to provide compatibility with newer versions of PHP.

Installation

composer require civicrm/gitignore

Testing

The Makefile defines targets for building and testing. If you have GNU Make and PHP, then just run:

make

If you don't have GNU Make and PHP, then you can use nix-shell (Nix package manager), eg

nix-shell -A php83
make

Or you can string together several calls, with alternating versions of PHP:

## Run the tests with multiple versions of PHP
nix-shell -A php83 --run 'make clean run-unit-tests'
nix-shell -A php82 --run 'make clean run-unit-tests'
nix-shell -A php81 --run 'make clean run-unit-tests'
nix-shell -A php74 --run 'make clean run-unit-tests'
nix-shell -A php70 --run 'make run-unit-tests'
nix-shell -A php56 --run 'make run-unit-tests'
## (Each phpXX should be listed in shell.nix)

About

PHP library for parsing and applying .gitignore-like rules

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 72.3%
  • Nix 25.1%
  • Makefile 2.6%