squirrelphp/strings

View on GitHub
composer.json

Summary

Maintainability
Test Coverage
{
    "name": "squirrelphp/strings",
    "type": "library",
    "description": "Common string operations in PHP: filter a string, generate a random string, condense an integer into a string, and modify URLs",
    "keywords": [
        "php",
        "strings",
        "filters",
        "random",
        "urls"
    ],
    "homepage": "https://github.com/squirrelphp/strings",
    "license": "MIT",
    "authors": [
        {
            "name": "Andreas Leathley",
            "email": "andreas.leathley@panaxis.ch"
        }
    ],
    "require": {
        "php": ">=8.1",
        "ext-mbstring": "*",
        "squirrelphp/debug": "^2.0"
    },
    "require-dev": {
        "ext-intl": "*",
        "bamarni/composer-bin-plugin": "^1.3",
        "captainhook/plugin-composer": "^5.0",
        "phpunit/phpunit": "^10.0",
        "twig/twig": "^3.0",
        "symfony/form": "^5.0|^6.0|^7.0",
        "symfony/http-foundation": "^5.0|^6.0|^7.0"
    },
    "suggest": {
        "squirrelphp/strings-bundle": "Symfony integration of squirrelphp/strings"
    },
    "config": {
        "sort-packages": false,
        "allow-plugins": {
            "bamarni/composer-bin-plugin": true,
            "captainhook/plugin-composer": true
        }
    },
    "autoload": {
        "psr-4": {
            "Squirrel\\Strings\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Squirrel\\Strings\\Tests\\": "tests/"
        }
    },
    "scripts": {
        "phpstan": "vendor/bin/phpstan analyse",
        "phpstan_full": "vendor/bin/phpstan clear-result-cache && vendor/bin/phpstan analyse",
        "phpstan_base": "vendor/bin/phpstan analyse --generate-baseline",
        "psalm": "vendor/bin/psalm --show-info=false",
        "psalm_full": "vendor/bin/psalm --clear-cache && vendor/bin/psalm --show-info=false",
        "psalm_base": "vendor/bin/psalm --set-baseline=psalm-baseline.xml",
        "phpunit": "vendor/bin/phpunit --colors=always",
        "phpunit_clover": "vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml",
        "coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-html tests/_reports",
        "phpcs": "vendor/bin/phpcs --standard=ruleset.xml --extensions=php --cache=.phpcs-cache --ignore=src/Attribute/StringFilter.php,tests/TestClasses/ClassWithPublicPropertyPromotion.php --colors src tests",
        "phpcsfix": "vendor/bin/phpcbf --standard=ruleset.xml --extensions=php --cache=.phpcs-cache --ignore=src/Attribute/StringFilter.php src tests",
        "binupdate": "@composer bin all update --ansi",
        "bininstall": "@composer bin all install --ansi"
    }
}