embedded-php/sensors

View on GitHub
composer.json

Summary

Maintainability
Test Coverage
{
  "name": "embedded-php/sensors",
  "description": "Embedded PHP: Sensors Library",
  "type": "library",
  "license": "mit",
  "keywords": ["am2302", "apds9900", "bmp280", "hcsr04", "max30100"],
  "authors": [
    {
      "name": "Flavio Heleno",
      "email": "flaviohbatista@gmail.com"
    }
  ],
  "autoload": {
    "psr-4": {
      "EmbeddedPhp\\Sensors\\": "src/"
    }
  },
  "autoload-dev": {
    "psr-4": {
      "EmbeddedPhp\\Sensors\\Test\\": "tests"
    }
  },
  "config": {
    "optimize-autoloader": true,
    "sort-packages": true,
    "preferred-install": "dist",
    "allow-plugins": {
      "infection/extension-installer": true,
      "composer/package-versions-deprecated": true
    }
  },
  "minimum-stability": "dev",
  "prefer-stable": true,
  "funding": [
    {
      "type": "patreon",
      "url": "https://www.patreon.com/flavioheleno"
    }
  ],
  "require": {
    "php": ">=8.0",
    "embedded-php/core": "dev-main"
  },
  "require-dev": {
    "infection/infection": "^0.26",
    "php-parallel-lint/php-parallel-lint": "^1.3",
    "phpstan/phpstan": "^1.4",
    "phpunit/phpunit": "^9.5",
    "psy/psysh": "^0.11",
    "roave/security-advisories": "dev-latest",
    "squizlabs/php_codesniffer": "^3.6",
    "vimeo/psalm": "^4.8"
  },
  "scripts": {
    "console": "vendor/bin/psysh",
    "infection": "vendor/bin/infection",
    "lint": "vendor/bin/parallel-lint --exclude vendor .",
    "phpcs": "vendor/bin/phpcs --standard=ruleset.xml src/ tests/",
    "phpstan": "vendor/bin/phpstan analyse --level=max --autoload-file=vendor/autoload.php src/",
    "phpunit": "vendor/bin/phpunit ./tests/ --coverage-html=./report/coverage/ --whitelist=./src/ --testdox-html=./report/testdox.html --disallow-test-output --process-isolation",
    "psalm": "vendor/bin/psalm --taint-analysis",
    "test": [
      "@infection",
      "@lint",
      "@phpunit",
      "@phpstan",
      "@psalm",
      "@phpcs"
    ]
  },
  "scripts-descriptions": {
    "console": "Runs PsySH Console",
    "infection": "Runs mutation test framework",
    "lint": "Runs complete codebase lint testing",
    "phpcs": "Runs coding style checking",
    "phpstan": "Runs complete codebase static analysis",
    "phpunit": "Runs library test suite",
    "psalm": "Runs complete codebase taint analysis",
    "test": "Runs all tests"
  }
}