diff --git a/.travis.yml b/.travis.yml index e2608e0..0ad62cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,6 +25,8 @@ script: - vendor/bin/phpstan analyse src tests - ./infection.phar --min-msi=48 --threads=4 - vendor/bin/psalm --threads=4 + - vendor/bin/dephpend text src + - vendor/bin/dephpend metrics src - composer outdated --direct # public repo on Travis CI (without token) diff --git a/README.md b/README.md index 91f49b9..0584fd6 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,14 @@ Added strict rules with: ./vendor/bin/psalm +#### dePHPend + + composer require --dev dephpend/dephpend:dev-master + ./vendor/bin/dephpend --init + ./vendor/bin/dephpend + ./vendor/bin/dephpend metrics src + + #### Ceveralls (with php) composer require --dev php-coveralls/php-coveralls diff --git a/composer.json b/composer.json index 0239283..a4ab34d 100644 --- a/composer.json +++ b/composer.json @@ -9,10 +9,17 @@ "email": "vukanac@gmail.com" } ], + "repositories": [ + { + "type": "git", + "url": "https://github.com/vukanac/dephpend.git" + } + ], "require": { }, "require-dev": { "php-coveralls/php-coveralls": "^2.1", + "dephpend/dephpend": "dev-upgraded-console", "phpstan/extension-installer": "^1.0", "phpstan/phpstan": "^0.11.16", "phpstan/phpstan-phpunit": "^0.11.2", @@ -45,12 +52,16 @@ "@phpcpd", "@phpstan", "@psalm", - "@test" + "@test", + "@dephpend", + "@dephpend-metric" ], "phpcs": "phpcs --standard=PSR2 src", "phpcbf": "phpcbf --standard=PSR2 src tests", "phpcpd": "phpcpd src tests", "phpstan": "phpstan analyse --level=max src tests", + "dephpend": "dephpend text src", + "dephpend-metric": "dephpend metric src", "psalm": "psalm --threads=4", "test": "phpunit" }, diff --git a/composer.lock b/composer.lock index 1c85f1f..38e0e3b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e0d2d2e615a4aa8ce4e957a458723680", + "content-hash": "2660c0303bb59424cd0a642f94a48ce9", "packages": [], "packages-dev": [ { @@ -187,6 +187,70 @@ ], "time": "2019-05-27T17:52:04+00:00" }, + { + "name": "dephpend/dephpend", + "version": "dev-upgraded-console", + "source": { + "type": "git", + "url": "https://github.com/vukanac/dephpend.git", + "reference": "73642d965067c73fff936fb122f18aa7e164fb16" + }, + "require": { + "nikic/php-parser": "^4.0", + "php": "^7.2", + "symfony/console": "^2.0 || ^3.0 || ^4.0", + "symfony/event-dispatcher": "^2.0 || ^3.0 || ^4.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.12", + "mikey179/vfsstream": "^1.6", + "phpunit/phpunit": "^8.0", + "squizlabs/php_codesniffer": "^3.3" + }, + "bin": [ + "bin/dephpend", + "bin/php-trace" + ], + "type": "library", + "autoload": { + "psr-4": { + "Mihaeu\\PhpDependencies\\": [ + "src/", + "tests/unit/" + ] + } + }, + "autoload-dev": { + "psr-4": { + "Mihaeu\\PhpDependencies\\Tests\\Feature\\": [ + "tests/feature/" + ] + }, + "files": [ + "vendor/phpunit/phpunit/src/Framework/Assert/Functions.php" + ] + }, + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Haeuslmann", + "email": "michael.haeuslmann@gmail.com" + } + ], + "description": "Dependency analysis for PHP", + "homepage": "https://dephpend.com", + "keywords": [ + "analysis", + "dependencies", + "dependency" + ], + "support": { + "issues": "https://github.com/mihaeu/dephpend/issues" + }, + "time": "2019-10-20T22:10:02+00:00" + }, { "name": "doctrine/instantiator", "version": "1.2.0", @@ -3374,6 +3438,134 @@ "homepage": "https://symfony.com", "time": "2019-10-07T12:36:49+00:00" }, + { + "name": "symfony/event-dispatcher", + "version": "v4.3.5", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "6229f58993e5a157f6096fc7145c0717d0be8807" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/6229f58993e5a157f6096fc7145c0717d0be8807", + "reference": "6229f58993e5a157f6096fc7145c0717d0be8807", + "shasum": "" + }, + "require": { + "php": "^7.1.3", + "symfony/event-dispatcher-contracts": "^1.1" + }, + "conflict": { + "symfony/dependency-injection": "<3.4" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "1.1" + }, + "require-dev": { + "psr/log": "~1.0", + "symfony/config": "~3.4|~4.0", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/expression-language": "~3.4|~4.0", + "symfony/http-foundation": "^3.4|^4.0", + "symfony/service-contracts": "^1.1", + "symfony/stopwatch": "~3.4|~4.0" + }, + "suggest": { + "symfony/dependency-injection": "", + "symfony/http-kernel": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.3-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony EventDispatcher Component", + "homepage": "https://symfony.com", + "time": "2019-10-01T16:40:32+00:00" + }, + { + "name": "symfony/event-dispatcher-contracts", + "version": "v1.1.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "c43ab685673fb6c8d84220c77897b1d6cdbe1d18" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/c43ab685673fb6c8d84220c77897b1d6cdbe1d18", + "reference": "c43ab685673fb6c8d84220c77897b1d6cdbe1d18", + "shasum": "" + }, + "require": { + "php": "^7.1.3" + }, + "suggest": { + "psr/event-dispatcher": "", + "symfony/event-dispatcher-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to dispatching event", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "time": "2019-09-17T09:54:03+00:00" + }, { "name": "symfony/filesystem", "version": "v4.3.5", @@ -4180,7 +4372,9 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": { + "dephpend/dephpend": 20 + }, "prefer-stable": true, "prefer-lowest": false, "platform": [],