heiglandreas/holidayChecker

View on GitHub
composer.json

Summary

Maintainability
Test Coverage
{
  "name": "org_heigl/holidaychecker",
  "description": "Check for holidays - localeaware",
  "keywords": ["holiday", "check", "calendar", "country", "bank holiday"],
  "type": "library",
  "license": "MIT",
  "authors": [{
    "name": "Andreas Heigl",
    "email": "andreas@heigl.org"
  }],
  "require": {
    "php": "^7.3|^8.0",
    "ext-intl": "*",
    "ext-dom": "*",
    "org_heigl/dateintervalcomparator": "^1.0"
  },
  "require-dev": {
    "mockery/mockery": "^1.0",
    "phpunit/phpunit": "^8.0 || ^9.0",
    "slevomat/coding-standard": "^6.4 || ^7.0 || ^8.0",
    "squizlabs/php_codesniffer": "^3.0"
  },
  "autoload" : {
    "psr-4" : {
      "Org_Heigl\\Holidaychecker\\" : "src/"
    }
  },
  "autoload-dev" : {
    "psr-4" : {
      "Org_Heigl\\HolidaycheckerTest\\" : "tests/"
    }
  },
  "config": {
    "sort-packages": true,
    "allow-plugins": {
      "dealerdirect/phpcodesniffer-composer-installer": true
    }
  },
  "scripts" : {
    "check": [
      "@cs-check",
      "@test"
    ],
    "upload-coverage": [
      "curl -o coveralls -L https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar",
      "chmod 755 coveralls",
      "./coveralls -v"
    ],
    "cs-download" : [
      "curl -o phpcs -L https://github.com/squizlabs/PHP_CodeSniffer/releases/download/3.2.2/phpcs.phar",
      "curl -o phpcs.asc -L https://github.com/squizlabs/PHP_CodeSniffer/releases/download/3.2.2/phpcs.phar.asc",
      "# gpg --verify phpcs.asc phpcs",
      "chmod 755 phpcs"
    ],

    "cs-check": [
      "@cs-download",
      "./phpcs --version && ./phpcs"
    ],
    "cs-fix": "phpcbf",
    "test": "phpunit --colors=always",
    "lintxml" : "for i in `ls share/*.xml` ; do xmllint --xinclude --noout --schema share/holidays.xsd $i; if [ ! $? -eq 0 ] ; then exit 1; fi; done || exit 1",
    "test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
  }
}