civicrm/gitignore

Parser for .gitignore (and sparse-checkout, and anything else using the same format) files

1.2.0 2024-04-09 07:07 UTC

This package is auto-updated.

Last update: 2024-10-09 08:08:55 UTC


README

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)