Universally Unique Lexicographically Sortable Identifier ported to PHP
Tests borrowed from .NET port
Original idea borrowed from JS
License AGPL
PHP7.4+
composer require lewiscowles/ulid
To generate the coverage report xdebug extension must be enabled for your PHP
php vendor/bin/phpunit --coverage-html ./reports/ --whitelist src
php vendor/bin/infection
php vendor/bin/phpstan analyse src -l max
stage('Run Unit Tests in PHP') {
dir('ulid') {
sh 'php vendor/bin/phpunit --coverage-html ./reports/ --whitelist src'
}
publishHTML([allowMissing: true, alwaysLinkToLastBuild: false, keepAll: true, reportDir: 'ulid/reports', reportFiles: 'index.html', reportName: 'PHPUnit Coverage'])
}
Create an issue, a PR, both (if possible) 😸