diff --git a/.gitignore b/.gitignore index 6928055..7311038 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,5 @@ _ide_helper_models.php .php_cs.cache .php-cs-fixer.cache /.vscode -/coverage \ No newline at end of file +/coverage +/cache diff --git a/README.md b/README.md index 91c43ec..d9c516f 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,13 @@ Install globally ## 📝 Usage +1. Create a Github or Gitlab repository for your package +2. Pull the package to your local machine +3. Run `packager new` command +4. Enter required information +5. Install the package with `composer install` command +6. Start developing your package + ### Create a package `packager new` or `packager n` diff --git a/bin/packager b/bin/packager index 6cb7f39..058b033 100644 --- a/bin/packager +++ b/bin/packager @@ -1,34 +1,15 @@ #!/usr/bin/env php __DIR__ . '/../src/Command', - 'theme' => '', - 'debug' => true, -]); +use Symfony\Component\Console\Application; +use LaravelReady\Packager\Commands\NewPackageCommand; -try { - $app->runCommand($argv); -} catch (CommandNotFoundException $notFoundException) { - $app->getPrinter()->error("Command Not Found."); +$application = new Application(); - return 1; -} catch (Exception $exception) { - if ($app->config->debug) { - $app->getPrinter()->error("An error occurred:"); - $app->getPrinter()->error($exception->getMessage()); - } - - return 1; -} +$application->addCommands([ + new NewPackageCommand(), +]); -return 0; \ No newline at end of file +$application->run(); diff --git a/composer.json b/composer.json index 1aa0932..f9b977a 100644 --- a/composer.json +++ b/composer.json @@ -25,13 +25,14 @@ } }, "require": { - "php": "^8.0 || ^8.1", - "minicli/minicli": "^3.2.0", - "minicli/command-help": "^0.1.0", - "illuminate/support": "^8.8 || ^v9.0", + "php": "^8.1", + "illuminate/support": "^v9.9.0", "illuminate/filesystem": "^8.8 || ^v9.0", "nikic/php-parser": "^v4.14.0", - "nesbot/carbon": "^2.59.1" + "nesbot/carbon": "^2.59.1", + "symfony/console": "^6.2", + "nunomaduro/termwind": "^1.14", + "illuminate/view": "9.0" }, "scripts": { "test": "DB_DATABASE=:memory: vendor/bin/pest --colors=always --parallel", @@ -59,5 +60,5 @@ "phpunit/phpunit": "^9.5.20", "friendsofphp/php-cs-fixer": "^3.10" }, - "minimum-stability": "dev" + "minimum-stability": "stable" } diff --git a/composer.lock b/composer.lock index 9432e7c..385601f 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": "4279272656dfa5e96058e5a5955520d4", + "content-hash": "2320d716077e8373f3d7d5c51fade5be", "packages": [ { "name": "doctrine/inflector", @@ -97,6 +97,59 @@ ], "time": "2022-09-07T09:01:28+00:00" }, + { + "name": "illuminate/bus", + "version": "v9.52.4", + "source": { + "type": "git", + "url": "https://github.com/illuminate/bus.git", + "reference": "c7f09872054f2b361f8ed9e9e988b3c9be06c596" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/illuminate/bus/zipball/c7f09872054f2b361f8ed9e9e988b3c9be06c596", + "reference": "c7f09872054f2b361f8ed9e9e988b3c9be06c596", + "shasum": "" + }, + "require": { + "illuminate/collections": "^9.0", + "illuminate/contracts": "^9.0", + "illuminate/pipeline": "^9.0", + "illuminate/support": "^9.0", + "php": "^8.0.2" + }, + "suggest": { + "illuminate/queue": "Required to use closures when chaining jobs (^7.0)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.x-dev" + } + }, + "autoload": { + "psr-4": { + "Illuminate\\Bus\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Illuminate Bus package.", + "homepage": "https://laravel.com", + "support": { + "issues": "https://github.com/laravel/framework/issues", + "source": "https://github.com/laravel/framework" + }, + "time": "2022-11-25T07:56:47+00:00" + }, { "name": "illuminate/collections", "version": "v9.32.0", @@ -198,6 +251,57 @@ }, "time": "2022-07-29T19:44:19+00:00" }, + { + "name": "illuminate/container", + "version": "v9.52.4", + "source": { + "type": "git", + "url": "https://github.com/illuminate/container.git", + "reference": "1641dda2d0750b68bb1264a3b37ff3973f2e6265" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/illuminate/container/zipball/1641dda2d0750b68bb1264a3b37ff3973f2e6265", + "reference": "1641dda2d0750b68bb1264a3b37ff3973f2e6265", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^9.0", + "php": "^8.0.2", + "psr/container": "^1.1.1|^2.0.1" + }, + "provide": { + "psr/container-implementation": "1.1|2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.x-dev" + } + }, + "autoload": { + "psr-4": { + "Illuminate\\Container\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Illuminate Container package.", + "homepage": "https://laravel.com", + "support": { + "issues": "https://github.com/laravel/framework/issues", + "source": "https://github.com/laravel/framework" + }, + "time": "2023-01-24T16:54:18+00:00" + }, { "name": "illuminate/contracts", "version": "v9.32.0", @@ -246,6 +350,61 @@ }, "time": "2022-09-15T13:31:42+00:00" }, + { + "name": "illuminate/events", + "version": "v9.52.4", + "source": { + "type": "git", + "url": "https://github.com/illuminate/events.git", + "reference": "8e534676bac23bc17925f5c74c128f9c09b98f69" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/illuminate/events/zipball/8e534676bac23bc17925f5c74c128f9c09b98f69", + "reference": "8e534676bac23bc17925f5c74c128f9c09b98f69", + "shasum": "" + }, + "require": { + "illuminate/bus": "^9.0", + "illuminate/collections": "^9.0", + "illuminate/container": "^9.0", + "illuminate/contracts": "^9.0", + "illuminate/macroable": "^9.0", + "illuminate/support": "^9.0", + "php": "^8.0.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.x-dev" + } + }, + "autoload": { + "files": [ + "functions.php" + ], + "psr-4": { + "Illuminate\\Events\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Illuminate Events package.", + "homepage": "https://laravel.com", + "support": { + "issues": "https://github.com/laravel/framework/issues", + "source": "https://github.com/laravel/framework" + }, + "time": "2022-09-15T13:14:12+00:00" + }, { "name": "illuminate/filesystem", "version": "v9.32.0", @@ -354,6 +513,54 @@ }, "time": "2022-08-09T13:29:29+00:00" }, + { + "name": "illuminate/pipeline", + "version": "v9.52.4", + "source": { + "type": "git", + "url": "https://github.com/illuminate/pipeline.git", + "reference": "e0be3f3f79f8235ad7334919ca4094d5074e02f6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/illuminate/pipeline/zipball/e0be3f3f79f8235ad7334919ca4094d5074e02f6", + "reference": "e0be3f3f79f8235ad7334919ca4094d5074e02f6", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^9.0", + "illuminate/support": "^9.0", + "php": "^8.0.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.x-dev" + } + }, + "autoload": { + "psr-4": { + "Illuminate\\Pipeline\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Illuminate Pipeline package.", + "homepage": "https://laravel.com", + "support": { + "issues": "https://github.com/laravel/framework/issues", + "source": "https://github.com/laravel/framework" + }, + "time": "2022-06-09T14:13:53+00:00" + }, { "name": "illuminate/support", "version": "v9.32.0", @@ -425,95 +632,58 @@ "time": "2022-09-26T13:37:45+00:00" }, { - "name": "minicli/command-help", - "version": "0.1", + "name": "illuminate/view", + "version": "v9.0.0", "source": { "type": "git", - "url": "https://github.com/minicli/command-help.git", - "reference": "f8cbb80bad2aa2fc0896d1b8048e6098f0a18d87" + "url": "https://github.com/illuminate/view.git", + "reference": "38dd7c09c516e48a46a26bb0948225323bc9bf67" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/minicli/command-help/zipball/f8cbb80bad2aa2fc0896d1b8048e6098f0a18d87", - "reference": "f8cbb80bad2aa2fc0896d1b8048e6098f0a18d87", + "url": "https://api.github.com/repos/illuminate/view/zipball/38dd7c09c516e48a46a26bb0948225323bc9bf67", + "reference": "38dd7c09c516e48a46a26bb0948225323bc9bf67", "shasum": "" }, "require": { - "minicli/minicli": "^3.0" + "ext-json": "*", + "illuminate/collections": "^9.0", + "illuminate/container": "^9.0", + "illuminate/contracts": "^9.0", + "illuminate/events": "^9.0", + "illuminate/filesystem": "^9.0", + "illuminate/macroable": "^9.0", + "illuminate/support": "^9.0", + "php": "^8.0.2" }, "type": "library", - "autoload": { - "psr-4": { - "Command\\": "Command/" + "extra": { + "branch-alias": { + "dev-master": "9.x-dev" } }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A help command for Minicli", - "homepage": "https://github.com/minicli/command-help", - "keywords": [ - "cli", - "command-line", - "minicli" - ], - "support": { - "issues": "https://github.com/minicli/command-help/issues", - "source": "https://github.com/minicli/command-help/tree/0.1" - }, - "time": "2022-06-02T17:42:18+00:00" - }, - { - "name": "minicli/minicli", - "version": "3.2.1", - "source": { - "type": "git", - "url": "https://github.com/minicli/minicli.git", - "reference": "2d31b303461d0ec1f8c6d0be00f8b26be8766fbe" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/minicli/minicli/zipball/2d31b303461d0ec1f8c6d0be00f8b26be8766fbe", - "reference": "2d31b303461d0ec1f8c6d0be00f8b26be8766fbe", - "shasum": "" - }, - "require": { - "ext-readline": "*", - "php": ">=8" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^3.5", - "pestphp/pest": "^1.0", - "phpunit/phpunit": "^9.0" - }, - "type": "library", "autoload": { "psr-4": { - "Minicli\\": "src/" + "Illuminate\\View\\": "" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "description": "Experimental micro CLI framework for PHP", - "homepage": "https://github.com/minicli/minicli", - "keywords": [ - "cli", - "command-line" - ], - "support": { - "issues": "https://github.com/minicli/minicli/issues", - "source": "https://github.com/minicli/minicli/tree/3.2.1" - }, - "funding": [ + "authors": [ { - "url": "https://github.com/erikaheidi", - "type": "github" + "name": "Taylor Otwell", + "email": "taylor@laravel.com" } ], - "time": "2022-09-23T09:04:22+00:00" + "description": "The Illuminate View package.", + "homepage": "https://laravel.com", + "support": { + "issues": "https://github.com/laravel/framework/issues", + "source": "https://github.com/laravel/framework" + }, + "time": "2022-02-05T18:02:43+00:00" }, { "name": "nesbot/carbon", @@ -674,31 +844,50 @@ "time": "2022-09-04T07:30:47+00:00" }, { - "name": "psr/container", - "version": "2.0.2", + "name": "nunomaduro/termwind", + "version": "v1.14.2", "source": { "type": "git", - "url": "https://github.com/php-fig/container.git", - "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + "url": "https://github.com/nunomaduro/termwind.git", + "reference": "9a8218511eb1a0965629ff820dda25985440aefc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", - "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/9a8218511eb1a0965629ff820dda25985440aefc", + "reference": "9a8218511eb1a0965629ff820dda25985440aefc", "shasum": "" }, "require": { - "php": ">=7.4.0" + "ext-mbstring": "*", + "php": "^8.0", + "symfony/console": "^5.3.0|^6.0.0" + }, + "require-dev": { + "ergebnis/phpstan-rules": "^1.0.", + "illuminate/console": "^8.0|^9.0", + "illuminate/support": "^8.0|^9.0", + "laravel/pint": "^1.0.0", + "pestphp/pest": "^1.21.0", + "pestphp/pest-plugin-mock": "^1.0", + "phpstan/phpstan": "^1.4.6", + "phpstan/phpstan-strict-rules": "^1.1.0", + "symfony/var-dumper": "^5.2.7|^6.0.0", + "thecodingmachine/phpstan-strict-rules": "^1.0.0" }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" + "laravel": { + "providers": [ + "Termwind\\Laravel\\TermwindServiceProvider" + ] } }, "autoload": { + "files": [ + "src/Functions.php" + ], "psr-4": { - "Psr\\Container\\": "src/" + "Termwind\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -707,28 +896,95 @@ ], "authors": [ { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" } ], - "description": "Common Container Interface (PHP FIG PSR-11)", - "homepage": "https://github.com/php-fig/container", + "description": "Its like Tailwind CSS, but for the console.", "keywords": [ - "PSR-11", - "container", - "container-interface", - "container-interop", - "psr" + "cli", + "console", + "css", + "package", + "php", + "style" ], "support": { - "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/2.0.2" + "issues": "https://github.com/nunomaduro/termwind/issues", + "source": "https://github.com/nunomaduro/termwind/tree/v1.14.2" }, - "time": "2021-11-05T16:47:00+00:00" - }, - { - "name": "psr/simple-cache", - "version": "3.0.0", + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://github.com/xiCO2k", + "type": "github" + } + ], + "time": "2022-10-28T22:51:32+00:00" + }, + { + "name": "psr/container", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" + }, + "time": "2021-11-05T16:47:00+00:00" + }, + { + "name": "psr/simple-cache", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/php-fig/simple-cache.git", @@ -778,29 +1034,55 @@ "time": "2021-10-29T13:26:27+00:00" }, { - "name": "symfony/finder", - "version": "v6.1.3", + "name": "symfony/console", + "version": "v6.2.0", "source": { "type": "git", - "url": "https://github.com/symfony/finder.git", - "reference": "39696bff2c2970b3779a5cac7bf9f0b88fc2b709" + "url": "https://github.com/symfony/console.git", + "reference": "75d4749d9620a8fa21a2d2847800a84b5c4e7682" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/39696bff2c2970b3779a5cac7bf9f0b88fc2b709", - "reference": "39696bff2c2970b3779a5cac7bf9f0b88fc2b709", + "url": "https://api.github.com/repos/symfony/console/zipball/75d4749d9620a8fa21a2d2847800a84b5c4e7682", + "reference": "75d4749d9620a8fa21a2d2847800a84b5c4e7682", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/string": "^5.4|^6.0" + }, + "conflict": { + "symfony/dependency-injection": "<5.4", + "symfony/dotenv": "<5.4", + "symfony/event-dispatcher": "<5.4", + "symfony/lock": "<5.4", + "symfony/process": "<5.4" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" }, "require-dev": { - "symfony/filesystem": "^6.0" + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/lock": "^5.4|^6.0", + "symfony/process": "^5.4|^6.0", + "symfony/var-dumper": "^5.4|^6.0" + }, + "suggest": { + "psr/log": "For using the console logger", + "symfony/event-dispatcher": "", + "symfony/lock": "", + "symfony/process": "" }, "type": "library", "autoload": { "psr-4": { - "Symfony\\Component\\Finder\\": "" + "Symfony\\Component\\Console\\": "" }, "exclude-from-classmap": [ "/Tests/" @@ -820,10 +1102,16 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Finds files and directories via an intuitive fluent interface", + "description": "Eases the creation of beautiful and testable command line interfaces", "homepage": "https://symfony.com", + "keywords": [ + "cli", + "command line", + "console", + "terminal" + ], "support": { - "source": "https://github.com/symfony/finder/tree/v6.1.3" + "source": "https://github.com/symfony/console/tree/v6.2.0" }, "funding": [ { @@ -839,48 +1127,39 @@ "type": "tidelift" } ], - "time": "2022-07-29T07:42:06+00:00" + "time": "2022-11-29T16:44:51+00:00" }, { - "name": "symfony/polyfill-mbstring", - "version": "v1.26.0", + "name": "symfony/deprecation-contracts", + "version": "v3.1.1", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e" + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", - "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", + "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", "shasum": "" }, "require": { - "php": ">=7.1" - }, - "provide": { - "ext-mbstring": "*" - }, - "suggest": { - "ext-mbstring": "For best performance" + "php": ">=8.1" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "3.1-dev" }, "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" } }, "autoload": { "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Mbstring\\": "" - } + "function.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -896,17 +1175,10 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill for the Mbstring extension", + "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "mbstring", - "polyfill", - "portable", - "shim" - ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.26.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.1.1" }, "funding": [ { @@ -922,44 +1194,35 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2022-02-25T11:15:52+00:00" }, { - "name": "symfony/polyfill-php80", - "version": "v1.26.0", + "name": "symfony/finder", + "version": "v6.1.3", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace" + "url": "https://github.com/symfony/finder.git", + "reference": "39696bff2c2970b3779a5cac7bf9f0b88fc2b709" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/cfa0ae98841b9e461207c13ab093d76b0fa7bace", - "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace", + "url": "https://api.github.com/repos/symfony/finder/zipball/39696bff2c2970b3779a5cac7bf9f0b88fc2b709", + "reference": "39696bff2c2970b3779a5cac7bf9f0b88fc2b709", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.1" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.26-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } + "require-dev": { + "symfony/filesystem": "^6.0" }, + "type": "library", "autoload": { - "files": [ - "bootstrap.php" - ], "psr-4": { - "Symfony\\Polyfill\\Php80\\": "" + "Symfony\\Component\\Finder\\": "" }, - "classmap": [ - "Resources/stubs" + "exclude-from-classmap": [ + "/Tests/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -968,28 +1231,18 @@ ], "authors": [ { - "name": "Ion Bazan", - "email": "ion.bazan@gmail.com" - }, - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" + "name": "Fabien Potencier", + "email": "fabien@symfony.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.26.0" + "source": "https://github.com/symfony/finder/tree/v6.1.3" }, "funding": [ { @@ -1005,68 +1258,48 @@ "type": "tidelift" } ], - "time": "2022-05-10T07:21:04+00:00" + "time": "2022-07-29T07:42:06+00:00" }, { - "name": "symfony/translation", - "version": "v6.1.4", + "name": "symfony/polyfill-ctype", + "version": "v1.26.0", "source": { "type": "git", - "url": "https://github.com/symfony/translation.git", - "reference": "45d0f5bb8df7255651ca91c122fab604e776af03" + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/45d0f5bb8df7255651ca91c122fab604e776af03", - "reference": "45d0f5bb8df7255651ca91c122fab604e776af03", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", + "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", "shasum": "" }, "require": { - "php": ">=8.1", - "symfony/polyfill-mbstring": "~1.0", - "symfony/translation-contracts": "^2.3|^3.0" - }, - "conflict": { - "symfony/config": "<5.4", - "symfony/console": "<5.4", - "symfony/dependency-injection": "<5.4", - "symfony/http-kernel": "<5.4", - "symfony/twig-bundle": "<5.4", - "symfony/yaml": "<5.4" + "php": ">=7.1" }, "provide": { - "symfony/translation-implementation": "2.3|3.0" - }, - "require-dev": { - "psr/log": "^1|^2|^3", - "symfony/config": "^5.4|^6.0", - "symfony/console": "^5.4|^6.0", - "symfony/dependency-injection": "^5.4|^6.0", - "symfony/finder": "^5.4|^6.0", - "symfony/http-client-contracts": "^1.1|^2.0|^3.0", - "symfony/http-kernel": "^5.4|^6.0", - "symfony/intl": "^5.4|^6.0", - "symfony/polyfill-intl-icu": "^1.21", - "symfony/routing": "^5.4|^6.0", - "symfony/service-contracts": "^1.1.2|^2|^3", - "symfony/yaml": "^5.4|^6.0" + "ext-ctype": "*" }, "suggest": { - "psr/log-implementation": "To use logging capability in translator", - "symfony/config": "", - "symfony/yaml": "" + "ext-ctype": "For best performance" }, "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, "autoload": { "files": [ - "Resources/functions.php" + "bootstrap.php" ], "psr-4": { - "Symfony\\Component\\Translation\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] + "Symfony\\Polyfill\\Ctype\\": "" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1074,18 +1307,24 @@ ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Provides tools to internationalize your application", + "description": "Symfony polyfill for ctype functions", "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], "support": { - "source": "https://github.com/symfony/translation/tree/v6.1.4" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.26.0" }, "funding": [ { @@ -1101,45 +1340,45 @@ "type": "tidelift" } ], - "time": "2022-08-02T16:17:38+00:00" + "time": "2022-05-24T11:49:31+00:00" }, { - "name": "symfony/translation-contracts", - "version": "v3.1.1", + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.26.0", "source": { "type": "git", - "url": "https://github.com/symfony/translation-contracts.git", - "reference": "606be0f48e05116baef052f7f3abdb345c8e02cc" + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "433d05519ce6990bf3530fba6957499d327395c2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/606be0f48e05116baef052f7f3abdb345c8e02cc", - "reference": "606be0f48e05116baef052f7f3abdb345c8e02cc", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/433d05519ce6990bf3530fba6957499d327395c2", + "reference": "433d05519ce6990bf3530fba6957499d327395c2", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=7.1" }, "suggest": { - "symfony/translation-implementation": "" + "ext-intl": "For best performance" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.1-dev" + "dev-main": "1.26-dev" }, "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { + "files": [ + "bootstrap.php" + ], "psr-4": { - "Symfony\\Contracts\\Translation\\": "" - }, - "exclude-from-classmap": [ - "/Test/" - ] + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1155,18 +1394,18 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Generic abstractions related to translation", + "description": "Symfony polyfill for intl's grapheme_* functions", "homepage": "https://symfony.com", "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" + "compatibility", + "grapheme", + "intl", + "polyfill", + "portable", + "shim" ], "support": { - "source": "https://github.com/symfony/translation-contracts/tree/v3.1.1" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.26.0" }, "funding": [ { @@ -1182,36 +1421,48 @@ "type": "tidelift" } ], - "time": "2022-06-27T17:24:16+00:00" + "time": "2022-05-24T11:49:31+00:00" }, { - "name": "voku/portable-ascii", - "version": "2.0.1", + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.26.0", "source": { "type": "git", - "url": "https://github.com/voku/portable-ascii.git", - "reference": "b56450eed252f6801410d810c8e1727224ae0743" + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "219aa369ceff116e673852dce47c3a41794c14bd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/voku/portable-ascii/zipball/b56450eed252f6801410d810c8e1727224ae0743", - "reference": "b56450eed252f6801410d810c8e1727224ae0743", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/219aa369ceff116e673852dce47c3a41794c14bd", + "reference": "219aa369ceff116e673852dce47c3a41794c14bd", "shasum": "" }, "require": { - "php": ">=7.0.0" - }, - "require-dev": { - "phpunit/phpunit": "~6.0 || ~7.0 || ~9.0" + "php": ">=7.1" }, "suggest": { - "ext-intl": "Use Intl for transliterator_transliterate() support" + "ext-intl": "For best performance" }, "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, "autoload": { + "files": [ + "bootstrap.php" + ], "psr-4": { - "voku\\": "src/voku/" - } + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "classmap": [ + "Resources/stubs" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1219,97 +1470,82 @@ ], "authors": [ { - "name": "Lars Moelleken", - "homepage": "http://www.moelleken.org/" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" } ], - "description": "Portable ASCII library - performance optimized (ascii) string functions for php.", - "homepage": "https://github.com/voku/portable-ascii", + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", "keywords": [ - "ascii", - "clean", - "php" + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" ], "support": { - "issues": "https://github.com/voku/portable-ascii/issues", - "source": "https://github.com/voku/portable-ascii/tree/2.0.1" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.26.0" }, "funding": [ { - "url": "https://www.paypal.me/moelleken", + "url": "https://symfony.com/sponsor", "type": "custom" }, { - "url": "https://github.com/voku", + "url": "https://github.com/fabpot", "type": "github" }, { - "url": "https://opencollective.com/portable-ascii", - "type": "open_collective" - }, - { - "url": "https://www.patreon.com/voku", - "type": "patreon" - }, - { - "url": "https://tidelift.com/funding/github/packagist/voku/portable-ascii", + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2022-03-08T17:03:00+00:00" - } - ], - "packages-dev": [ + "time": "2022-05-24T11:49:31+00:00" + }, { - "name": "brianium/paratest", - "version": "v6.6.4", + "name": "symfony/polyfill-mbstring", + "version": "v1.26.0", "source": { "type": "git", - "url": "https://github.com/paratestphp/paratest.git", - "reference": "4ce800dc32fd0292a4f05c00f347142dce1ecdda" + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paratestphp/paratest/zipball/4ce800dc32fd0292a4f05c00f347142dce1ecdda", - "reference": "4ce800dc32fd0292a4f05c00f347142dce1ecdda", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", + "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", "shasum": "" }, "require": { - "ext-dom": "*", - "ext-pcre": "*", - "ext-reflection": "*", - "ext-simplexml": "*", - "jean85/pretty-package-versions": "^2.0.5", - "php": "^7.3 || ^8.0", - "phpunit/php-code-coverage": "^9.2.17", - "phpunit/php-file-iterator": "^3.0.6", - "phpunit/php-timer": "^5.0.3", - "phpunit/phpunit": "^9.5.24", - "sebastian/environment": "^5.1.4", - "symfony/console": "^5.4.12 || ^6.1.4", - "symfony/process": "^5.4.11 || ^6.1.3" + "php": ">=7.1" }, - "require-dev": { - "doctrine/coding-standard": "^10.0.0", - "ext-pcov": "*", - "ext-posix": "*", - "infection/infection": "^0.26.14", - "malukenho/mcbumpface": "^1.1.5", - "squizlabs/php_codesniffer": "^3.7.1", - "symfony/filesystem": "^5.4.12 || ^6.1.4", - "vimeo/psalm": "^4.27.0" + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" }, - "bin": [ - "bin/paratest", - "bin/paratest.bat", - "bin/paratest_for_phpstorm" - ], "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, "autoload": { + "files": [ + "bootstrap.php" + ], "psr-4": { - "ParaTest\\": [ - "src/" - ] + "Symfony\\Polyfill\\Mbstring\\": "" } }, "notification-url": "https://packagist.org/downloads/", @@ -1318,72 +1554,79 @@ ], "authors": [ { - "name": "Brian Scaturro", - "email": "scaturrob@gmail.com", - "role": "Developer" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" }, { - "name": "Filippo Tessarotto", - "email": "zoeslam@gmail.com", - "role": "Developer" + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" } ], - "description": "Parallel testing for PHP", - "homepage": "https://github.com/paratestphp/paratest", + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", "keywords": [ - "concurrent", - "parallel", - "phpunit", - "testing" - ], - "support": { - "issues": "https://github.com/paratestphp/paratest/issues", - "source": "https://github.com/paratestphp/paratest/tree/v6.6.4" + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.26.0" }, "funding": [ { - "url": "https://github.com/sponsors/Slamdunk", + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", "type": "github" }, { - "url": "https://paypal.me/filippotessarotto", - "type": "paypal" + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" } ], - "time": "2022-09-13T10:47:01+00:00" + "time": "2022-05-24T11:49:31+00:00" }, { - "name": "composer/pcre", - "version": "3.0.0", + "name": "symfony/polyfill-php80", + "version": "v1.26.0", "source": { "type": "git", - "url": "https://github.com/composer/pcre.git", - "reference": "e300eb6c535192decd27a85bc72a9290f0d6b3bd" + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/e300eb6c535192decd27a85bc72a9290f0d6b3bd", - "reference": "e300eb6c535192decd27a85bc72a9290f0d6b3bd", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/cfa0ae98841b9e461207c13ab093d76b0fa7bace", + "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace", "shasum": "" }, "require": { - "php": "^7.4 || ^8.0" - }, - "require-dev": { - "phpstan/phpstan": "^1.3", - "phpstan/phpstan-strict-rules": "^1.1", - "symfony/phpunit-bridge": "^5" + "php": ">=7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.x-dev" + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { + "files": [ + "bootstrap.php" + ], "psr-4": { - "Composer\\Pcre\\": "src" - } + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1391,69 +1634,86 @@ ], "authors": [ { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "http://seld.be" + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" } ], - "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", "keywords": [ - "PCRE", - "preg", - "regex", - "regular expression" + "compatibility", + "polyfill", + "portable", + "shim" ], "support": { - "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.0.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.26.0" }, "funding": [ { - "url": "https://packagist.com", + "url": "https://symfony.com/sponsor", "type": "custom" }, { - "url": "https://github.com/composer", + "url": "https://github.com/fabpot", "type": "github" }, { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2022-02-25T20:21:48+00:00" + "time": "2022-05-10T07:21:04+00:00" }, { - "name": "composer/semver", - "version": "3.3.2", + "name": "symfony/service-contracts", + "version": "v3.1.1", "source": { "type": "git", - "url": "https://github.com/composer/semver.git", - "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9" + "url": "https://github.com/symfony/service-contracts.git", + "reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/3953f23262f2bff1919fc82183ad9acb13ff62c9", - "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/925e713fe8fcacf6bc05e936edd8dd5441a21239", + "reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239", "shasum": "" }, "require": { - "php": "^5.3.2 || ^7.0 || ^8.0" + "php": ">=8.1", + "psr/container": "^2.0" }, - "require-dev": { - "phpstan/phpstan": "^1.4", - "symfony/phpunit-bridge": "^4.2 || ^5" + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "suggest": { + "symfony/service-implementation": "" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.x-dev" + "dev-main": "3.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" } }, "autoload": { "psr-4": { - "Composer\\Semver\\": "src" - } + "Symfony\\Contracts\\Service\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1461,78 +1721,84 @@ ], "authors": [ { - "name": "Nils Adermann", - "email": "naderman@naderman.de", - "homepage": "http://www.naderman.de" - }, - { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "http://seld.be" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" }, { - "name": "Rob Bast", - "email": "rob.bast@gmail.com", - "homepage": "http://robbast.nl" + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" } ], - "description": "Semver library that offers utilities, version constraint parsing and validation.", + "description": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", "keywords": [ - "semantic", - "semver", - "validation", - "versioning" + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" ], "support": { - "irc": "irc://irc.freenode.org/composer", - "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.3.2" + "source": "https://github.com/symfony/service-contracts/tree/v3.1.1" }, "funding": [ { - "url": "https://packagist.com", + "url": "https://symfony.com/sponsor", "type": "custom" }, { - "url": "https://github.com/composer", + "url": "https://github.com/fabpot", "type": "github" }, { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2022-04-01T19:23:25+00:00" + "time": "2022-05-30T19:18:58+00:00" }, { - "name": "composer/xdebug-handler", - "version": "3.0.3", + "name": "symfony/string", + "version": "v6.1.4", "source": { "type": "git", - "url": "https://github.com/composer/xdebug-handler.git", - "reference": "ced299686f41dce890debac69273b47ffe98a40c" + "url": "https://github.com/symfony/string.git", + "reference": "290972cad7b364e3befaa74ba0ec729800fb161c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/ced299686f41dce890debac69273b47ffe98a40c", - "reference": "ced299686f41dce890debac69273b47ffe98a40c", + "url": "https://api.github.com/repos/symfony/string/zipball/290972cad7b364e3befaa74ba0ec729800fb161c", + "reference": "290972cad7b364e3befaa74ba0ec729800fb161c", "shasum": "" }, "require": { - "composer/pcre": "^1 || ^2 || ^3", - "php": "^7.2.5 || ^8.0", - "psr/log": "^1 || ^2 || ^3" + "php": ">=8.1", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/translation-contracts": "<2.0" }, "require-dev": { - "phpstan/phpstan": "^1.0", - "phpstan/phpstan-strict-rules": "^1.1", - "symfony/phpunit-bridge": "^6.0" + "symfony/error-handler": "^5.4|^6.0", + "symfony/http-client": "^5.4|^6.0", + "symfony/translation-contracts": "^2.0|^3.0", + "symfony/var-exporter": "^5.4|^6.0" }, "type": "library", "autoload": { + "files": [ + "Resources/functions.php" + ], "psr-4": { - "Composer\\XdebugHandler\\": "src" - } + "Symfony\\Component\\String\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1540,69 +1806,103 @@ ], "authors": [ { - "name": "John Stevenson", - "email": "john-stevenson@blueyonder.co.uk" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" } ], - "description": "Restarts a process without Xdebug.", + "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", + "homepage": "https://symfony.com", "keywords": [ - "Xdebug", - "performance" + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" ], "support": { - "irc": "irc://irc.freenode.org/composer", - "issues": "https://github.com/composer/xdebug-handler/issues", - "source": "https://github.com/composer/xdebug-handler/tree/3.0.3" + "source": "https://github.com/symfony/string/tree/v6.1.4" }, "funding": [ { - "url": "https://packagist.com", + "url": "https://symfony.com/sponsor", "type": "custom" }, { - "url": "https://github.com/composer", + "url": "https://github.com/fabpot", "type": "github" }, { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2022-02-25T21:32:43+00:00" + "time": "2022-08-12T18:05:43+00:00" }, { - "name": "doctrine/annotations", - "version": "1.13.3", + "name": "symfony/translation", + "version": "v6.1.4", "source": { "type": "git", - "url": "https://github.com/doctrine/annotations.git", - "reference": "648b0343343565c4a056bfc8392201385e8d89f0" + "url": "https://github.com/symfony/translation.git", + "reference": "45d0f5bb8df7255651ca91c122fab604e776af03" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/648b0343343565c4a056bfc8392201385e8d89f0", - "reference": "648b0343343565c4a056bfc8392201385e8d89f0", + "url": "https://api.github.com/repos/symfony/translation/zipball/45d0f5bb8df7255651ca91c122fab604e776af03", + "reference": "45d0f5bb8df7255651ca91c122fab604e776af03", "shasum": "" }, "require": { - "doctrine/lexer": "1.*", - "ext-tokenizer": "*", - "php": "^7.1 || ^8.0", - "psr/cache": "^1 || ^2 || ^3" - }, + "php": ">=8.1", + "symfony/polyfill-mbstring": "~1.0", + "symfony/translation-contracts": "^2.3|^3.0" + }, + "conflict": { + "symfony/config": "<5.4", + "symfony/console": "<5.4", + "symfony/dependency-injection": "<5.4", + "symfony/http-kernel": "<5.4", + "symfony/twig-bundle": "<5.4", + "symfony/yaml": "<5.4" + }, + "provide": { + "symfony/translation-implementation": "2.3|3.0" + }, "require-dev": { - "doctrine/cache": "^1.11 || ^2.0", - "doctrine/coding-standard": "^6.0 || ^8.1", - "phpstan/phpstan": "^1.4.10 || ^1.8.0", - "phpunit/phpunit": "^7.5 || ^8.0 || ^9.1.5", - "symfony/cache": "^4.4 || ^5.2", - "vimeo/psalm": "^4.10" + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/console": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/finder": "^5.4|^6.0", + "symfony/http-client-contracts": "^1.1|^2.0|^3.0", + "symfony/http-kernel": "^5.4|^6.0", + "symfony/intl": "^5.4|^6.0", + "symfony/polyfill-intl-icu": "^1.21", + "symfony/routing": "^5.4|^6.0", + "symfony/service-contracts": "^1.1.2|^2|^3", + "symfony/yaml": "^5.4|^6.0" + }, + "suggest": { + "psr/log-implementation": "To use logging capability in translator", + "symfony/config": "", + "symfony/yaml": "" }, "type": "library", "autoload": { + "files": [ + "Resources/functions.php" + ], "psr-4": { - "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" - } + "Symfony\\Component\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1610,71 +1910,72 @@ ], "authors": [ { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" + "name": "Fabien Potencier", + "email": "fabien@symfony.com" }, { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to internationalize your application", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/translation/tree/v6.1.4" + }, + "funding": [ { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" + "url": "https://symfony.com/sponsor", + "type": "custom" }, { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com" + "url": "https://github.com/fabpot", + "type": "github" }, { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" } ], - "description": "Docblock Annotations Parser", - "homepage": "https://www.doctrine-project.org/projects/annotations.html", - "keywords": [ - "annotations", - "docblock", - "parser" - ], - "support": { - "issues": "https://github.com/doctrine/annotations/issues", - "source": "https://github.com/doctrine/annotations/tree/1.13.3" - }, - "time": "2022-07-02T10:48:51+00:00" + "time": "2022-08-02T16:17:38+00:00" }, { - "name": "doctrine/instantiator", - "version": "1.4.1", + "name": "symfony/translation-contracts", + "version": "v3.1.1", "source": { "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" + "url": "https://github.com/symfony/translation-contracts.git", + "reference": "606be0f48e05116baef052f7f3abdb345c8e02cc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", - "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/606be0f48e05116baef052f7f3abdb345c8e02cc", + "reference": "606be0f48e05116baef052f7f3abdb345c8e02cc", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": ">=8.1" }, - "require-dev": { - "doctrine/coding-standard": "^9", - "ext-pdo": "*", - "ext-phar": "*", - "phpbench/phpbench": "^0.16 || ^1", - "phpstan/phpstan": "^1.4", - "phpstan/phpstan-phpunit": "^1", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.22" + "suggest": { + "symfony/translation-implementation": "" }, "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, "autoload": { "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" - } + "Symfony\\Contracts\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1682,64 +1983,70 @@ ], "authors": [ { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "https://ocramius.github.io/" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" } ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "description": "Generic abstractions related to translation", + "homepage": "https://symfony.com", "keywords": [ - "constructor", - "instantiate" + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" ], "support": { - "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.4.1" + "source": "https://github.com/symfony/translation-contracts/tree/v3.1.1" }, "funding": [ { - "url": "https://www.doctrine-project.org/sponsorship.html", + "url": "https://symfony.com/sponsor", "type": "custom" }, { - "url": "https://www.patreon.com/phpdoctrine", - "type": "patreon" + "url": "https://github.com/fabpot", + "type": "github" }, { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2022-03-03T08:28:38+00:00" + "time": "2022-06-27T17:24:16+00:00" }, { - "name": "doctrine/lexer", - "version": "1.2.3", + "name": "voku/portable-ascii", + "version": "2.0.1", "source": { "type": "git", - "url": "https://github.com/doctrine/lexer.git", - "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229" + "url": "https://github.com/voku/portable-ascii.git", + "reference": "b56450eed252f6801410d810c8e1727224ae0743" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/c268e882d4dbdd85e36e4ad69e02dc284f89d229", - "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229", + "url": "https://api.github.com/repos/voku/portable-ascii/zipball/b56450eed252f6801410d810c8e1727224ae0743", + "reference": "b56450eed252f6801410d810c8e1727224ae0743", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": ">=7.0.0" }, "require-dev": { - "doctrine/coding-standard": "^9.0", - "phpstan/phpstan": "^1.3", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.11" + "phpunit/phpunit": "~6.0 || ~7.0 || ~9.0" + }, + "suggest": { + "ext-intl": "Use Intl for transliterator_transliterate() support" }, "type": "library", "autoload": { "psr-4": { - "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer" + "voku\\": "src/voku/" } }, "notification-url": "https://packagist.org/downloads/", @@ -1748,83 +2055,97 @@ ], "authors": [ { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" + "name": "Lars Moelleken", + "homepage": "http://www.moelleken.org/" } ], - "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.", - "homepage": "https://www.doctrine-project.org/projects/lexer.html", + "description": "Portable ASCII library - performance optimized (ascii) string functions for php.", + "homepage": "https://github.com/voku/portable-ascii", "keywords": [ - "annotations", - "docblock", - "lexer", - "parser", + "ascii", + "clean", "php" ], "support": { - "issues": "https://github.com/doctrine/lexer/issues", - "source": "https://github.com/doctrine/lexer/tree/1.2.3" + "issues": "https://github.com/voku/portable-ascii/issues", + "source": "https://github.com/voku/portable-ascii/tree/2.0.1" }, "funding": [ { - "url": "https://www.doctrine-project.org/sponsorship.html", + "url": "https://www.paypal.me/moelleken", "type": "custom" }, { - "url": "https://www.patreon.com/phpdoctrine", + "url": "https://github.com/voku", + "type": "github" + }, + { + "url": "https://opencollective.com/portable-ascii", + "type": "open_collective" + }, + { + "url": "https://www.patreon.com/voku", "type": "patreon" }, { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", + "url": "https://tidelift.com/funding/github/packagist/voku/portable-ascii", "type": "tidelift" } ], - "time": "2022-02-28T11:07:21+00:00" - }, + "time": "2022-03-08T17:03:00+00:00" + } + ], + "packages-dev": [ { - "name": "filp/whoops", - "version": "2.14.5", + "name": "brianium/paratest", + "version": "v6.6.4", "source": { "type": "git", - "url": "https://github.com/filp/whoops.git", - "reference": "a63e5e8f26ebbebf8ed3c5c691637325512eb0dc" + "url": "https://github.com/paratestphp/paratest.git", + "reference": "4ce800dc32fd0292a4f05c00f347142dce1ecdda" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/a63e5e8f26ebbebf8ed3c5c691637325512eb0dc", - "reference": "a63e5e8f26ebbebf8ed3c5c691637325512eb0dc", + "url": "https://api.github.com/repos/paratestphp/paratest/zipball/4ce800dc32fd0292a4f05c00f347142dce1ecdda", + "reference": "4ce800dc32fd0292a4f05c00f347142dce1ecdda", "shasum": "" }, "require": { - "php": "^5.5.9 || ^7.0 || ^8.0", - "psr/log": "^1.0.1 || ^2.0 || ^3.0" - }, - "require-dev": { - "mockery/mockery": "^0.9 || ^1.0", - "phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.3", - "symfony/var-dumper": "^2.6 || ^3.0 || ^4.0 || ^5.0" - }, - "suggest": { - "symfony/var-dumper": "Pretty print complex values better with var-dumper available", - "whoops/soap": "Formats errors as SOAP responses" + "ext-dom": "*", + "ext-pcre": "*", + "ext-reflection": "*", + "ext-simplexml": "*", + "jean85/pretty-package-versions": "^2.0.5", + "php": "^7.3 || ^8.0", + "phpunit/php-code-coverage": "^9.2.17", + "phpunit/php-file-iterator": "^3.0.6", + "phpunit/php-timer": "^5.0.3", + "phpunit/phpunit": "^9.5.24", + "sebastian/environment": "^5.1.4", + "symfony/console": "^5.4.12 || ^6.1.4", + "symfony/process": "^5.4.11 || ^6.1.3" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } + "require-dev": { + "doctrine/coding-standard": "^10.0.0", + "ext-pcov": "*", + "ext-posix": "*", + "infection/infection": "^0.26.14", + "malukenho/mcbumpface": "^1.1.5", + "squizlabs/php_codesniffer": "^3.7.1", + "symfony/filesystem": "^5.4.12 || ^6.1.4", + "vimeo/psalm": "^4.27.0" }, + "bin": [ + "bin/paratest", + "bin/paratest.bat", + "bin/paratest_for_phpstorm" + ], + "type": "library", "autoload": { "psr-4": { - "Whoops\\": "src/Whoops/" + "ParaTest\\": [ + "src/" + ] } }, "notification-url": "https://packagist.org/downloads/", @@ -1833,93 +2154,71 @@ ], "authors": [ { - "name": "Filipe Dobreira", - "homepage": "https://github.com/filp", + "name": "Brian Scaturro", + "email": "scaturrob@gmail.com", + "role": "Developer" + }, + { + "name": "Filippo Tessarotto", + "email": "zoeslam@gmail.com", "role": "Developer" } ], - "description": "php error handling for cool kids", - "homepage": "https://filp.github.io/whoops/", + "description": "Parallel testing for PHP", + "homepage": "https://github.com/paratestphp/paratest", "keywords": [ - "error", - "exception", - "handling", - "library", - "throwable", - "whoops" + "concurrent", + "parallel", + "phpunit", + "testing" ], "support": { - "issues": "https://github.com/filp/whoops/issues", - "source": "https://github.com/filp/whoops/tree/2.14.5" + "issues": "https://github.com/paratestphp/paratest/issues", + "source": "https://github.com/paratestphp/paratest/tree/v6.6.4" }, "funding": [ { - "url": "https://github.com/denis-sokolov", + "url": "https://github.com/sponsors/Slamdunk", "type": "github" + }, + { + "url": "https://paypal.me/filippotessarotto", + "type": "paypal" } ], - "time": "2022-01-07T12:00:00+00:00" + "time": "2022-09-13T10:47:01+00:00" }, { - "name": "friendsofphp/php-cs-fixer", - "version": "v3.11.0", + "name": "composer/pcre", + "version": "3.0.0", "source": { "type": "git", - "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", - "reference": "7dcdea3f2f5f473464e835be9be55283ff8cfdc3" + "url": "https://github.com/composer/pcre.git", + "reference": "e300eb6c535192decd27a85bc72a9290f0d6b3bd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/7dcdea3f2f5f473464e835be9be55283ff8cfdc3", - "reference": "7dcdea3f2f5f473464e835be9be55283ff8cfdc3", + "url": "https://api.github.com/repos/composer/pcre/zipball/e300eb6c535192decd27a85bc72a9290f0d6b3bd", + "reference": "e300eb6c535192decd27a85bc72a9290f0d6b3bd", "shasum": "" }, "require": { - "composer/semver": "^3.2", - "composer/xdebug-handler": "^3.0.3", - "doctrine/annotations": "^1.13", - "ext-json": "*", - "ext-tokenizer": "*", - "php": "^7.4 || ^8.0", - "sebastian/diff": "^4.0", - "symfony/console": "^5.4 || ^6.0", - "symfony/event-dispatcher": "^5.4 || ^6.0", - "symfony/filesystem": "^5.4 || ^6.0", - "symfony/finder": "^5.4 || ^6.0", - "symfony/options-resolver": "^5.4 || ^6.0", - "symfony/polyfill-mbstring": "^1.23", - "symfony/polyfill-php80": "^1.25", - "symfony/polyfill-php81": "^1.25", - "symfony/process": "^5.4 || ^6.0", - "symfony/stopwatch": "^5.4 || ^6.0" + "php": "^7.4 || ^8.0" }, "require-dev": { - "justinrainbow/json-schema": "^5.2", - "keradus/cli-executor": "^1.5", - "mikey179/vfsstream": "^1.6.10", - "php-coveralls/php-coveralls": "^2.5.2", - "php-cs-fixer/accessible-object": "^1.1", - "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2", - "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1", - "phpspec/prophecy": "^1.15", - "phpspec/prophecy-phpunit": "^2.0", - "phpunit/phpunit": "^9.5", - "phpunitgoodpractices/polyfill": "^1.5", - "phpunitgoodpractices/traits": "^1.9.1", - "symfony/phpunit-bridge": "^6.0", - "symfony/yaml": "^5.4 || ^6.0" + "phpstan/phpstan": "^1.3", + "phpstan/phpstan-strict-rules": "^1.1", + "symfony/phpunit-bridge": "^5" }, - "suggest": { - "ext-dom": "For handling output formats in XML", - "ext-mbstring": "For handling non-UTF8 characters." + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } }, - "bin": [ - "php-cs-fixer" - ], - "type": "application", "autoload": { "psr-4": { - "PhpCsFixer\\": "src/" + "Composer\\Pcre\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -1928,61 +2227,68 @@ ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Dariusz Rumiński", - "email": "dariusz.ruminski@gmail.com" + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" } ], - "description": "A tool to automatically fix PHP code style", + "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "keywords": [ + "PCRE", + "preg", + "regex", + "regular expression" + ], "support": { - "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues", - "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.11.0" + "issues": "https://github.com/composer/pcre/issues", + "source": "https://github.com/composer/pcre/tree/3.0.0" }, "funding": [ { - "url": "https://github.com/keradus", + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" } ], - "time": "2022-09-01T18:24:51+00:00" + "time": "2022-02-25T20:21:48+00:00" }, { - "name": "jean85/pretty-package-versions", - "version": "2.0.5", + "name": "composer/semver", + "version": "3.3.2", "source": { "type": "git", - "url": "https://github.com/Jean85/pretty-package-versions.git", - "reference": "ae547e455a3d8babd07b96966b17d7fd21d9c6af" + "url": "https://github.com/composer/semver.git", + "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/ae547e455a3d8babd07b96966b17d7fd21d9c6af", - "reference": "ae547e455a3d8babd07b96966b17d7fd21d9c6af", + "url": "https://api.github.com/repos/composer/semver/zipball/3953f23262f2bff1919fc82183ad9acb13ff62c9", + "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9", "shasum": "" }, "require": { - "composer-runtime-api": "^2.0.0", - "php": "^7.1|^8.0" + "php": "^5.3.2 || ^7.0 || ^8.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.17", - "jean85/composer-provided-replaced-stub-package": "^1.0", - "phpstan/phpstan": "^0.12.66", - "phpunit/phpunit": "^7.5|^8.5|^9.4", - "vimeo/psalm": "^4.3" + "phpstan/phpstan": "^1.4", + "symfony/phpunit-bridge": "^4.2 || ^5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.x-dev" + "dev-main": "3.x-dev" } }, "autoload": { "psr-4": { - "Jean85\\": "src/" + "Composer\\Semver\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -1991,125 +2297,147 @@ ], "authors": [ { - "name": "Alessandro Lai", - "email": "alessandro.lai85@gmail.com" + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + }, + { + "name": "Rob Bast", + "email": "rob.bast@gmail.com", + "homepage": "http://robbast.nl" } ], - "description": "A library to get pretty versions strings of installed dependencies", + "description": "Semver library that offers utilities, version constraint parsing and validation.", "keywords": [ - "composer", - "package", - "release", - "versions" + "semantic", + "semver", + "validation", + "versioning" ], "support": { - "issues": "https://github.com/Jean85/pretty-package-versions/issues", - "source": "https://github.com/Jean85/pretty-package-versions/tree/2.0.5" + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/semver/issues", + "source": "https://github.com/composer/semver/tree/3.3.2" }, - "time": "2021-10-08T21:21:46+00:00" + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2022-04-01T19:23:25+00:00" }, { - "name": "myclabs/deep-copy", - "version": "1.11.0", + "name": "composer/xdebug-handler", + "version": "3.0.3", "source": { "type": "git", - "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" + "url": "https://github.com/composer/xdebug-handler.git", + "reference": "ced299686f41dce890debac69273b47ffe98a40c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/ced299686f41dce890debac69273b47ffe98a40c", + "reference": "ced299686f41dce890debac69273b47ffe98a40c", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" - }, - "conflict": { - "doctrine/collections": "<1.6.8", - "doctrine/common": "<2.13.3 || >=3,<3.2.2" + "composer/pcre": "^1 || ^2 || ^3", + "php": "^7.2.5 || ^8.0", + "psr/log": "^1 || ^2 || ^3" }, "require-dev": { - "doctrine/collections": "^1.6.8", - "doctrine/common": "^2.13.3 || ^3.2.2", - "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-strict-rules": "^1.1", + "symfony/phpunit-bridge": "^6.0" }, "type": "library", "autoload": { - "files": [ - "src/DeepCopy/deep_copy.php" - ], "psr-4": { - "DeepCopy\\": "src/DeepCopy/" + "Composer\\XdebugHandler\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "description": "Create deep copies (clones) of your objects", + "authors": [ + { + "name": "John Stevenson", + "email": "john-stevenson@blueyonder.co.uk" + } + ], + "description": "Restarts a process without Xdebug.", "keywords": [ - "clone", - "copy", - "duplicate", - "object", - "object graph" + "Xdebug", + "performance" ], "support": { - "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/xdebug-handler/issues", + "source": "https://github.com/composer/xdebug-handler/tree/3.0.3" }, "funding": [ { - "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", "type": "tidelift" } ], - "time": "2022-03-03T13:19:32+00:00" + "time": "2022-02-25T21:32:43+00:00" }, { - "name": "nunomaduro/collision", - "version": "v6.3.1", + "name": "doctrine/annotations", + "version": "1.13.3", "source": { "type": "git", - "url": "https://github.com/nunomaduro/collision.git", - "reference": "0f6349c3ed5dd28467087b08fb59384bb458a22b" + "url": "https://github.com/doctrine/annotations.git", + "reference": "648b0343343565c4a056bfc8392201385e8d89f0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/collision/zipball/0f6349c3ed5dd28467087b08fb59384bb458a22b", - "reference": "0f6349c3ed5dd28467087b08fb59384bb458a22b", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/648b0343343565c4a056bfc8392201385e8d89f0", + "reference": "648b0343343565c4a056bfc8392201385e8d89f0", "shasum": "" }, "require": { - "filp/whoops": "^2.14.5", - "php": "^8.0.0", - "symfony/console": "^6.0.2" + "doctrine/lexer": "1.*", + "ext-tokenizer": "*", + "php": "^7.1 || ^8.0", + "psr/cache": "^1 || ^2 || ^3" }, "require-dev": { - "brianium/paratest": "^6.4.1", - "laravel/framework": "^9.26.1", - "laravel/pint": "^1.1.1", - "nunomaduro/larastan": "^1.0.3", - "nunomaduro/mock-final-classes": "^1.1.0", - "orchestra/testbench": "^7.7", - "phpunit/phpunit": "^9.5.23", - "spatie/ignition": "^1.4.1" + "doctrine/cache": "^1.11 || ^2.0", + "doctrine/coding-standard": "^6.0 || ^8.1", + "phpstan/phpstan": "^1.4.10 || ^1.8.0", + "phpunit/phpunit": "^7.5 || ^8.0 || ^9.1.5", + "symfony/cache": "^4.4 || ^5.2", + "vimeo/psalm": "^4.10" }, "type": "library", - "extra": { - "branch-alias": { - "dev-develop": "6.x-dev" - }, - "laravel": { - "providers": [ - "NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider" - ] - } - }, "autoload": { "psr-4": { - "NunoMaduro\\Collision\\": "src/" + "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" } }, "notification-url": "https://packagist.org/downloads/", @@ -2118,99 +2446,70 @@ ], "authors": [ { - "name": "Nuno Maduro", - "email": "enunomaduro@gmail.com" - } - ], - "description": "Cli error handling for console/command-line PHP applications.", - "keywords": [ - "artisan", - "cli", - "command-line", - "console", - "error", - "handling", - "laravel", - "laravel-zero", - "php", - "symfony" - ], - "support": { - "issues": "https://github.com/nunomaduro/collision/issues", - "source": "https://github.com/nunomaduro/collision" - }, - "funding": [ + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, { - "url": "https://www.paypal.com/paypalme/enunomaduro", - "type": "custom" + "name": "Roman Borschel", + "email": "roman@code-factory.org" }, { - "url": "https://github.com/nunomaduro", - "type": "github" + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" }, { - "url": "https://www.patreon.com/nunomaduro", - "type": "patreon" + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" } ], - "time": "2022-09-29T12:29:49+00:00" + "description": "Docblock Annotations Parser", + "homepage": "https://www.doctrine-project.org/projects/annotations.html", + "keywords": [ + "annotations", + "docblock", + "parser" + ], + "support": { + "issues": "https://github.com/doctrine/annotations/issues", + "source": "https://github.com/doctrine/annotations/tree/1.13.3" + }, + "time": "2022-07-02T10:48:51+00:00" }, { - "name": "pestphp/pest", - "version": "v1.22.1", + "name": "doctrine/instantiator", + "version": "1.4.1", "source": { "type": "git", - "url": "https://github.com/pestphp/pest.git", - "reference": "af6240b4eed8b049ac43c91184141ee337305df7" + "url": "https://github.com/doctrine/instantiator.git", + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest/zipball/af6240b4eed8b049ac43c91184141ee337305df7", - "reference": "af6240b4eed8b049ac43c91184141ee337305df7", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", "shasum": "" }, "require": { - "nunomaduro/collision": "^5.10.0|^6.0", - "pestphp/pest-plugin": "^1.0.0", - "php": "^7.3 || ^8.0", - "phpunit/phpunit": "^9.5.5" + "php": "^7.1 || ^8.0" }, "require-dev": { - "illuminate/console": "^8.47.0", - "illuminate/support": "^8.47.0", - "laravel/dusk": "^6.15.0", - "pestphp/pest-dev-tools": "dev-master", - "pestphp/pest-plugin-parallel": "^1.0" + "doctrine/coding-standard": "^9", + "ext-pdo": "*", + "ext-phar": "*", + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.22" }, - "bin": [ - "bin/pest" - ], "type": "library", - "extra": { - "branch-alias": { - "dev-1.x": "1.x-dev" - }, - "pest": { - "plugins": [ - "Pest\\Plugins\\Coverage", - "Pest\\Plugins\\Init", - "Pest\\Plugins\\Version", - "Pest\\Plugins\\Environment" - ] - }, - "laravel": { - "providers": [ - "Pest\\Laravel\\PestServiceProvider" - ] - } - }, "autoload": { - "files": [ - "src/Functions.php", - "src/Pest.php" - ], "psr-4": { - "Pest\\": "src/" + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" } }, "notification-url": "https://packagist.org/downloads/", @@ -2219,752 +2518,796 @@ ], "authors": [ { - "name": "Nuno Maduro", - "email": "enunomaduro@gmail.com" + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "https://ocramius.github.io/" } ], - "description": "An elegant PHP Testing Framework.", + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", "keywords": [ - "framework", - "pest", - "php", - "test", - "testing", - "unit" + "constructor", + "instantiate" ], "support": { - "issues": "https://github.com/pestphp/pest/issues", - "source": "https://github.com/pestphp/pest/tree/v1.22.1" + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/1.4.1" }, "funding": [ { - "url": "https://www.paypal.com/paypalme/enunomaduro", + "url": "https://www.doctrine-project.org/sponsorship.html", "type": "custom" }, { - "url": "https://github.com/lukeraymonddowning", - "type": "github" - }, - { - "url": "https://github.com/nunomaduro", - "type": "github" - }, - { - "url": "https://github.com/octoper", - "type": "github" - }, - { - "url": "https://github.com/olivernybroe", - "type": "github" - }, - { - "url": "https://github.com/owenvoke", - "type": "github" + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" }, { - "url": "https://www.patreon.com/nunomaduro", - "type": "patreon" + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" } ], - "time": "2022-08-29T10:42:13+00:00" + "time": "2022-03-03T08:28:38+00:00" }, { - "name": "pestphp/pest-plugin", - "version": "v1.1.0", + "name": "doctrine/lexer", + "version": "1.2.3", "source": { "type": "git", - "url": "https://github.com/pestphp/pest-plugin.git", - "reference": "606c5f79c6a339b49838ffbee0151ca519efe378" + "url": "https://github.com/doctrine/lexer.git", + "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest-plugin/zipball/606c5f79c6a339b49838ffbee0151ca519efe378", - "reference": "606c5f79c6a339b49838ffbee0151ca519efe378", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/c268e882d4dbdd85e36e4ad69e02dc284f89d229", + "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229", "shasum": "" }, "require": { - "composer-plugin-api": "^1.1.0 || ^2.0.0", - "php": "^7.3 || ^8.0" - }, - "conflict": { - "pestphp/pest": "<1.0" + "php": "^7.1 || ^8.0" }, "require-dev": { - "composer/composer": "^2.4.2", - "pestphp/pest": "^1.22.1", - "pestphp/pest-dev-tools": "^1.0.0" - }, - "type": "composer-plugin", - "extra": { - "branch-alias": { - "dev-master": "1.x-dev" - }, - "class": "Pest\\Plugin\\Manager" + "doctrine/coding-standard": "^9.0", + "phpstan/phpstan": "^1.3", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.11" }, + "type": "library", "autoload": { "psr-4": { - "Pest\\Plugin\\": "src/" + "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "description": "The Pest plugin manager", + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.", + "homepage": "https://www.doctrine-project.org/projects/lexer.html", "keywords": [ - "framework", - "manager", - "pest", - "php", - "plugin", - "test", - "testing", - "unit" + "annotations", + "docblock", + "lexer", + "parser", + "php" ], "support": { - "source": "https://github.com/pestphp/pest-plugin/tree/v1.1.0" + "issues": "https://github.com/doctrine/lexer/issues", + "source": "https://github.com/doctrine/lexer/tree/1.2.3" }, "funding": [ { - "url": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L", + "url": "https://www.doctrine-project.org/sponsorship.html", "type": "custom" }, { - "url": "https://github.com/nunomaduro", - "type": "github" + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" }, { - "url": "https://www.patreon.com/nunomaduro", - "type": "patreon" + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", + "type": "tidelift" } ], - "time": "2022-09-18T13:18:17+00:00" + "time": "2022-02-28T11:07:21+00:00" }, { - "name": "pestphp/pest-plugin-parallel", - "version": "v1.2.0", + "name": "filp/whoops", + "version": "2.14.5", "source": { "type": "git", - "url": "https://github.com/pestphp/pest-plugin-parallel.git", - "reference": "7ae93d4052d2f45c0a37ca34f5dea940fb28cf31" + "url": "https://github.com/filp/whoops.git", + "reference": "a63e5e8f26ebbebf8ed3c5c691637325512eb0dc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest-plugin-parallel/zipball/7ae93d4052d2f45c0a37ca34f5dea940fb28cf31", - "reference": "7ae93d4052d2f45c0a37ca34f5dea940fb28cf31", + "url": "https://api.github.com/repos/filp/whoops/zipball/a63e5e8f26ebbebf8ed3c5c691637325512eb0dc", + "reference": "a63e5e8f26ebbebf8ed3c5c691637325512eb0dc", "shasum": "" }, "require": { - "brianium/paratest": "^6.4.2", - "pestphp/pest-plugin": "^1.0", - "php": "^7.3 || ^8.0" - }, - "conflict": { - "laravel/framework": "<8.55", - "nunomaduro/collision": "<5.8", - "pestphp/pest": "<1.16" + "php": "^5.5.9 || ^7.0 || ^8.0", + "psr/log": "^1.0.1 || ^2.0 || ^3.0" }, "require-dev": { - "ergebnis/phpstan-rules": "^1.0.0", - "pestphp/pest": "1.x-dev", - "phpstan/phpstan": "^1.8", - "phpstan/phpstan-strict-rules": "^1.3", - "symfony/var-dumper": "^5.0 || ^6.0", - "thecodingmachine/phpstan-strict-rules": "^1.0" + "mockery/mockery": "^0.9 || ^1.0", + "phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.3", + "symfony/var-dumper": "^2.6 || ^3.0 || ^4.0 || ^5.0" + }, + "suggest": { + "symfony/var-dumper": "Pretty print complex values better with var-dumper available", + "whoops/soap": "Formats errors as SOAP responses" }, "type": "library", "extra": { - "pest": { - "plugins": [ - "Pest\\Parallel\\Plugin" - ] - }, "branch-alias": { - "dev-master": "1.x-dev" + "dev-master": "2.7-dev" } }, "autoload": { - "files": [ - "src/Autoload.php", - "build/RunnerWorker.php", - "build/BaseRunner.php" - ], "psr-4": { - "Pest\\Parallel\\": "src/" - }, - "exclude-from-classmap": [ - "ParaTest\\Runners\\PHPUnit\\Worker\\RunnerWorker", - "ParaTest\\Runners\\PHPUnit\\BaseRunner" - ] + "Whoops\\": "src/Whoops/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "description": "The Pest Parallel Plugin", + "authors": [ + { + "name": "Filipe Dobreira", + "homepage": "https://github.com/filp", + "role": "Developer" + } + ], + "description": "php error handling for cool kids", + "homepage": "https://filp.github.io/whoops/", "keywords": [ - "framework", - "parallel", - "pest", - "php", - "plugin", - "test", - "testing", - "unit" + "error", + "exception", + "handling", + "library", + "throwable", + "whoops" ], "support": { - "source": "https://github.com/pestphp/pest-plugin-parallel/tree/v1.2.0" + "issues": "https://github.com/filp/whoops/issues", + "source": "https://github.com/filp/whoops/tree/2.14.5" }, "funding": [ { - "url": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L", - "type": "custom" - }, - { - "url": "https://github.com/lukeraymonddowning", - "type": "github" - }, - { - "url": "https://github.com/nunomaduro", - "type": "github" - }, - { - "url": "https://github.com/octoper", - "type": "github" - }, - { - "url": "https://github.com/olivernybroe", - "type": "github" - }, - { - "url": "https://github.com/owenvoke", + "url": "https://github.com/denis-sokolov", "type": "github" - }, - { - "url": "https://www.patreon.com/nunomaduro", - "type": "patreon" } ], - "time": "2022-07-06T08:38:19+00:00" + "time": "2022-01-07T12:00:00+00:00" }, { - "name": "phar-io/manifest", - "version": "2.0.3", + "name": "friendsofphp/php-cs-fixer", + "version": "v3.11.0", "source": { "type": "git", - "url": "https://github.com/phar-io/manifest.git", - "reference": "97803eca37d319dfa7826cc2437fc020857acb53" + "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", + "reference": "7dcdea3f2f5f473464e835be9be55283ff8cfdc3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", - "reference": "97803eca37d319dfa7826cc2437fc020857acb53", + "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/7dcdea3f2f5f473464e835be9be55283ff8cfdc3", + "reference": "7dcdea3f2f5f473464e835be9be55283ff8cfdc3", "shasum": "" }, "require": { - "ext-dom": "*", - "ext-phar": "*", - "ext-xmlwriter": "*", - "phar-io/version": "^3.0.1", - "php": "^7.2 || ^8.0" + "composer/semver": "^3.2", + "composer/xdebug-handler": "^3.0.3", + "doctrine/annotations": "^1.13", + "ext-json": "*", + "ext-tokenizer": "*", + "php": "^7.4 || ^8.0", + "sebastian/diff": "^4.0", + "symfony/console": "^5.4 || ^6.0", + "symfony/event-dispatcher": "^5.4 || ^6.0", + "symfony/filesystem": "^5.4 || ^6.0", + "symfony/finder": "^5.4 || ^6.0", + "symfony/options-resolver": "^5.4 || ^6.0", + "symfony/polyfill-mbstring": "^1.23", + "symfony/polyfill-php80": "^1.25", + "symfony/polyfill-php81": "^1.25", + "symfony/process": "^5.4 || ^6.0", + "symfony/stopwatch": "^5.4 || ^6.0" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } + "require-dev": { + "justinrainbow/json-schema": "^5.2", + "keradus/cli-executor": "^1.5", + "mikey179/vfsstream": "^1.6.10", + "php-coveralls/php-coveralls": "^2.5.2", + "php-cs-fixer/accessible-object": "^1.1", + "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2", + "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1", + "phpspec/prophecy": "^1.15", + "phpspec/prophecy-phpunit": "^2.0", + "phpunit/phpunit": "^9.5", + "phpunitgoodpractices/polyfill": "^1.5", + "phpunitgoodpractices/traits": "^1.9.1", + "symfony/phpunit-bridge": "^6.0", + "symfony/yaml": "^5.4 || ^6.0" + }, + "suggest": { + "ext-dom": "For handling output formats in XML", + "ext-mbstring": "For handling non-UTF8 characters." }, + "bin": [ + "php-cs-fixer" + ], + "type": "application", "autoload": { - "classmap": [ - "src/" - ] + "psr-4": { + "PhpCsFixer\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], "authors": [ { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - }, - { - "name": "Sebastian Heuer", - "email": "sebastian@phpeople.de", - "role": "Developer" + "name": "Fabien Potencier", + "email": "fabien@symfony.com" }, { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "Developer" + "name": "Dariusz Rumiński", + "email": "dariusz.ruminski@gmail.com" } ], - "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "description": "A tool to automatically fix PHP code style", "support": { - "issues": "https://github.com/phar-io/manifest/issues", - "source": "https://github.com/phar-io/manifest/tree/2.0.3" - }, - "time": "2021-07-20T11:28:43+00:00" - }, - { - "name": "phar-io/version", - "version": "3.2.1", - "source": { - "type": "git", - "url": "https://github.com/phar-io/version.git", - "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", - "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] + "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues", + "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.11.0" }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - }, - { - "name": "Sebastian Heuer", - "email": "sebastian@phpeople.de", - "role": "Developer" - }, + "funding": [ { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "Developer" + "url": "https://github.com/keradus", + "type": "github" } ], - "description": "Library for handling version information and constraints", - "support": { - "issues": "https://github.com/phar-io/version/issues", - "source": "https://github.com/phar-io/version/tree/3.2.1" - }, - "time": "2022-02-21T01:04:05+00:00" + "time": "2022-09-01T18:24:51+00:00" }, { - "name": "phpstan/phpstan", - "version": "1.8.6", + "name": "jean85/pretty-package-versions", + "version": "2.0.5", "source": { "type": "git", - "url": "https://github.com/phpstan/phpstan.git", - "reference": "c386ab2741e64cc9e21729f891b28b2b10fe6618" + "url": "https://github.com/Jean85/pretty-package-versions.git", + "reference": "ae547e455a3d8babd07b96966b17d7fd21d9c6af" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/c386ab2741e64cc9e21729f891b28b2b10fe6618", - "reference": "c386ab2741e64cc9e21729f891b28b2b10fe6618", + "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/ae547e455a3d8babd07b96966b17d7fd21d9c6af", + "reference": "ae547e455a3d8babd07b96966b17d7fd21d9c6af", "shasum": "" }, "require": { - "php": "^7.2|^8.0" + "composer-runtime-api": "^2.0.0", + "php": "^7.1|^8.0" }, - "conflict": { - "phpstan/phpstan-shim": "*" + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.17", + "jean85/composer-provided-replaced-stub-package": "^1.0", + "phpstan/phpstan": "^0.12.66", + "phpunit/phpunit": "^7.5|^8.5|^9.4", + "vimeo/psalm": "^4.3" }, - "bin": [ - "phpstan", - "phpstan.phar" - ], "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, "autoload": { - "files": [ - "bootstrap.php" - ] + "psr-4": { + "Jean85\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "description": "PHPStan - PHP Static Analysis Tool", + "authors": [ + { + "name": "Alessandro Lai", + "email": "alessandro.lai85@gmail.com" + } + ], + "description": "A library to get pretty versions strings of installed dependencies", "keywords": [ - "dev", - "static analysis" + "composer", + "package", + "release", + "versions" ], "support": { - "issues": "https://github.com/phpstan/phpstan/issues", - "source": "https://github.com/phpstan/phpstan/tree/1.8.6" + "issues": "https://github.com/Jean85/pretty-package-versions/issues", + "source": "https://github.com/Jean85/pretty-package-versions/tree/2.0.5" }, - "funding": [ - { - "url": "https://github.com/ondrejmirtes", - "type": "github" - }, - { - "url": "https://github.com/phpstan", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", - "type": "tidelift" - } - ], - "time": "2022-09-23T09:54:39+00:00" + "time": "2021-10-08T21:21:46+00:00" }, { - "name": "phpunit/php-code-coverage", - "version": "9.2.17", + "name": "myclabs/deep-copy", + "version": "1.11.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "aa94dc41e8661fe90c7316849907cba3007b10d8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/aa94dc41e8661fe90c7316849907cba3007b10d8", - "reference": "aa94dc41e8661fe90c7316849907cba3007b10d8", - "shasum": "" + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" }, - "require": { - "ext-dom": "*", - "ext-libxml": "*", - "ext-xmlwriter": "*", - "nikic/php-parser": "^4.14", - "php": ">=7.3", - "phpunit/php-file-iterator": "^3.0.3", - "phpunit/php-text-template": "^2.0.2", - "sebastian/code-unit-reverse-lookup": "^2.0.2", - "sebastian/complexity": "^2.0", - "sebastian/environment": "^5.1.2", - "sebastian/lines-of-code": "^1.0.3", - "sebastian/version": "^3.0.1", - "theseer/tokenizer": "^1.2.0" + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", + "shasum": "" }, - "require-dev": { - "phpunit/phpunit": "^9.3" + "require": { + "php": "^7.1 || ^8.0" }, - "suggest": { - "ext-pcov": "*", - "ext-xdebug": "*" + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3,<3.2.2" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "9.2-dev" - } + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" }, + "type": "library", "autoload": { - "classmap": [ - "src/" - ] + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } + "MIT" ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "description": "Create deep copies (clones) of your objects", "keywords": [ - "coverage", - "testing", - "xunit" + "clone", + "copy", + "duplicate", + "object", + "object graph" ], "support": { - "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.17" + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" }, "funding": [ { - "url": "https://github.com/sebastianbergmann", - "type": "github" + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" } ], - "time": "2022-08-30T12:24:04+00:00" + "time": "2022-03-03T13:19:32+00:00" }, { - "name": "phpunit/php-file-iterator", - "version": "3.0.6", + "name": "nunomaduro/collision", + "version": "v6.3.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" + "url": "https://github.com/nunomaduro/collision.git", + "reference": "0f6349c3ed5dd28467087b08fb59384bb458a22b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", - "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/0f6349c3ed5dd28467087b08fb59384bb458a22b", + "reference": "0f6349c3ed5dd28467087b08fb59384bb458a22b", "shasum": "" }, "require": { - "php": ">=7.3" + "filp/whoops": "^2.14.5", + "php": "^8.0.0", + "symfony/console": "^6.0.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "brianium/paratest": "^6.4.1", + "laravel/framework": "^9.26.1", + "laravel/pint": "^1.1.1", + "nunomaduro/larastan": "^1.0.3", + "nunomaduro/mock-final-classes": "^1.1.0", + "orchestra/testbench": "^7.7", + "phpunit/phpunit": "^9.5.23", + "spatie/ignition": "^1.4.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-develop": "6.x-dev" + }, + "laravel": { + "providers": [ + "NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider" + ] } }, "autoload": { - "classmap": [ - "src/" - ] + "psr-4": { + "NunoMaduro\\Collision\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], "authors": [ { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" } ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "description": "Cli error handling for console/command-line PHP applications.", "keywords": [ - "filesystem", - "iterator" + "artisan", + "cli", + "command-line", + "console", + "error", + "handling", + "laravel", + "laravel-zero", + "php", + "symfony" ], "support": { - "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" + "issues": "https://github.com/nunomaduro/collision/issues", + "source": "https://github.com/nunomaduro/collision" }, "funding": [ { - "url": "https://github.com/sebastianbergmann", + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" } ], - "time": "2021-12-02T12:48:52+00:00" + "time": "2022-09-29T12:29:49+00:00" }, { - "name": "phpunit/php-invoker", - "version": "3.1.1", + "name": "pestphp/pest", + "version": "v1.22.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" + "url": "https://github.com/pestphp/pest.git", + "reference": "af6240b4eed8b049ac43c91184141ee337305df7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", - "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "url": "https://api.github.com/repos/pestphp/pest/zipball/af6240b4eed8b049ac43c91184141ee337305df7", + "reference": "af6240b4eed8b049ac43c91184141ee337305df7", "shasum": "" }, "require": { - "php": ">=7.3" + "nunomaduro/collision": "^5.10.0|^6.0", + "pestphp/pest-plugin": "^1.0.0", + "php": "^7.3 || ^8.0", + "phpunit/phpunit": "^9.5.5" }, "require-dev": { - "ext-pcntl": "*", - "phpunit/phpunit": "^9.3" - }, - "suggest": { - "ext-pcntl": "*" + "illuminate/console": "^8.47.0", + "illuminate/support": "^8.47.0", + "laravel/dusk": "^6.15.0", + "pestphp/pest-dev-tools": "dev-master", + "pestphp/pest-plugin-parallel": "^1.0" }, + "bin": [ + "bin/pest" + ], "type": "library", "extra": { "branch-alias": { - "dev-master": "3.1-dev" + "dev-1.x": "1.x-dev" + }, + "pest": { + "plugins": [ + "Pest\\Plugins\\Coverage", + "Pest\\Plugins\\Init", + "Pest\\Plugins\\Version", + "Pest\\Plugins\\Environment" + ] + }, + "laravel": { + "providers": [ + "Pest\\Laravel\\PestServiceProvider" + ] } }, "autoload": { - "classmap": [ - "src/" - ] + "files": [ + "src/Functions.php", + "src/Pest.php" + ], + "psr-4": { + "Pest\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], "authors": [ { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" } ], - "description": "Invoke callables with a timeout", - "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "description": "An elegant PHP Testing Framework.", "keywords": [ - "process" + "framework", + "pest", + "php", + "test", + "testing", + "unit" ], "support": { - "issues": "https://github.com/sebastianbergmann/php-invoker/issues", - "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" + "issues": "https://github.com/pestphp/pest/issues", + "source": "https://github.com/pestphp/pest/tree/v1.22.1" }, "funding": [ { - "url": "https://github.com/sebastianbergmann", + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/lukeraymonddowning", + "type": "github" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://github.com/octoper", + "type": "github" + }, + { + "url": "https://github.com/olivernybroe", + "type": "github" + }, + { + "url": "https://github.com/owenvoke", "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" } ], - "time": "2020-09-28T05:58:55+00:00" + "time": "2022-08-29T10:42:13+00:00" }, { - "name": "phpunit/php-text-template", - "version": "2.0.4", + "name": "pestphp/pest-plugin", + "version": "v1.1.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" + "url": "https://github.com/pestphp/pest-plugin.git", + "reference": "606c5f79c6a339b49838ffbee0151ca519efe378" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", - "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "url": "https://api.github.com/repos/pestphp/pest-plugin/zipball/606c5f79c6a339b49838ffbee0151ca519efe378", + "reference": "606c5f79c6a339b49838ffbee0151ca519efe378", "shasum": "" }, "require": { - "php": ">=7.3" + "composer-plugin-api": "^1.1.0 || ^2.0.0", + "php": "^7.3 || ^8.0" + }, + "conflict": { + "pestphp/pest": "<1.0" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "composer/composer": "^2.4.2", + "pestphp/pest": "^1.22.1", + "pestphp/pest-dev-tools": "^1.0.0" }, - "type": "library", + "type": "composer-plugin", "extra": { "branch-alias": { - "dev-master": "2.0-dev" - } + "dev-master": "1.x-dev" + }, + "class": "Pest\\Plugin\\Manager" }, "autoload": { - "classmap": [ - "src/" - ] + "psr-4": { + "Pest\\Plugin\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } + "MIT" ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "description": "The Pest plugin manager", "keywords": [ - "template" + "framework", + "manager", + "pest", + "php", + "plugin", + "test", + "testing", + "unit" ], "support": { - "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" + "source": "https://github.com/pestphp/pest-plugin/tree/v1.1.0" }, "funding": [ { - "url": "https://github.com/sebastianbergmann", + "url": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" } ], - "time": "2020-10-26T05:33:50+00:00" + "time": "2022-09-18T13:18:17+00:00" }, { - "name": "phpunit/php-timer", - "version": "5.0.3", + "name": "pestphp/pest-plugin-parallel", + "version": "v1.2.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" + "url": "https://github.com/pestphp/pest-plugin-parallel.git", + "reference": "7ae93d4052d2f45c0a37ca34f5dea940fb28cf31" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", - "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "url": "https://api.github.com/repos/pestphp/pest-plugin-parallel/zipball/7ae93d4052d2f45c0a37ca34f5dea940fb28cf31", + "reference": "7ae93d4052d2f45c0a37ca34f5dea940fb28cf31", "shasum": "" }, "require": { - "php": ">=7.3" + "brianium/paratest": "^6.4.2", + "pestphp/pest-plugin": "^1.0", + "php": "^7.3 || ^8.0" + }, + "conflict": { + "laravel/framework": "<8.55", + "nunomaduro/collision": "<5.8", + "pestphp/pest": "<1.16" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "ergebnis/phpstan-rules": "^1.0.0", + "pestphp/pest": "1.x-dev", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-strict-rules": "^1.3", + "symfony/var-dumper": "^5.0 || ^6.0", + "thecodingmachine/phpstan-strict-rules": "^1.0" }, "type": "library", "extra": { + "pest": { + "plugins": [ + "Pest\\Parallel\\Plugin" + ] + }, "branch-alias": { - "dev-master": "5.0-dev" + "dev-master": "1.x-dev" } }, "autoload": { - "classmap": [ - "src/" + "files": [ + "src/Autoload.php", + "build/RunnerWorker.php", + "build/BaseRunner.php" + ], + "psr-4": { + "Pest\\Parallel\\": "src/" + }, + "exclude-from-classmap": [ + "ParaTest\\Runners\\PHPUnit\\Worker\\RunnerWorker", + "ParaTest\\Runners\\PHPUnit\\BaseRunner" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } + "MIT" ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", + "description": "The Pest Parallel Plugin", "keywords": [ - "timer" + "framework", + "parallel", + "pest", + "php", + "plugin", + "test", + "testing", + "unit" ], "support": { - "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" + "source": "https://github.com/pestphp/pest-plugin-parallel/tree/v1.2.0" }, "funding": [ { - "url": "https://github.com/sebastianbergmann", + "url": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L", + "type": "custom" + }, + { + "url": "https://github.com/lukeraymonddowning", + "type": "github" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://github.com/octoper", + "type": "github" + }, + { + "url": "https://github.com/olivernybroe", + "type": "github" + }, + { + "url": "https://github.com/owenvoke", "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" } ], - "time": "2020-10-26T13:16:10+00:00" + "time": "2022-07-06T08:38:19+00:00" }, { - "name": "phpunit/phpcov", - "version": "8.2.1", + "name": "phar-io/manifest", + "version": "2.0.3", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/phpcov.git", - "reference": "8ec45dde34a84914a0ace355fbd6d7af2242c9a4" + "url": "https://github.com/phar-io/manifest.git", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpcov/zipball/8ec45dde34a84914a0ace355fbd6d7af2242c9a4", - "reference": "8ec45dde34a84914a0ace355fbd6d7af2242c9a4", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53", "shasum": "" }, "require": { - "php": ">=7.3", - "phpunit/php-code-coverage": "^9.2", - "phpunit/php-file-iterator": "^3.0", - "phpunit/phpunit": "^9.3", - "sebastian/cli-parser": "^1.0", - "sebastian/diff": "^4.0", - "sebastian/version": "^3.0" + "ext-dom": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" }, - "bin": [ - "phpcov" - ], "type": "library", "extra": { "branch-alias": { - "dev-master": "8.2-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -2977,86 +3320,48 @@ "BSD-3-Clause" ], "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de", - "role": "lead" + "role": "Developer" } ], - "description": "CLI frontend for php-code-coverage", - "homepage": "https://github.com/sebastianbergmann/phpcov", + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", "support": { - "issues": "https://github.com/sebastianbergmann/phpcov/issues", - "source": "https://github.com/sebastianbergmann/phpcov/tree/8.2.1" + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.3" }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2022-03-24T12:07:05+00:00" + "time": "2021-07-20T11:28:43+00:00" }, { - "name": "phpunit/phpunit", - "version": "9.5.25", + "name": "phar-io/version", + "version": "3.2.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "3e6f90ca7e3d02025b1d147bd8d4a89fd4ca8a1d" + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3e6f90ca7e3d02025b1d147bd8d4a89fd4ca8a1d", - "reference": "3e6f90ca7e3d02025b1d147bd8d4a89fd4ca8a1d", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", "shasum": "" }, - "require": { - "doctrine/instantiator": "^1.3.1", - "ext-dom": "*", - "ext-json": "*", - "ext-libxml": "*", - "ext-mbstring": "*", - "ext-xml": "*", - "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.10.1", - "phar-io/manifest": "^2.0.3", - "phar-io/version": "^3.0.2", - "php": ">=7.3", - "phpunit/php-code-coverage": "^9.2.13", - "phpunit/php-file-iterator": "^3.0.5", - "phpunit/php-invoker": "^3.1.1", - "phpunit/php-text-template": "^2.0.3", - "phpunit/php-timer": "^5.0.2", - "sebastian/cli-parser": "^1.0.1", - "sebastian/code-unit": "^1.0.6", - "sebastian/comparator": "^4.0.8", - "sebastian/diff": "^4.0.3", - "sebastian/environment": "^5.1.3", - "sebastian/exporter": "^4.0.5", - "sebastian/global-state": "^5.0.1", - "sebastian/object-enumerator": "^4.0.3", - "sebastian/resource-operations": "^3.0.3", - "sebastian/type": "^3.2", - "sebastian/version": "^3.0.2" - }, - "suggest": { - "ext-soap": "*", - "ext-xdebug": "*" + "require": { + "php": "^7.2 || ^8.0" }, - "bin": [ - "phpunit" - ], "type": "library", - "extra": { - "branch-alias": { - "dev-master": "9.5-dev" - } - }, "autoload": { - "files": [ - "src/Framework/Assert/Functions.php" - ], "classmap": [ "src/" ] @@ -3067,211 +3372,252 @@ ], "authors": [ { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "The PHP Unit Testing framework.", - "homepage": "https://phpunit.de/", - "keywords": [ - "phpunit", - "testing", - "xunit" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.25" - }, - "funding": [ - { - "url": "https://phpunit.de/sponsors.html", - "type": "custom" + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" }, { - "url": "https://github.com/sebastianbergmann", - "type": "github" + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" }, { - "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", - "type": "tidelift" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" } ], - "time": "2022-09-25T03:44:45+00:00" + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00" }, { - "name": "psr/cache", - "version": "3.0.0", + "name": "phpstan/phpstan", + "version": "1.8.6", "source": { "type": "git", - "url": "https://github.com/php-fig/cache.git", - "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" + "url": "https://github.com/phpstan/phpstan.git", + "reference": "c386ab2741e64cc9e21729f891b28b2b10fe6618" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", - "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/c386ab2741e64cc9e21729f891b28b2b10fe6618", + "reference": "c386ab2741e64cc9e21729f891b28b2b10fe6618", "shasum": "" }, "require": { - "php": ">=8.0.0" + "php": "^7.2|^8.0" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } + "conflict": { + "phpstan/phpstan-shim": "*" }, + "bin": [ + "phpstan", + "phpstan.phar" + ], + "type": "library", "autoload": { - "psr-4": { - "Psr\\Cache\\": "src/" - } + "files": [ + "bootstrap.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interface for caching libraries", + "description": "PHPStan - PHP Static Analysis Tool", "keywords": [ - "cache", - "psr", - "psr-6" + "dev", + "static analysis" ], "support": { - "source": "https://github.com/php-fig/cache/tree/3.0.0" + "issues": "https://github.com/phpstan/phpstan/issues", + "source": "https://github.com/phpstan/phpstan/tree/1.8.6" }, - "time": "2021-02-03T23:26:27+00:00" + "funding": [ + { + "url": "https://github.com/ondrejmirtes", + "type": "github" + }, + { + "url": "https://github.com/phpstan", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", + "type": "tidelift" + } + ], + "time": "2022-09-23T09:54:39+00:00" }, { - "name": "psr/event-dispatcher", - "version": "1.0.0", + "name": "phpunit/php-code-coverage", + "version": "9.2.17", "source": { "type": "git", - "url": "https://github.com/php-fig/event-dispatcher.git", - "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "aa94dc41e8661fe90c7316849907cba3007b10d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", - "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/aa94dc41e8661fe90c7316849907cba3007b10d8", + "reference": "aa94dc41e8661fe90c7316849907cba3007b10d8", "shasum": "" }, "require": { - "php": ">=7.2.0" + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^4.14", + "php": ">=7.3", + "phpunit/php-file-iterator": "^3.0.3", + "phpunit/php-text-template": "^2.0.2", + "sebastian/code-unit-reverse-lookup": "^2.0.2", + "sebastian/complexity": "^2.0", + "sebastian/environment": "^5.1.2", + "sebastian/lines-of-code": "^1.0.3", + "sebastian/version": "^3.0.1", + "theseer/tokenizer": "^1.2.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-pcov": "*", + "ext-xdebug": "*" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "9.2-dev" } }, "autoload": { - "psr-4": { - "Psr\\EventDispatcher\\": "src/" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Standard interfaces for event handling.", + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", "keywords": [ - "events", - "psr", - "psr-14" + "coverage", + "testing", + "xunit" ], "support": { - "issues": "https://github.com/php-fig/event-dispatcher/issues", - "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.17" }, - "time": "2019-01-08T18:20:26+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-08-30T12:24:04+00:00" }, { - "name": "psr/log", - "version": "3.0.0", + "name": "phpunit/php-file-iterator", + "version": "3.0.6", "source": { "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", - "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", "shasum": "" }, "require": { - "php": ">=8.0.0" + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.x-dev" + "dev-master": "3.0-dev" } }, "autoload": { - "psr-4": { - "Psr\\Log\\": "src" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Common interface for logging libraries", - "homepage": "https://github.com/php-fig/log", + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", "keywords": [ - "log", - "psr", - "psr-3" + "filesystem", + "iterator" ], "support": { - "source": "https://github.com/php-fig/log/tree/3.0.0" + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" }, - "time": "2021-07-14T16:46:02+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-12-02T12:48:52+00:00" }, { - "name": "sebastian/cli-parser", - "version": "1.0.1", + "name": "phpunit/php-invoker", + "version": "3.1.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", - "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", "shasum": "" }, "require": { "php": ">=7.3" }, "require-dev": { + "ext-pcntl": "*", "phpunit/phpunit": "^9.3" }, + "suggest": { + "ext-pcntl": "*" + }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "3.1-dev" } }, "autoload": { @@ -3290,11 +3636,14 @@ "role": "lead" } ], - "description": "Library for parsing CLI options", - "homepage": "https://github.com/sebastianbergmann/cli-parser", + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], "support": { - "issues": "https://github.com/sebastianbergmann/cli-parser/issues", - "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1" + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" }, "funding": [ { @@ -3302,20 +3651,20 @@ "type": "github" } ], - "time": "2020-09-28T06:08:49+00:00" + "time": "2020-09-28T05:58:55+00:00" }, { - "name": "sebastian/code-unit", - "version": "1.0.8", + "name": "phpunit/php-text-template", + "version": "2.0.4", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit.git", - "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", - "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", "shasum": "" }, "require": { @@ -3327,7 +3676,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -3346,11 +3695,14 @@ "role": "lead" } ], - "description": "Collection of value objects that represent the PHP code units", - "homepage": "https://github.com/sebastianbergmann/code-unit", + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], "support": { - "issues": "https://github.com/sebastianbergmann/code-unit/issues", - "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" }, "funding": [ { @@ -3358,20 +3710,20 @@ "type": "github" } ], - "time": "2020-10-26T13:08:54+00:00" + "time": "2020-10-26T05:33:50+00:00" }, { - "name": "sebastian/code-unit-reverse-lookup", - "version": "2.0.3", + "name": "phpunit/php-timer", + "version": "5.0.3", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", - "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", "shasum": "" }, "require": { @@ -3383,7 +3735,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -3398,14 +3750,18 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Looks up which function or method a line of code belongs to", - "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], "support": { - "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", - "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" }, "funding": [ { @@ -3413,34 +3769,38 @@ "type": "github" } ], - "time": "2020-09-28T05:30:19+00:00" + "time": "2020-10-26T13:16:10+00:00" }, { - "name": "sebastian/comparator", - "version": "4.0.8", + "name": "phpunit/phpcov", + "version": "8.2.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a" + "url": "https://github.com/sebastianbergmann/phpcov.git", + "reference": "8ec45dde34a84914a0ace355fbd6d7af2242c9a4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a", + "url": "https://api.github.com/repos/sebastianbergmann/phpcov/zipball/8ec45dde34a84914a0ace355fbd6d7af2242c9a4", + "reference": "8ec45dde34a84914a0ace355fbd6d7af2242c9a4", "shasum": "" }, "require": { "php": ">=7.3", + "phpunit/php-code-coverage": "^9.2", + "phpunit/php-file-iterator": "^3.0", + "phpunit/phpunit": "^9.3", + "sebastian/cli-parser": "^1.0", "sebastian/diff": "^4.0", - "sebastian/exporter": "^4.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" + "sebastian/version": "^3.0" }, + "bin": [ + "phpcov" + ], "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-master": "8.2-dev" } }, "autoload": { @@ -3455,31 +3815,15 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Provides the functionality to compare PHP values for equality", - "homepage": "https://github.com/sebastianbergmann/comparator", - "keywords": [ - "comparator", - "compare", - "equality" - ], + "description": "CLI frontend for php-code-coverage", + "homepage": "https://github.com/sebastianbergmann/phpcov", "support": { - "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" + "issues": "https://github.com/sebastianbergmann/phpcov/issues", + "source": "https://github.com/sebastianbergmann/phpcov/tree/8.2.1" }, "funding": [ { @@ -3487,36 +3831,68 @@ "type": "github" } ], - "time": "2022-09-14T12:41:17+00:00" + "time": "2022-03-24T12:07:05+00:00" }, { - "name": "sebastian/complexity", - "version": "2.0.2", + "name": "phpunit/phpunit", + "version": "9.5.25", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "739b35e53379900cc9ac327b2147867b8b6efd88" + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "3e6f90ca7e3d02025b1d147bd8d4a89fd4ca8a1d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88", - "reference": "739b35e53379900cc9ac327b2147867b8b6efd88", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3e6f90ca7e3d02025b1d147bd8d4a89fd4ca8a1d", + "reference": "3e6f90ca7e3d02025b1d147bd8d4a89fd4ca8a1d", "shasum": "" }, "require": { - "nikic/php-parser": "^4.7", - "php": ">=7.3" + "doctrine/instantiator": "^1.3.1", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.10.1", + "phar-io/manifest": "^2.0.3", + "phar-io/version": "^3.0.2", + "php": ">=7.3", + "phpunit/php-code-coverage": "^9.2.13", + "phpunit/php-file-iterator": "^3.0.5", + "phpunit/php-invoker": "^3.1.1", + "phpunit/php-text-template": "^2.0.3", + "phpunit/php-timer": "^5.0.2", + "sebastian/cli-parser": "^1.0.1", + "sebastian/code-unit": "^1.0.6", + "sebastian/comparator": "^4.0.8", + "sebastian/diff": "^4.0.3", + "sebastian/environment": "^5.1.3", + "sebastian/exporter": "^4.0.5", + "sebastian/global-state": "^5.0.1", + "sebastian/object-enumerator": "^4.0.3", + "sebastian/resource-operations": "^3.0.3", + "sebastian/type": "^3.2", + "sebastian/version": "^3.0.2" }, - "require-dev": { - "phpunit/phpunit": "^9.3" + "suggest": { + "ext-soap": "*", + "ext-xdebug": "*" }, + "bin": [ + "phpunit" + ], "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "9.5-dev" } }, "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], "classmap": [ "src/" ] @@ -3532,175 +3908,206 @@ "role": "lead" } ], - "description": "Library for calculating the complexity of PHP code units", - "homepage": "https://github.com/sebastianbergmann/complexity", + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], "support": { - "issues": "https://github.com/sebastianbergmann/complexity/issues", - "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2" + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.25" }, "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" } ], - "time": "2020-10-26T15:52:27+00:00" + "time": "2022-09-25T03:44:45+00:00" }, { - "name": "sebastian/diff", - "version": "4.0.4", + "name": "psr/cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/cache.git", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Cache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for caching libraries", + "keywords": [ + "cache", + "psr", + "psr-6" + ], + "support": { + "source": "https://github.com/php-fig/cache/tree/3.0.0" + }, + "time": "2021-02-03T23:26:27+00:00" + }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", "shasum": "" }, "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.3", - "symfony/process": "^4.2 || ^5" + "php": ">=7.2.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-master": "1.0.x-dev" } }, "autoload": { - "classmap": [ - "src/" - ] + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], "authors": [ { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" } ], - "description": "Diff implementation", - "homepage": "https://github.com/sebastianbergmann/diff", + "description": "Standard interfaces for event handling.", "keywords": [ - "diff", - "udiff", - "unidiff", - "unified diff" + "events", + "psr", + "psr-14" ], "support": { - "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-10-26T13:10:38+00:00" + "time": "2019-01-08T18:20:26+00:00" }, { - "name": "sebastian/environment", - "version": "5.1.4", + "name": "psr/log", + "version": "3.0.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7" + "url": "https://github.com/php-fig/log.git", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/1b5dff7bb151a4db11d49d90e5408e4e938270f7", - "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", "shasum": "" }, "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "suggest": { - "ext-posix": "*" + "php": ">=8.0.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.1-dev" + "dev-master": "3.x-dev" } }, "autoload": { - "classmap": [ - "src/" - ] + "psr-4": { + "Psr\\Log\\": "src" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], "authors": [ { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" } ], - "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", "keywords": [ - "Xdebug", - "environment", - "hhvm" + "log", + "psr", + "psr-3" ], "support": { - "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/5.1.4" + "source": "https://github.com/php-fig/log/tree/3.0.0" }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2022-04-03T09:37:03+00:00" + "time": "2021-07-14T16:46:02+00:00" }, { - "name": "sebastian/exporter", - "version": "4.0.5", + "name": "sebastian/cli-parser", + "version": "1.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d" + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", - "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/recursion-context": "^4.0" + "php": ">=7.3" }, "require-dev": { - "ext-mbstring": "*", "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-master": "1.0-dev" } }, "autoload": { @@ -3715,34 +4122,15 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "https://www.github.com/sebastianbergmann/exporter", - "keywords": [ - "export", - "exporter" - ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", "support": { - "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.5" + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1" }, "funding": [ { @@ -3750,38 +4138,32 @@ "type": "github" } ], - "time": "2022-09-14T06:03:37+00:00" + "time": "2020-09-28T06:08:49+00:00" }, { - "name": "sebastian/global-state", - "version": "5.0.5", + "name": "sebastian/code-unit", + "version": "1.0.8", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2" + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2", - "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/object-reflector": "^2.0", - "sebastian/recursion-context": "^4.0" + "php": ">=7.3" }, "require-dev": { - "ext-dom": "*", "phpunit/phpunit": "^9.3" }, - "suggest": { - "ext-uopz": "*" - }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-master": "1.0-dev" } }, "autoload": { @@ -3796,17 +4178,15 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Snapshotting of global state", - "homepage": "http://www.github.com/sebastianbergmann/global-state", - "keywords": [ - "global state" - ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", "support": { - "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5" + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" }, "funding": [ { @@ -3814,24 +4194,23 @@ "type": "github" } ], - "time": "2022-02-14T08:28:10+00:00" + "time": "2020-10-26T13:08:54+00:00" }, { - "name": "sebastian/lines-of-code", - "version": "1.0.3", + "name": "sebastian/code-unit-reverse-lookup", + "version": "2.0.3", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", - "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", "shasum": "" }, "require": { - "nikic/php-parser": "^4.6", "php": ">=7.3" }, "require-dev": { @@ -3840,7 +4219,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -3855,15 +4234,14 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" + "email": "sebastian@phpunit.de" } ], - "description": "Library for counting the lines of code in PHP source code", - "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", "support": { - "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", - "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3" + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" }, "funding": [ { @@ -3871,26 +4249,26 @@ "type": "github" } ], - "time": "2020-11-28T06:42:11+00:00" + "time": "2020-09-28T05:30:19+00:00" }, { - "name": "sebastian/object-enumerator", - "version": "4.0.4", + "name": "sebastian/comparator", + "version": "4.0.8", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "fa0f136dd2334583309d32b62544682ee972b51a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", - "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", + "reference": "fa0f136dd2334583309d32b62544682ee972b51a", "shasum": "" }, "require": { "php": ">=7.3", - "sebastian/object-reflector": "^2.0", - "sebastian/recursion-context": "^4.0" + "sebastian/diff": "^4.0", + "sebastian/exporter": "^4.0" }, "require-dev": { "phpunit/phpunit": "^9.3" @@ -3914,13 +4292,30 @@ { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" } ], - "description": "Traverses array structures and object graphs to enumerate all referenced objects", - "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], "support": { - "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", - "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" }, "funding": [ { @@ -3928,23 +4323,24 @@ "type": "github" } ], - "time": "2020-10-26T13:12:34+00:00" + "time": "2022-09-14T12:41:17+00:00" }, { - "name": "sebastian/object-reflector", - "version": "2.0.4", + "name": "sebastian/complexity", + "version": "2.0.2", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", - "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88", "shasum": "" }, "require": { + "nikic/php-parser": "^4.7", "php": ">=7.3" }, "require-dev": { @@ -3968,14 +4364,15 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Allows reflection of object attributes, including inherited and non-public ones", - "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", "support": { - "issues": "https://github.com/sebastianbergmann/object-reflector/issues", - "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2" }, "funding": [ { @@ -3983,27 +4380,28 @@ "type": "github" } ], - "time": "2020-10-26T13:14:26+00:00" + "time": "2020-10-26T15:52:27+00:00" }, { - "name": "sebastian/recursion-context", + "name": "sebastian/diff", "version": "4.0.4", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", - "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", "shasum": "" }, "require": { "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^9.3", + "symfony/process": "^4.2 || ^5" }, "type": "library", "extra": { @@ -4026,19 +4424,21 @@ "email": "sebastian@phpunit.de" }, { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" } ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], "support": { - "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4" + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" }, "funding": [ { @@ -4046,32 +4446,35 @@ "type": "github" } ], - "time": "2020-10-26T13:17:30+00:00" + "time": "2020-10-26T13:10:38+00:00" }, { - "name": "sebastian/resource-operations", - "version": "3.0.3", + "name": "sebastian/environment", + "version": "5.1.4", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", - "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7", "shasum": "" }, "require": { "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^9.0" + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-posix": "*" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -4089,11 +4492,16 @@ "email": "sebastian@phpunit.de" } ], - "description": "Provides a list of PHP built-in functions that operate on resources", - "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], "support": { - "issues": "https://github.com/sebastianbergmann/resource-operations/issues", - "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.4" }, "funding": [ { @@ -4101,32 +4509,34 @@ "type": "github" } ], - "time": "2020-09-28T06:45:17+00:00" + "time": "2022-04-03T09:37:03+00:00" }, { - "name": "sebastian/type", - "version": "3.2.0", + "name": "sebastian/exporter", + "version": "4.0.5", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/type.git", - "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e" + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", - "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", + "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=7.3", + "sebastian/recursion-context": "^4.0" }, "require-dev": { - "phpunit/phpunit": "^9.5" + "ext-mbstring": "*", + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.2-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -4141,15 +4551,34 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" } ], - "description": "Collection of value objects that represent the types of the PHP type system", - "homepage": "https://github.com/sebastianbergmann/type", + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], "support": { - "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/3.2.0" + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.5" }, "funding": [ { @@ -4157,29 +4586,38 @@ "type": "github" } ], - "time": "2022-09-12T14:47:03+00:00" + "time": "2022-09-14T06:03:37+00:00" }, { - "name": "sebastian/version", - "version": "3.0.2", + "name": "sebastian/global-state", + "version": "5.0.5", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "c6c1022351a901512170118436c764e473f6de8c" + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", - "reference": "c6c1022351a901512170118436c764e473f6de8c", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-uopz": "*" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -4194,15 +4632,17 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" + "email": "sebastian@phpunit.de" } ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], "support": { - "issues": "https://github.com/sebastianbergmann/version/issues", - "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5" }, "funding": [ { @@ -4210,582 +4650,451 @@ "type": "github" } ], - "time": "2020-09-28T06:39:44+00:00" + "time": "2022-02-14T08:28:10+00:00" }, { - "name": "symfony/console", - "version": "v6.1.4", + "name": "sebastian/lines-of-code", + "version": "1.0.3", "source": { "type": "git", - "url": "https://github.com/symfony/console.git", - "reference": "7fccea8728aa2d431a6725b02b3ce759049fc84d" + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/7fccea8728aa2d431a6725b02b3ce759049fc84d", - "reference": "7fccea8728aa2d431a6725b02b3ce759049fc84d", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", "shasum": "" }, "require": { - "php": ">=8.1", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-mbstring": "~1.0", - "symfony/service-contracts": "^1.1|^2|^3", - "symfony/string": "^5.4|^6.0" - }, - "conflict": { - "symfony/dependency-injection": "<5.4", - "symfony/dotenv": "<5.4", - "symfony/event-dispatcher": "<5.4", - "symfony/lock": "<5.4", - "symfony/process": "<5.4" - }, - "provide": { - "psr/log-implementation": "1.0|2.0|3.0" + "nikic/php-parser": "^4.6", + "php": ">=7.3" }, "require-dev": { - "psr/log": "^1|^2|^3", - "symfony/config": "^5.4|^6.0", - "symfony/dependency-injection": "^5.4|^6.0", - "symfony/event-dispatcher": "^5.4|^6.0", - "symfony/lock": "^5.4|^6.0", - "symfony/process": "^5.4|^6.0", - "symfony/var-dumper": "^5.4|^6.0" - }, - "suggest": { - "psr/log": "For using the console logger", - "symfony/event-dispatcher": "", - "symfony/lock": "", - "symfony/process": "" + "phpunit/phpunit": "^9.3" }, "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Console\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Eases the creation of beautiful and testable command line interfaces", - "homepage": "https://symfony.com", - "keywords": [ - "cli", - "command line", - "console", - "terminal" - ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", "support": { - "source": "https://github.com/symfony/console/tree/v6.1.4" + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3" }, "funding": [ { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", + "url": "https://github.com/sebastianbergmann", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" } ], - "time": "2022-08-26T10:32:31+00:00" + "time": "2020-11-28T06:42:11+00:00" }, { - "name": "symfony/deprecation-contracts", - "version": "v3.1.1", + "name": "sebastian/object-enumerator", + "version": "4.0.4", "source": { "type": "git", - "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918" + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", - "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.1-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" + "dev-master": "4.0-dev" } }, "autoload": { - "files": [ - "function.php" + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" } ], - "description": "A generic function and convention to trigger deprecation notices", - "homepage": "https://symfony.com", + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.1.1" + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" }, "funding": [ { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", + "url": "https://github.com/sebastianbergmann", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" } ], - "time": "2022-02-25T11:15:52+00:00" + "time": "2020-10-26T13:12:34+00:00" }, { - "name": "symfony/event-dispatcher", - "version": "v6.1.0", + "name": "sebastian/object-reflector", + "version": "2.0.4", "source": { "type": "git", - "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "a0449a7ad7daa0f7c0acd508259f80544ab5a347" + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a0449a7ad7daa0f7c0acd508259f80544ab5a347", - "reference": "a0449a7ad7daa0f7c0acd508259f80544ab5a347", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", "shasum": "" }, "require": { - "php": ">=8.1", - "symfony/event-dispatcher-contracts": "^2|^3" - }, - "conflict": { - "symfony/dependency-injection": "<5.4" - }, - "provide": { - "psr/event-dispatcher-implementation": "1.0", - "symfony/event-dispatcher-implementation": "2.0|3.0" + "php": ">=7.3" }, "require-dev": { - "psr/log": "^1|^2|^3", - "symfony/config": "^5.4|^6.0", - "symfony/dependency-injection": "^5.4|^6.0", - "symfony/error-handler": "^5.4|^6.0", - "symfony/expression-language": "^5.4|^6.0", - "symfony/http-foundation": "^5.4|^6.0", - "symfony/service-contracts": "^1.1|^2|^3", - "symfony/stopwatch": "^5.4|^6.0" - }, - "suggest": { - "symfony/dependency-injection": "", - "symfony/http-kernel": "" + "phpunit/phpunit": "^9.3" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, "autoload": { - "psr-4": { - "Symfony\\Component\\EventDispatcher\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" } ], - "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", - "homepage": "https://symfony.com", + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v6.1.0" + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" }, "funding": [ { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", + "url": "https://github.com/sebastianbergmann", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" } ], - "time": "2022-05-05T16:51:07+00:00" + "time": "2020-10-26T13:14:26+00:00" }, { - "name": "symfony/event-dispatcher-contracts", - "version": "v3.1.1", + "name": "sebastian/recursion-context", + "version": "4.0.4", "source": { "type": "git", - "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "02ff5eea2f453731cfbc6bc215e456b781480448" + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/02ff5eea2f453731cfbc6bc215e456b781480448", - "reference": "02ff5eea2f453731cfbc6bc215e456b781480448", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", "shasum": "" }, "require": { - "php": ">=8.1", - "psr/event-dispatcher": "^1" + "php": ">=7.3" }, - "suggest": { - "symfony/event-dispatcher-implementation": "" + "require-dev": { + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.1-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" + "dev-master": "4.0-dev" } }, "autoload": { - "psr-4": { - "Symfony\\Contracts\\EventDispatcher\\": "" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" }, { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" } ], - "description": "Generic abstractions related to dispatching event", - "homepage": "https://symfony.com", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.1.1" + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4" }, "funding": [ { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", + "url": "https://github.com/sebastianbergmann", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" } ], - "time": "2022-02-25T11:15:52+00:00" + "time": "2020-10-26T13:17:30+00:00" }, { - "name": "symfony/filesystem", - "version": "v6.1.4", + "name": "sebastian/resource-operations", + "version": "3.0.3", "source": { "type": "git", - "url": "https://github.com/symfony/filesystem.git", - "reference": "3f39c04d2630c34019907b02f85672dac99f8659" + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" }, "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/3f39c04d2630c34019907b02f85672dac99f8659", - "reference": "3f39c04d2630c34019907b02f85672dac99f8659", + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", "shasum": "" }, "require": { - "php": ">=8.1", - "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-mbstring": "~1.8" + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.0" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, "autoload": { - "psr-4": { - "Symfony\\Component\\Filesystem\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" } ], - "description": "Provides basic utilities for the filesystem", - "homepage": "https://symfony.com", + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", "support": { - "source": "https://github.com/symfony/filesystem/tree/v6.1.4" + "issues": "https://github.com/sebastianbergmann/resource-operations/issues", + "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" }, "funding": [ { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", + "url": "https://github.com/sebastianbergmann", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" } ], - "time": "2022-08-02T16:17:38+00:00" + "time": "2020-09-28T06:45:17+00:00" }, { - "name": "symfony/options-resolver", - "version": "v6.1.0", + "name": "sebastian/type", + "version": "3.2.0", "source": { "type": "git", - "url": "https://github.com/symfony/options-resolver.git", - "reference": "a3016f5442e28386ded73c43a32a5b68586dd1c4" + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/a3016f5442e28386ded73c43a32a5b68586dd1c4", - "reference": "a3016f5442e28386ded73c43a32a5b68586dd1c4", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", + "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", "shasum": "" }, "require": { - "php": ">=8.1", - "symfony/deprecation-contracts": "^2.1|^3" + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.5" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev" + } + }, "autoload": { - "psr-4": { - "Symfony\\Component\\OptionsResolver\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Provides an improved replacement for the array_replace PHP function", - "homepage": "https://symfony.com", - "keywords": [ - "config", - "configuration", - "options" - ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", "support": { - "source": "https://github.com/symfony/options-resolver/tree/v6.1.0" + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/3.2.0" }, "funding": [ { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", + "url": "https://github.com/sebastianbergmann", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" } ], - "time": "2022-02-25T11:15:52+00:00" + "time": "2022-09-12T14:47:03+00:00" }, { - "name": "symfony/polyfill-ctype", - "version": "v1.26.0", + "name": "sebastian/version", + "version": "3.0.2", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4" + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "c6c1022351a901512170118436c764e473f6de8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", - "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", + "reference": "c6c1022351a901512170118436c764e473f6de8c", "shasum": "" }, "require": { - "php": ">=7.1" - }, - "provide": { - "ext-ctype": "*" - }, - "suggest": { - "ext-ctype": "For best performance" + "php": ">=7.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "dev-master": "3.0-dev" } }, "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Ctype\\": "" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Gert de Pagter", - "email": "BackEndTea@gmail.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Symfony polyfill for ctype functions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "ctype", - "polyfill", - "portable" - ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.26.0" + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" }, "funding": [ { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", + "url": "https://github.com/sebastianbergmann", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2020-09-28T06:39:44+00:00" }, { - "name": "symfony/polyfill-intl-grapheme", - "version": "v1.26.0", + "name": "symfony/event-dispatcher", + "version": "v6.1.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "433d05519ce6990bf3530fba6957499d327395c2" + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "a0449a7ad7daa0f7c0acd508259f80544ab5a347" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/433d05519ce6990bf3530fba6957499d327395c2", - "reference": "433d05519ce6990bf3530fba6957499d327395c2", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a0449a7ad7daa0f7c0acd508259f80544ab5a347", + "reference": "a0449a7ad7daa0f7c0acd508259f80544ab5a347", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.1", + "symfony/event-dispatcher-contracts": "^2|^3" + }, + "conflict": { + "symfony/dependency-injection": "<5.4" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/error-handler": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/http-foundation": "^5.4|^6.0", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/stopwatch": "^5.4|^6.0" }, "suggest": { - "ext-intl": "For best performance" + "symfony/dependency-injection": "", + "symfony/http-kernel": "" }, "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.26-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, "autoload": { - "files": [ - "bootstrap.php" - ], "psr-4": { - "Symfony\\Polyfill\\Intl\\Grapheme\\": "" - } + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -4793,26 +5102,18 @@ ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" + "name": "Fabien Potencier", + "email": "fabien@symfony.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill for intl's grapheme_* functions", + "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "grapheme", - "intl", - "polyfill", - "portable", - "shim" - ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.26.0" + "source": "https://github.com/symfony/event-dispatcher/tree/v6.1.0" }, "funding": [ { @@ -4828,48 +5129,43 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2022-05-05T16:51:07+00:00" }, { - "name": "symfony/polyfill-intl-normalizer", - "version": "v1.26.0", + "name": "symfony/event-dispatcher-contracts", + "version": "v3.1.1", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "219aa369ceff116e673852dce47c3a41794c14bd" + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "02ff5eea2f453731cfbc6bc215e456b781480448" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/219aa369ceff116e673852dce47c3a41794c14bd", - "reference": "219aa369ceff116e673852dce47c3a41794c14bd", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/02ff5eea2f453731cfbc6bc215e456b781480448", + "reference": "02ff5eea2f453731cfbc6bc215e456b781480448", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.1", + "psr/event-dispatcher": "^1" }, "suggest": { - "ext-intl": "For best performance" + "symfony/event-dispatcher-implementation": "" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "3.1-dev" }, "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" } }, "autoload": { - "files": [ - "bootstrap.php" - ], "psr-4": { - "Symfony\\Polyfill\\Intl\\Normalizer\\": "" - }, - "classmap": [ - "Resources/stubs" - ] + "Symfony\\Contracts\\EventDispatcher\\": "" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -4885,18 +5181,18 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill for intl's Normalizer class and related functions", + "description": "Generic abstractions related to dispatching event", "homepage": "https://symfony.com", "keywords": [ - "compatibility", - "intl", - "normalizer", - "polyfill", - "portable", - "shim" + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.26.0" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.1.1" }, "funding": [ { @@ -4912,44 +5208,34 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2022-02-25T11:15:52+00:00" }, { - "name": "symfony/polyfill-php81", - "version": "v1.26.0", + "name": "symfony/filesystem", + "version": "v6.1.4", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1" + "url": "https://github.com/symfony/filesystem.git", + "reference": "3f39c04d2630c34019907b02f85672dac99f8659" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/13f6d1271c663dc5ae9fb843a8f16521db7687a1", - "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/3f39c04d2630c34019907b02f85672dac99f8659", + "reference": "3f39c04d2630c34019907b02f85672dac99f8659", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.1", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-mbstring": "~1.8" }, "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.26-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, "autoload": { - "files": [ - "bootstrap.php" - ], "psr-4": { - "Symfony\\Polyfill\\Php81\\": "" + "Symfony\\Component\\Filesystem\\": "" }, - "classmap": [ - "Resources/stubs" + "exclude-from-classmap": [ + "/Tests/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -4958,24 +5244,18 @@ ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" + "name": "Fabien Potencier", + "email": "fabien@symfony.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", + "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.26.0" + "source": "https://github.com/symfony/filesystem/tree/v6.1.4" }, "funding": [ { @@ -4991,29 +5271,30 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2022-08-02T16:17:38+00:00" }, { - "name": "symfony/process", - "version": "v6.1.3", + "name": "symfony/options-resolver", + "version": "v6.1.0", "source": { "type": "git", - "url": "https://github.com/symfony/process.git", - "reference": "a6506e99cfad7059b1ab5cab395854a0a0c21292" + "url": "https://github.com/symfony/options-resolver.git", + "reference": "a3016f5442e28386ded73c43a32a5b68586dd1c4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/a6506e99cfad7059b1ab5cab395854a0a0c21292", - "reference": "a6506e99cfad7059b1ab5cab395854a0a0c21292", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/a3016f5442e28386ded73c43a32a5b68586dd1c4", + "reference": "a3016f5442e28386ded73c43a32a5b68586dd1c4", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.1|^3" }, "type": "library", "autoload": { "psr-4": { - "Symfony\\Component\\Process\\": "" + "Symfony\\Component\\OptionsResolver\\": "" }, "exclude-from-classmap": [ "/Tests/" @@ -5033,10 +5314,15 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Executes commands in sub-processes", + "description": "Provides an improved replacement for the array_replace PHP function", "homepage": "https://symfony.com", + "keywords": [ + "config", + "configuration", + "options" + ], "support": { - "source": "https://github.com/symfony/process/tree/v6.1.3" + "source": "https://github.com/symfony/options-resolver/tree/v6.1.0" }, "funding": [ { @@ -5052,48 +5338,44 @@ "type": "tidelift" } ], - "time": "2022-06-27T17:24:16+00:00" + "time": "2022-02-25T11:15:52+00:00" }, { - "name": "symfony/service-contracts", - "version": "v3.1.1", + "name": "symfony/polyfill-php81", + "version": "v1.26.0", "source": { "type": "git", - "url": "https://github.com/symfony/service-contracts.git", - "reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239" + "url": "https://github.com/symfony/polyfill-php81.git", + "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/925e713fe8fcacf6bc05e936edd8dd5441a21239", - "reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/13f6d1271c663dc5ae9fb843a8f16521db7687a1", + "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1", "shasum": "" }, "require": { - "php": ">=8.1", - "psr/container": "^2.0" - }, - "conflict": { - "ext-psr": "<1.1|>=2" - }, - "suggest": { - "symfony/service-implementation": "" + "php": ">=7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.1-dev" + "dev-main": "1.26-dev" }, "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { + "files": [ + "bootstrap.php" + ], "psr-4": { - "Symfony\\Contracts\\Service\\": "" + "Symfony\\Polyfill\\Php81\\": "" }, - "exclude-from-classmap": [ - "/Test/" + "classmap": [ + "Resources/stubs" ] }, "notification-url": "https://packagist.org/downloads/", @@ -5110,18 +5392,16 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Generic abstractions related to writing services", + "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", "homepage": "https://symfony.com", "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" + "compatibility", + "polyfill", + "portable", + "shim" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.1.1" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.26.0" }, "funding": [ { @@ -5137,30 +5417,29 @@ "type": "tidelift" } ], - "time": "2022-05-30T19:18:58+00:00" + "time": "2022-05-24T11:49:31+00:00" }, { - "name": "symfony/stopwatch", - "version": "v6.1.0", + "name": "symfony/process", + "version": "v6.1.3", "source": { "type": "git", - "url": "https://github.com/symfony/stopwatch.git", - "reference": "77dedae82ce2a26e2e9b481855473fc3b3e4e54d" + "url": "https://github.com/symfony/process.git", + "reference": "a6506e99cfad7059b1ab5cab395854a0a0c21292" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/77dedae82ce2a26e2e9b481855473fc3b3e4e54d", - "reference": "77dedae82ce2a26e2e9b481855473fc3b3e4e54d", + "url": "https://api.github.com/repos/symfony/process/zipball/a6506e99cfad7059b1ab5cab395854a0a0c21292", + "reference": "a6506e99cfad7059b1ab5cab395854a0a0c21292", "shasum": "" }, "require": { - "php": ">=8.1", - "symfony/service-contracts": "^1|^2|^3" + "php": ">=8.1" }, "type": "library", "autoload": { "psr-4": { - "Symfony\\Component\\Stopwatch\\": "" + "Symfony\\Component\\Process\\": "" }, "exclude-from-classmap": [ "/Tests/" @@ -5180,10 +5459,10 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Provides a way to profile code", + "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v6.1.0" + "source": "https://github.com/symfony/process/tree/v6.1.3" }, "funding": [ { @@ -5199,45 +5478,30 @@ "type": "tidelift" } ], - "time": "2022-02-25T11:15:52+00:00" + "time": "2022-06-27T17:24:16+00:00" }, { - "name": "symfony/string", - "version": "v6.1.4", + "name": "symfony/stopwatch", + "version": "v6.1.0", "source": { "type": "git", - "url": "https://github.com/symfony/string.git", - "reference": "290972cad7b364e3befaa74ba0ec729800fb161c" + "url": "https://github.com/symfony/stopwatch.git", + "reference": "77dedae82ce2a26e2e9b481855473fc3b3e4e54d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/290972cad7b364e3befaa74ba0ec729800fb161c", - "reference": "290972cad7b364e3befaa74ba0ec729800fb161c", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/77dedae82ce2a26e2e9b481855473fc3b3e4e54d", + "reference": "77dedae82ce2a26e2e9b481855473fc3b3e4e54d", "shasum": "" }, "require": { "php": ">=8.1", - "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-intl-grapheme": "~1.0", - "symfony/polyfill-intl-normalizer": "~1.0", - "symfony/polyfill-mbstring": "~1.0" - }, - "conflict": { - "symfony/translation-contracts": "<2.0" - }, - "require-dev": { - "symfony/error-handler": "^5.4|^6.0", - "symfony/http-client": "^5.4|^6.0", - "symfony/translation-contracts": "^2.0|^3.0", - "symfony/var-exporter": "^5.4|^6.0" + "symfony/service-contracts": "^1|^2|^3" }, "type": "library", "autoload": { - "files": [ - "Resources/functions.php" - ], "psr-4": { - "Symfony\\Component\\String\\": "" + "Symfony\\Component\\Stopwatch\\": "" }, "exclude-from-classmap": [ "/Tests/" @@ -5249,26 +5513,18 @@ ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" + "name": "Fabien Potencier", + "email": "fabien@symfony.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", + "description": "Provides a way to profile code", "homepage": "https://symfony.com", - "keywords": [ - "grapheme", - "i18n", - "string", - "unicode", - "utf-8", - "utf8" - ], "support": { - "source": "https://github.com/symfony/string/tree/v6.1.4" + "source": "https://github.com/symfony/stopwatch/tree/v6.1.0" }, "funding": [ { @@ -5284,7 +5540,7 @@ "type": "tidelift" } ], - "time": "2022-08-12T18:05:43+00:00" + "time": "2022-02-25T11:15:52+00:00" }, { "name": "theseer/tokenizer", @@ -5343,7 +5599,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "^8.0 || ^8.1" + "php": "^8.1" }, "platform-dev": [], "plugin-api-version": "2.3.0" diff --git a/resources/stubs/command/Command.php.stub b/resources/stubs/command/Command.php.blade.php similarity index 78% rename from resources/stubs/command/Command.php.stub rename to resources/stubs/command/Command.php.blade.php index a7edce7..9be0682 100644 --- a/resources/stubs/command/Command.php.stub +++ b/resources/stubs/command/Command.php.blade.php @@ -1,17 +1,19 @@ -id(); - - $table->timestamps();{{ CON_SETUP_SCHEMA_CREATE_END }} + Schema::{{ $SCHEMA_TYPE }}('{{ $TABLE_NAME }}', function (Blueprint $table) { + @if ($SETUP_SCHEMA_CREATE)$table->id(); + $table->timestamps();@endif }); } @@ -27,8 +28,8 @@ public function up() */ public function down() { - {{ CON_SETUP_SCHEMA_CREATE_START }} + @if ($SETUP_SCHEMA_CREATE) Schema::dropIfExists('{{ TABLE_NAME }}'); - {{ CON_SETUP_SCHEMA_CREATE_END }} + @endif } }; diff --git a/resources/stubs/command/Model.php.stub b/resources/stubs/command/Model.php.blade.php similarity index 73% rename from resources/stubs/command/Model.php.stub rename to resources/stubs/command/Model.php.blade.php index 6e920c8..90cbc1c 100644 --- a/resources/stubs/command/Model.php.stub +++ b/resources/stubs/command/Model.php.blade.php @@ -1,10 +1,12 @@ -id(); + + // ... + + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('{{ $PACKAGE_SLUG }}'); + } +}; diff --git a/resources/stubs/install/Con_phpstan.neon.stub b/resources/stubs/install/Con_phpstan.neon.blade.php similarity index 100% rename from resources/stubs/install/Con_phpstan.neon.stub rename to resources/stubs/install/Con_phpstan.neon.blade.php diff --git a/resources/stubs/install/Con_phpunit.xml.stub b/resources/stubs/install/Con_phpunit.xml.blade.php similarity index 100% rename from resources/stubs/install/Con_phpunit.xml.stub rename to resources/stubs/install/Con_phpunit.xml.blade.php diff --git a/resources/stubs/install/Con_resources/package.json.stub b/resources/stubs/install/Con_resources/package.json.blade.php similarity index 96% rename from resources/stubs/install/Con_resources/package.json.stub rename to resources/stubs/install/Con_resources/package.json.blade.php index 550071b..f3c4b5a 100644 --- a/resources/stubs/install/Con_resources/package.json.stub +++ b/resources/stubs/install/Con_resources/package.json.blade.php @@ -1,5 +1,5 @@ { - "name": "{{ PACKAGE_SLUG }}", + "name": "{{ $PACKAGE_SLUG }}", "version": "1.0.0", "description": "", "main": "tailwind.config.js", diff --git a/resources/stubs/install/Con_resources/tailwind.config.js.stub b/resources/stubs/install/Con_resources/tailwind.config.js.blade.php similarity index 100% rename from resources/stubs/install/Con_resources/tailwind.config.js.stub rename to resources/stubs/install/Con_resources/tailwind.config.js.blade.php diff --git a/resources/stubs/install/Con_resources/webpack.mix.js.stub b/resources/stubs/install/Con_resources/webpack.mix.js.blade.php similarity index 100% rename from resources/stubs/install/Con_resources/webpack.mix.js.stub rename to resources/stubs/install/Con_resources/webpack.mix.js.blade.php diff --git a/resources/stubs/install/Con_routes/api.php.stub b/resources/stubs/install/Con_routes/api.php.blade.php similarity index 51% rename from resources/stubs/install/Con_routes/api.php.stub rename to resources/stubs/install/Con_routes/api.php.blade.php index 73e9690..a2d395b 100644 --- a/resources/stubs/install/Con_routes/api.php.stub +++ b/resources/stubs/install/Con_routes/api.php.blade.php @@ -1,8 +1,10 @@ -prefix('{{ PACKAGE_SLUG }}')->group(function () { +Route::name('{{ $PACKAGE_SLUG }}.api.')->prefix('{{ $PACKAGE_SLUG }}')->group(function () { // add package-specific api routes here }); diff --git a/resources/stubs/install/Con_routes/web.php.stub b/resources/stubs/install/Con_routes/web.php.blade.php similarity index 51% rename from resources/stubs/install/Con_routes/web.php.stub rename to resources/stubs/install/Con_routes/web.php.blade.php index 1ac4af5..cef0cac 100644 --- a/resources/stubs/install/Con_routes/web.php.stub +++ b/resources/stubs/install/Con_routes/web.php.blade.php @@ -1,8 +1,10 @@ -prefix('{{ PACKAGE_SLUG }}')->group(function () { +Route::name('{{ $PACKAGE_SLUG }}.web.')->prefix('{{ $PACKAGE_SLUG }}')->group(function () { // add package-specific web routes here }); diff --git a/resources/stubs/install/README.md.blade.php b/resources/stubs/install/README.md.blade.php new file mode 100644 index 0000000..9a329ba --- /dev/null +++ b/resources/stubs/install/README.md.blade.php @@ -0,0 +1,56 @@ +# {{ $PACKAGE_TITLE }} + +[![{{ $PACKAGE_TITLE }}](https://banners-laravel-ready.vercel.app/{{ urlencode($PACKAGE_TITLE) }}.png?theme=light&packageManager=composer+require&packageName={{ urlencode($COMPOSER_PACKAGE_NAME) }}&pattern=architect&style=style_1&description=By+{{ urlencode($VENDOR_NAMESPACE) }}&md=1&showWatermark=1&watermarkText=generated+by+laravel-ready\/packager&fontSize=100px&images=https%3A%2F%2Flaravel.com%2Fimg%2Flogomark.min.svg?brand=laravel)]({{ $REPO_URL }}) + +[![Stable Version][badge_stable]][link_packagist] +[![Unstable Version][badge_unstable]][link_packagist] +[![Total Downloads][badge_downloads]][link_packagist] +[![License][badge_license]][link_license] + +## 📂 About +@if($PACKAGE_DESC) +{{ $PACKAGE_DESC }}... +@endif + +## 📦 Installation + +Get via composer + +```bash +composer require {{ $COMPOSER_PACKAGE_NAME }} +``` + +@if ($SETUP_CONFIG) +## ⚙️ Configs + +```bash +php artisan vendor:publish --tag={{ $PACKAGE_SLUG }}-config +```@endif + +@if ($SETUP_DATABASE) +## 📅 Migrations + +```bash +# publish migrations +php artisan vendor:publish --tag={{ $PACKAGE_SLUG }}-migrations + +# apply migrations +php artisan migrate --path=/database/migrations/{{ $VENDOR_SLUG }}/{{ $PACKAGE_SLUG }} +``` +@endif + +## ⚓Credits + +- This project was generated by the **[packager](https://github.com/laravel-ready/packager)**. + +[badge_downloads]: https://img.shields.io/packagist/dt/{{ $COMPOSER_PACKAGE_NAME }}.svg?style=flat-square + +[badge_license]: https://img.shields.io/packagist/l/{{ $COMPOSER_PACKAGE_NAME }}.svg?style=flat-square + +[badge_stable]: https://img.shields.io/github/v/release/{{ $COMPOSER_PACKAGE_NAME }}?label=stable&style=flat-square + +[badge_unstable]: https://img.shields.io/badge/unstable-dev--main-orange?style=flat-square + +[link_license]: LICENSE + +[link_packagist]: https://packagist.org/packages/{{ $COMPOSER_PACKAGE_NAME }} diff --git a/resources/stubs/install/composer.json.blade.php b/resources/stubs/install/composer.json.blade.php new file mode 100644 index 0000000..09c8332 --- /dev/null +++ b/resources/stubs/install/composer.json.blade.php @@ -0,0 +1,73 @@ +{ + "name": "{{ $COMPOSER_PACKAGE_NAME }}", + "description": "{{ $PACKAGE_DESC }}", + "type": "library", + "license": "MIT", +@if ($PACKAGE_TAGS && count($PACKAGE_TAGS)) "keywords": [ +@foreach ($PACKAGE_TAGS as $key => $tag) + "{{ $tag }}"@if ($key !== count($PACKAGE_TAGS) - 1),@endif + + @endforeach + ],@endif + @if($COMPOSER_AUTHOR_NAME && $COMPOSER_AUTHOR_EMAIL)"authors": [ + { + "name": "{{ $COMPOSER_AUTHOR_NAME }}", + "email": "{{ $COMPOSER_AUTHOR_EMAIL }}" + } + ],@endif + "support": { + "issues": "{{ $REPO_URL }}/issues", + "source": "{{ $REPO_URL }}" + }, + "require": { + "php": "^8.1", + "illuminate/support": "^10.3" + }, + "require-dev": { + "mockery/mockery": "^1.5", + "orchestra/testbench": "^8.0"@if ($USE_PHPSTAN), + "phpstan/phpstan": "^1.10", + "phpstan/phpstan-phpunit": "^1.3", + "phpstan/phpstan-deprecation-rules": "^1.1", + "phpstan/extension-installer": "^1.2", + "nunomaduro/larastan": "^2.5"@endif @if ($USE_PEST), + "pestphp/pest": "^1.22", + "pestphp/pest-plugin-laravel": "^1.4", + "pestphp/pest-plugin-parallel": "^1.2"@endif + }, + "autoload": { + "psr-4": { + "{{ $FULL_NAMESPACE_JSON }}\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests" + } + }, + "config": { + "preferred-install": "dist", + "sort-packages": true + }, + "scripts":{ @if($USE_PHP_CS_FIXER) + "lint": "php-cs-fixer fix -v"@endif @if($USE_PEST), + "test:coverage": "@test --coverage-php ./coverage/cov/default.cov", + "test:coverage:html": "@test --coverage-html coverage/html/default", + "test": "vendor/bin/pest --colors=always --parallel",@endif @if($USE_PHP_CS_FIXER) + "test:lint": "php-cs-fixer fix -v --dry-run",@endif @if($USE_PHPSTAN) + "test:styles": "vendor/bin/phpstan analyse --ansi", + "test:styles:pro": "vendor/bin/phpstan analyse --pro --fix --watch"@endif + }, + "extra": { + "laravel": { + "providers": [ + "{{ $FULL_NAMESPACE_JSON }}\\ServiceProvider" + ]@if($SETUP_FACADES), + "aliases": { + "{{ $PACKAGE_NAMESPACE }}": "{{ $FULL_NAMESPACE_JSON }}\\Facades\\{{ $PACKAGE_NAMESPACE }}" + }@endif + } + }, + "minimum-stability": "stable", + "prefer-stable": true +} diff --git a/resources/stubs/install/composer.json.stub b/resources/stubs/install/composer.json.stub deleted file mode 100644 index cd893e6..0000000 --- a/resources/stubs/install/composer.json.stub +++ /dev/null @@ -1,71 +0,0 @@ -{ - "name": "{{ COMPOSER_PACKAGE_NAME }}",{{ CON_SETUP_PACKAGE_DESCRIPTION_START }} - "description": "{{ PACKAGE_DESCRIPTION }}",{{ CON_SETUP_PACKAGE_DESCRIPTION_END }} - "type": "library", - "license": "MIT", - "version": "1.0.0",{{ CON_SETUP_PACKAGE_TAGS_START }} - "keywords": [ - {{ PACKAGE_TAGS }} - ],{{ CON_SETUP_PACKAGE_TAGS_END }} - "authors": [ - { - "name": "{{ COMPOSER_AUTHOR_NAME }}", - "email": "{{ COMPOSER_AUTHOR_EMAIL }}" - } - ], - "support": { - "issues": "{{ REPO_URL }}/issues", - "source": "{{ REPO_URL }}" - }, - "require": { - "php": "^8.0", - "illuminate/support": "^9.0" - }, - "require-dev": { - "mockery/mockery": "^1.4", - "orchestra/testbench": "^7.0.0"{{ CON_SETUP_PHPSTAN_START }}, - "phpstan/phpstan": "^1.8", - "phpstan/phpstan-phpunit": "^1.1", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/extension-installer": "^1.1", - "nunomaduro/larastan": "^2.1"{{ CON_SETUP_PHPSTAN_END }}{{ CON_SETUP_PEST_START }}, - "pestphp/pest": "^1.2", - "pestphp/pest-plugin-laravel": "^1.2", - "pestphp/pest-plugin-parallel": "^1.2"{{ CON_SETUP_PEST_END }} - }, - "autoload": { - "psr-4": { - "{{ FULL_NAMESPACE_JSON }}\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "Tests\\": "tests" - } - }, - "config": { - "preferred-install": "dist", - "sort-packages": true - }, - "scripts": {{{ CON_SETUP_PHP_CS_FIXER_START }} - "lint": "php-cs-fixer fix -v",{{ CON_SETUP_PHP_CS_FIXER_END }}{{ CON_SETUP_PEST_START }} - "test:coverage": "@test --coverage-php ./coverage/cov/default.cov", - "test:coverage:html": "@test --coverage-html coverage/html/default", - "test": "vendor/bin/pest --colors=always --parallel",{{ CON_SETUP_PEST_END }}{{ CON_SETUP_PHP_CS_FIXER_START }} - "test:lint": "php-cs-fixer fix -v --dry-run",{{ CON_SETUP_PHP_CS_FIXER_END }}{{ CON_SETUP_PHPSTAN_START }} - "test:styles": "vendor/bin/phpstan analyse --ansi", - "test:styles:pro": "vendor/bin/phpstan analyse --pro --fix --watch"{{ CON_SETUP_PHPSTAN_END }} - }, - "extra": { - "laravel": { - "providers": [ - "{{ FULL_NAMESPACE_JSON }}\\ServiceProvider" - ]{{ CON_SETUP_FACADES_START }}, - "aliases": { - "{{ PACKAGE_NAMESPACE }}": "{{ FULL_NAMESPACE_JSON }}\\Facades\\{{ PACKAGE_NAMESPACE }}" - }{{ CON_SETUP_FACADES_END }} - } - }, - "minimum-stability": "stable", - "prefer-stable": true -} diff --git a/resources/stubs/install/src/Con_Console/Commands/ExampleCommand.php.stub b/resources/stubs/install/src/Con_Console/Commands/ExampleCommand.php.blade.php similarity index 75% rename from resources/stubs/install/src/Con_Console/Commands/ExampleCommand.php.stub rename to resources/stubs/install/src/Con_Console/Commands/ExampleCommand.php.blade.php index 61d4ec4..23c11e3 100644 --- a/resources/stubs/install/src/Con_Console/Commands/ExampleCommand.php.stub +++ b/resources/stubs/install/src/Con_Console/Commands/ExampleCommand.php.blade.php @@ -1,10 +1,12 @@ -myService = new {{ PACKAGE_NAMESPACE }}Service(); + $this->myService = new {{ $PACKAGE_NAMESPACE }}Service(); $this->askSomething(); diff --git a/resources/stubs/install/src/Con_Facades/PackageName.php.blade.php b/resources/stubs/install/src/Con_Facades/PackageName.php.blade.php new file mode 100644 index 0000000..cc85f11 --- /dev/null +++ b/resources/stubs/install/src/Con_Facades/PackageName.php.blade.php @@ -0,0 +1,15 @@ +@php + echo 'bootPublishes(); + @if($SETUP_CONSOLE) + $this->loadCommands(); + @endif @if($SETUP_ROUTES) + $this->loadRoutes();@endif + } + + /** + * Register any application services + * + * @return void + */ + public function register(): void + {@if ($SETUP_CONFIG) + // package config file + $this->mergeConfigFrom(__DIR__ . '/../config/{{ $PACKAGE_SLUG }}.php', '{{ $PACKAGE_SLUG }}'); +@endif + } + + /** + * Publishes resources on boot + * + * @return void + */ + private function bootPublishes(): void + {@if ($SETUP_CONFIG) + // package configs + $this->publishes([ + __DIR__ . '/../config/{{ $PACKAGE_SLUG }}.php' => $this->app->configPath('{{ $PACKAGE_SLUG }}.php'), + ], '{{ $PACKAGE_SLUG }}-config'); +@endif @if ($SETUP_DATABASE) + // migrations + $migrationsPath = __DIR__ . '/../database/migrations/'; + + $this->publishes([ + $migrationsPath => database_path('migrations/{{ $VENDOR_SLUG }}/{{ $PACKAGE_SLUG }}') + ], '{{ $PACKAGE_SLUG }}-migrations'); + + $this->loadMigrationsFrom($migrationsPath);@endif + } +@if($SETUP_CONSOLE) + /** + * Load package commands + * + * @return void + */ + private function loadCommands(): void + { + if ($this->app->runningInConsole()) { + $this->commands([ + ExampleCommand::class, + ]); + } + } +@endif +@if($SETUP_ROUTES) + /** + * Load package specific routes + * + * @return void + */ + private function loadRoutes(): void + { + $this->loadRoutesFrom(__DIR__ . '/../routes/api.php'); + $this->loadRoutesFrom(__DIR__ . '/../routes/web.php'); + }@endif + +} diff --git a/resources/stubs/install/src/ServiceProvider.php.stub b/resources/stubs/install/src/ServiceProvider.php.stub deleted file mode 100644 index 4649f18..0000000 --- a/resources/stubs/install/src/ServiceProvider.php.stub +++ /dev/null @@ -1,89 +0,0 @@ -bootPublishes(); -{{ CON_SETUP_CONSOLE_START }} - $this->loadCommands(); -{{ CON_SETUP_CONSOLE_END }}{{ CON_SETUP_ROUTES_START }} - $this->loadRoutes();{{ CON_SETUP_ROUTES_END }} - } - - /** - * Register any application services - * - * @return void - */ - public function register(): void - {{{ CON_SETUP_CONFIG_START }} - // package config file - $this->mergeConfigFrom(__DIR__ . '/../config/{{ PACKAGE_SLUG }}.php', '{{ PACKAGE_SLUG }}'); -{{ CON_SETUP_CONFIG_END }} - // register package service - $this->app->singleton('{{ PACKAGE_SLUG }}', function () { - return new {{ PACKAGE_NAMESPACE }}Service(); - }); - } - - /** - * Publishes resources on boot - * - * @return void - */ - private function bootPublishes(): void - {{{ CON_SETUP_CONFIG_START }} - // package configs - $this->publishes([ - __DIR__ . '/../config/{{ PACKAGE_SLUG }}.php' => $this->app->configPath('{{ PACKAGE_SLUG }}.php'), - ], '{{ PACKAGE_SLUG }}-config'); -{{ CON_SETUP_CONFIG_END }}{{ CON_SETUP_DATABASE_START }} - // migrations - $migrationsPath = __DIR__ . '/../database/migrations/'; - - $this->publishes([ - $migrationsPath => database_path('migrations/{{ VENDOR_SLUG }}/{{ PACKAGE_SLUG }}') - ], '{{ PACKAGE_SLUG }}-migrations'); - - $this->loadMigrationsFrom($migrationsPath);{{ CON_SETUP_DATABASE_END }} - } -{{ CON_SETUP_CONSOLE_START }} - /** - * Load package commands - * - * @return void - */ - private function loadCommands(): void - { - if ($this->app->runningInConsole()) { - $this->commands([ - ExampleCommand::class, - ]); - } - } -{{ CON_SETUP_CONSOLE_END }}{{ CON_SETUP_ROUTES_START }} - /** - * Load pacakge-specific routes - * - * @return void - */ - private function loadRoutes(): void - { - $this->loadRoutesFrom(__DIR__ . '/../routes/api.php'); - $this->loadRoutesFrom(__DIR__ . '/../routes/web.php'); - }{{ CON_SETUP_ROUTES_END }} -} diff --git a/resources/stubs/install/src/Services/PackageNameService.php.stub b/resources/stubs/install/src/Services/PackageNameService.php.stub deleted file mode 100644 index 959b254..0000000 --- a/resources/stubs/install/src/Services/PackageNameService.php.stub +++ /dev/null @@ -1,20 +0,0 @@ -installerService = new InstallerService(); - - if ($this->hasParam('git')) { - $this->autoGitMetaLoad = $this->getParam('git') === 'true'; - } - - $this->getPrinter()->info(" - ~~~_ _ - | _ \ __ _ ~~~| | ~~~_ _ __ _ ~~~ _ __ - | |_) / _` |/ __| |/ / _` |/ _` |/ _ \ '__| - | __/ (_| | (__| < (_| | (_| | __/ | - |_| \__,_|\~~~|_|\_\__,_|\__, |\~~~|_| - |~~~/ - "); - - $result = $this->checkCurrentFolder(); - - if ($result) { - $this->askToSyncGitRepoName(); - $this->askToSyncGitUser(); - $this->askMetaDetails(); - - $this->getPrinter()->success('🔰 Check Point: Quick Setup'); - $this->getPrinter()->newline(); - - $this->askQuickSetups(); - $this->askPreConfigs(); - - $this->installerService->init()->installPackage(); - - $this->getPrinter()->success(' Your package created successfully. Now, you run "composer install". ', true); - } else { - $this->getPrinter()->error(' Operation canceled ', true); - } - - $this->getPrinter()->newline(); - } - - private function isSaidYes(string $userInput): bool - { - return $userInput == 'yes' || $userInput == 'ye' || $userInput == 'y'; - } - - #region project folder - - /** - * @throws FileNotFoundException - */ - private function checkCurrentFolder(): bool - { - $this->installerService->setBasePath(); - - if ($this->installerService->isThatLaravelApp()) { - $this->getPrinter()->info('✨ Laravel app found. Dou you want to use monorepo? (yes/no)'); - $this->getPrinter()->out("Packager will create a \"packages\" folder.", 'italic'); - $this->getPrinter()->newline(); - $this->getPrinter()->newline(); - - $input = new Input(); - $userInput = $input->read(); - - if ($this->isSaidYes($userInput)) { - $this->installerService->setBasePath(true); - - return true; - } - - return false; - } - - $currentPackage = $this->installerService->getCurrentComposerPackage(); - - if ($currentPackage) { - $this->getPrinter()->out("This folder already contains a package: ${currentPackage}", 'bold'); - $this->getPrinter()->newline(); - $this->getPrinter()->newline(); - - return false; - } - - return true; - } - - #emdregion - - #region git repo - - private function askToSyncGitRepoName(): void - { - $gitRepoAddress = null; - - try { - $gitRepoAddress = shell_exec('git config remote.origin.url'); - } catch (\Exception $e) { - } - - if (!empty($gitRepoAddress)) { - $gitRepoAddress = trim($gitRepoAddress); - - $composerPackageName = shell_exec('git config remote.origin.url'); - - if ($composerPackageName) { - $composerPackageName = Str::replaceFirst('https://github.com/', '', $composerPackageName); - $composerPackageName = Str::replaceLast('.git', '', $composerPackageName); - - if (StrSupport::validateComposerPackageName($composerPackageName)) { - $this->getPrinter()->info('✨ Git repo found. Do you want to use this repo name? (yes/no)'); - - if ($this->autoGitMetaLoad) { - $this->installerService->setComposerPackageName($composerPackageName); - - $this->getPrinter()->out("[Autofilled] Repo Name: {$composerPackageName}", 'italic'); - $this->getPrinter()->newline(); - $this->getPrinter()->newline(); - } else { - $this->getPrinter()->newline(); - $this->getPrinter()->out("Repo Name: {$composerPackageName}", 'italic'); - $this->getPrinter()->newline(); - $this->getPrinter()->newline(); - - $input = new Input(); - $userInput = $input->read(); - - if ($this->isSaidYes($userInput)) { - $this->installerService->setComposerPackageName($composerPackageName); - - return; - } - } - } - } - } - - $this->askVendorName(); - } - - private function askVendorName(): void - { - $this->getPrinter()->info('✨ Package name (in "vendor/package" format): '); - - $input = new Input(); - $userInput = $input->read(); - - if (empty($userInput)) { - $this->askVendorName(); - } - - if (!StrSupport::validateComposerPackageName($userInput)) { - $this->getPrinter()->display(">>>> {$userInput} ", true); - - $this->getPrinter()->error('⚠ Package name must be in "vendor/package" format.'); - - $this->askVendorName(); - } - - $this->installerService->setComposerPackageName($userInput); - } - - #emdregion - - #region git user - - /** - * @return void - */ - private function askToSyncGitUser(): void - { - $gitUserName = null; - $gitUserEmail = null; - - try { - $gitUserName = shell_exec('git config user.name'); - $gitUserEmail = shell_exec('git config user.email'); - } catch (\Exception $e) { - } - - if (!empty($gitUserName) && !empty($gitUserEmail)) { - $gitUserName = trim($gitUserName); - $gitUserEmail = trim($gitUserEmail); - - $this->getPrinter()->info('✨ Git user found. Do you want to use this user name and email address? (yes/no)'); - - if ($this->autoGitMetaLoad) { - $this->installerService->setAuthorName($gitUserName); - $this->installerService->setAuthorEmail($gitUserEmail); - - $this->getPrinter()->out("[Autofilled] Username: {$gitUserName}", 'italic'); - $this->getPrinter()->newline(); - $this->getPrinter()->out("[Autofilled] Email: {$gitUserEmail}", 'italic'); - $this->getPrinter()->newline(); - $this->getPrinter()->newline(); - - return; - } else { - $this->getPrinter()->newline(); - $this->getPrinter()->out("Username: {$gitUserName}", 'italic'); - $this->getPrinter()->newline(); - $this->getPrinter()->out("Email: {$gitUserEmail}", 'italic'); - $this->getPrinter()->newline(); - $this->getPrinter()->newline(); - - $input = new Input(); - $userInput = $input->read(); - - if ($this->isSaidYes($userInput)) { - $this->installerService->setAuthorName($gitUserName); - $this->installerService->setAuthorEmail($gitUserEmail); - - return; - } - } - } - - $this->askAuthorName(); - $this->askAuthorEmail(); - } - - /** - * @return void - */ - private function askAuthorName(): void - { - $this->getPrinter()->info('✨ Author Name: '); - - $input = new Input(); - $userInput = $input->read(); - - if (empty($userInput)) { - $this->askAuthorName(); - } - - $userInput = StrSupport::cleanString($userInput); - - $this->installerService->setAuthorName($userInput); - } - - /** - * @return void - */ - private function askAuthorEmail(): void - { - $this->getPrinter()->info('✨ Author Email: '); - - $input = new Input(); - $userInput = $input->read(); - - if (empty($userInput)) { - $this->askAuthorEmail(); - } elseif (filter_var($userInput, FILTER_VALIDATE_EMAIL)) { - $this->getPrinter()->display(">>>> {$userInput} ", true); - - $this->getPrinter()->error('⚠ Invalid email address!'); - - $this->askAuthorEmail(); - } else { - $userInput = StrSupport::cleanString($userInput); - - $this->installerService->setAuthorEmail($userInput); - } - } - - #emdregion - - - #region meta info - - /** - * @return void - * @throws StrParseException - */ - private function askMetaDetails(): void - { - $this->askPackageTitle(); - $this->askPackageDescription(); - $this->askPackageTags(); - } - - /** - * @return void - * @throws StrParseException - */ - private function askPackageTitle(): void - { - $composerPackageName = $this->installerService->getConfigs()['COMPOSER_PACKAGE_NAME'] ?? null; - $packageTitle = ''; - - if ($composerPackageName) { - $packageTitle = explode('/', $composerPackageName)[1] ?? null; - $packageTitle = $packageTitle ? StrSupport::convertToPascalCase($packageTitle) : null; - } - - $packageTitle = $packageTitle ?: ''; - $this->getPrinter()->info("✨ Package Title ({$packageTitle}) [optional]: "); - - if ($this->autoGitMetaLoad) { - $this->getPrinter()->display(">>>> [Autofilled] Chosen: {$packageTitle} "); - } else { - $input = new Input(); - $userInput = $input->read(); - - if (!empty($userInput)) { - $packageTitle = trim($userInput); - } - - $this->getPrinter()->display(">>>> Chosen: {$packageTitle} "); - } - - $this->installerService->setPackageTitle($packageTitle); - } - - /** - * @return void - */ - private function askPackageDescription(): void - { - $this->getPrinter()->info('✨ Package Description [optional]: '); - - $input = new Input(); - $userInput = $input->read(); - - if (!empty($userInput)) { - $description = ucfirst(trim($userInput)); - $this->installerService->setPackageDescription($description); - - $this->getPrinter()->display(">>>> Chosen: {$description} "); - $this->getPrinter()->newline(); - } - } - - /** - * @return void - */ - private function askPackageTags(): void - { - $this->getPrinter()->info('✨ Package Tags (split with comma) [optional]: '); - - $input = new Input(); - $userInput = $input->read(); - - if (!empty($userInput)) { - $tags = trim($userInput); - $this->installerService->setPackageTags($tags); - - $tags = $this->installerService->getConfigs()['PACKAGE_TAGS'] ?? null; - - $this->getPrinter()->display(">>>> Chosen: {$tags} "); - $this->getPrinter()->newline(); - } - } - - #emdregion - - #region quick setup - - /** - * @return void - */ - private function askQuickSetups(): void - { - $this->getPrinter()->info('✨ Do you want to apply quick setups? (yes/no)'); - $this->getPrinter()->out("This step contains config, database, facade, resources, console, and route setups.", 'italic'); - $this->getPrinter()->newline(); - $this->getPrinter()->newline(); - - $input = new Input(); - $userInput = $input->read(); - - if ($this->isSaidYes($userInput)) { - $this->askConfigSetup(); - $this->askDatabaseSetup(); - $this->askFacadeSetup(); - $this->askResourcesSetup(); - $this->askConsoleSetup(); - $this->askRoutesSetup(); - } - } - - /** - * @return void - */ - private function askConfigSetup(): void - { - $this->getPrinter()->info("🟠 Add config❔ (yes/no)"); - - $input = new Input(); - $userInput = $input->read(); - - $this->installerService->setupConfig($this->isSaidYes($userInput)); - } - - /** - * @return void - */ - private function askDatabaseSetup(): void - { - $this->getPrinter()->info("🟠 Add database❔ (yes/no)"); - - $input = new Input(); - $userInput = $input->read(); - - $this->installerService->setupDatabase($this->isSaidYes($userInput)); - } - - /** - * @return void - */ - private function askFacadeSetup(): void - { - $this->getPrinter()->info("🟠 Add facade❔ (yes/no)"); - - $input = new Input(); - $userInput = $input->read(); - - $this->installerService->setupFacade($this->isSaidYes($userInput)); - } - - /** - * @return void - */ - private function askResourcesSetup(): void - { - $this->getPrinter()->info("🟠 Add resources❔ (yes/no)"); - - $input = new Input(); - $userInput = $input->read(); - - $this->installerService->setupResources($this->isSaidYes($userInput)); - } - - /** - * @return void - */ - private function askConsoleSetup(): void - { - $this->getPrinter()->info("🟠 Add commands❔ (yes/no)"); - - $input = new Input(); - $userInput = $input->read(); - - $this->installerService->setupConsole($this->isSaidYes($userInput)); - } - - /** - * @return void - */ - private function askRoutesSetup(): void - { - $this->getPrinter()->info("🟠 Add routes❔ (yes/no)"); - - $input = new Input(); - $userInput = $input->read(); - - $this->installerService->setupRoutes($this->isSaidYes($userInput)); - } - - #emdregion - - #region pre-configs - - private function askPreConfigs(): void - { - $this->getPrinter()->info('✨ Do you want to apply pre-configs? (yes/no)'); - $this->getPrinter()->out("This step contains ...", 'italic'); - $this->getPrinter()->newline(); - $this->getPrinter()->newline(); - - $input = new Input(); - $userInput = $input->read(); - - if ($this->isSaidYes($userInput)) { - $this->askPhpStan(); - $this->askPest(); - $this->askPhpCsFixer(); - } - } - - /** - * @return void - */ - private function askPhpStan(): void - { - $this->getPrinter()->info("🟠 Add PHPStan for linting❔ (yes/no)"); - - $input = new Input(); - $userInput = $input->read(); - - $this->installerService->setupPhpStan($this->isSaidYes($userInput)); - } - - /** - * @return void - */ - private function askPest(): void - { - $this->getPrinter()->info("🟠 Add Pest for testing❔ (yes/no)"); - - $input = new Input(); - $userInput = $input->read(); - - $this->installerService->setupPest($this->isSaidYes($userInput)); - } - - /** - * @return void - */ - private function askPhpCsFixer(): void - { - $this->getPrinter()->info("🟠 Add PHP-CS-Fixer for fixing coding standards issues❔ (yes/no)"); - - $input = new Input(); - $userInput = $input->read(); - - $this->installerService->setupPhpCsFixer($this->isSaidYes($userInput)); - $this->installerService->setupPhpUnit($this->isSaidYes($userInput)); - } - - #emdregion -} diff --git a/src/Commands/NewPackageCommand.php b/src/Commands/NewPackageCommand.php new file mode 100644 index 0000000..47a664b --- /dev/null +++ b/src/Commands/NewPackageCommand.php @@ -0,0 +1,674 @@ +setDefinition( + new InputDefinition([ + new InputArgument('vendor-name/package-name', InputArgument::OPTIONAL), + new InputOption('git', 'g', InputOption::VALUE_OPTIONAL, 'Auto load details from git', 'false'), + ]) + ); + } + + /** + * Execute the command + * + * @param InputInterface $input + * @param OutputInterface $output + * @return int 0 if everything went fine, or an exit code. + */ + protected function execute(InputInterface $input, OutputInterface $output): int + { + $this->io = new SymfonyStyle($input, $output); + $this->progressBar = new ProgressBar($output, 50); + $this->installerService = new InstallerService(); + + $this->io->title($this->welcomeMessage); + $options = $input->getOptions(); + + $result = $this->checkCurrentFolder(); + + if (!$result) { + $this->io->error('Operation canceled'); + + return Command::FAILURE; + } + + $this->autoLoadDetailFromGit = ($options['git'] ?? 'false') === 'true'; + + // symfony console get command parameters + // var_dump($input->getArguments(), $options, $input->getFirstArgument()); + + $packageNameArg = $input->getArgument('vendor-name/package-name'); + + // if has spacific argument + if ($packageNameArg) { + $result = $this->checkPackageName($input->getArgument('vendor-name/package-name')); + + if ($result) { + $this->installerService->setComposerPackageName($packageNameArg); + + $this->runSetup(); + } else { + $this->askVendorPackageName(); + } + } else { + $this->io->info('🔰 Check Point: Meta Details'); + + $this->askToSyncGitRepoName(); + + $this->runSetup(); + } + + return Command::SUCCESS; + } + + private function runSetup() + { + $this->askToSyncGitUser(); + $this->askMetaDetails(); + + $this->io->info('🔰 Check Point: Quick Setup'); + + $this->askQuickSetups(); + + $this->io->info('🔰 Check Point: Pre Configs'); + + $this->askPreConfigs(); + + $this->installerService->init()->installPackage(); + + $this->io->success(' Your package created successfully. Now, you run "composer install".'); + } + + #region project folder + + /** + * Check current folder + * + * If the current folder is a composer project, it will create a "packages" folder. + * If the current folder is a package, it will throw an error. + * + * @return bool + * @throws FileNotFoundException + */ + private function checkCurrentFolder(): bool + { + if ($this->installerService->isComposerJsonExists()) { + $this->io->warning('You are in a composer project.'); + } + + $this->installerService->setBasePath(); + + if ($this->installerService->isThatLaravelApp()) { + $this->io->write(' ✨ Laravel app found. Packager will create a \"packages\" folder.'); + + $answer = $this->io->askQuestion( + new ConfirmationQuestion('Dou you want to use as monorepo?', false) + ); + + if ($answer) { + $this->installerService->setBasePath('packages'); + + return true; + } + + return false; + } + + $currentPackage = $this->installerService->getCurrentComposerPackage(); + + if ($currentPackage) { + $this->io->error("This folder already contains a package: {$currentPackage}"); + + return false; + } + + return true; + } + + #endregion + + #region [Question Group] Package Name / Sync Git Repo / User Name + + private function askVendorPackageName(): void + { + $answer = $this->io->askQuestion( + new Question('✨ Package name (in "vendor/package" format): ') + ); + + $result = $this->checkPackageName($answer); + + if ($result) { + $this->installerService->setComposerPackageName($answer); + + return; + } + + $this->askVendorPackageName(); + } + + private function askToSyncGitRepoName(): void + { + $gitRepoAddress = null; + + try { + $gitRepoAddress = shell_exec('git config remote.origin.url'); + } catch (\Exception $e) { + } + + if (!empty($gitRepoAddress)) { + $gitRepoAddress = trim($gitRepoAddress); + + $composerPackageName = shell_exec('git config remote.origin.url'); + + if ($composerPackageName) { + $composerPackageName = Str::replaceFirst('https://github.com/', '', $composerPackageName); + $composerPackageName = Str::replaceLast('.git', '', $composerPackageName); + + if (StrSupport::validateComposerPackageName($composerPackageName)) { + $this->io->info('✨ Git repo found.'); + + if ($this->autoLoadDetailFromGit) { + $this->installerService->setComposerPackageName($composerPackageName); + + $this->io->info("[Autofilled] Repo Name: {$composerPackageName}"); + + return; + } else { + $answer = $this->io->askQuestion( + new ConfirmationQuestion("Do you want to use this repo name ({$composerPackageName})?", false) + ); + + if (!$answer) { + $this->askVendorPackageName(); + + return; + } + + $this->io->info("Repo Name: {$composerPackageName}"); + + $this->installerService->setComposerPackageName($composerPackageName); + } + } + } + } + + $this->askVendorPackageName(); + } + + private function askToSyncGitUser(): void + { + $gitUserName = null; + $gitUserEmail = null; + + try { + $gitUserName = shell_exec('git config user.name'); + $gitUserEmail = shell_exec('git config user.email'); + } catch (\Exception $e) { + } + + if (!empty($gitUserName) && !empty($gitUserEmail)) { + $gitUserName = trim($gitUserName); + $gitUserEmail = trim($gitUserEmail); + + $this->io->info('✨ Git user found.'); + + if ($this->autoLoadDetailFromGit) { + $this->installerService->setAuthorName($gitUserName); + $this->installerService->setAuthorEmail($gitUserEmail); + + $this->io->info("[Autofilled] Username: {$gitUserName}, Email: {$gitUserEmail}"); + + return; + } else { + $answer = $this->io->askQuestion( + new ConfirmationQuestion('Do you want to use this git user?', true) + ); + + if (!$answer) { + $this->askAuthorName(); + $this->askAuthorEmail(); + } + + $this->io->info("Username: {$gitUserName}, Email: {$gitUserEmail}"); + + $this->installerService->setAuthorName($gitUserName); + $this->installerService->setAuthorEmail($gitUserEmail); + + return; + } + } + + $this->askAuthorName(); + $this->askAuthorEmail(); + } + + #endregion + + #region [Question Group] User Name / Email + + private function askAuthorName(): void + { + $answer = $this->io->askQuestion( + new Question('✨ Author Name: ') + ); + + if (empty($answer)) { + $this->askAuthorName(); + + return; + } + + $answer = StrSupport::cleanString($answer); + + $this->installerService->setAuthorName($answer); + } + + private function askAuthorEmail(): void + { + $answer = $this->io->askQuestion( + new Question('✨ Author Email: ') + ); + + if (empty($answer)) { + $this->askAuthorEmail(); + + return; + } elseif (filter_var($answer, FILTER_VALIDATE_EMAIL)) { + $this->io->info("⚠ Invalid email address: {$answer}"); + + $this->askAuthorEmail(); + + return; + } else { + $answer = StrSupport::cleanString($answer); + + $this->installerService->setAuthorEmail($answer); + } + } + + #endregion + + #region [Question Group] Meta Info + + /** + * @return void + * @throws StrParseException + */ + private function askMetaDetails(): void + { + $this->askPackageTitle(); + $this->askPackageDescription(); + $this->askPackageTags(); + } + + /** + * @return void + * @throws StrParseException + */ + private function askPackageTitle(): void + { + $composerPackageName = $this->installerService->getConfigs()['COMPOSER_PACKAGE_NAME'] ?? null; + $packageTitle = ''; + + if ($composerPackageName) { + $packageTitle = explode('/', $composerPackageName)[1] ?? null; + $packageTitle = $packageTitle ? StrSupport::convertToPascalCase($packageTitle) : null; + } + + $packageTitle = $packageTitle ?: ''; + $answer = $this->io->askQuestion( + new Question('✨ Package Title: ', $packageTitle) + ); + + $answer = trim($answer ?? ''); + + if (empty($answer)) { + $this->askPackageTitle(); + + return; + } + + $this->io->info("Chosen: {$packageTitle} "); + $this->installerService->setPackageTitle($packageTitle); + } + + /** + * @return void + */ + private function askPackageDescription(): void + { + $answer = $this->io->askQuestion( + new Question('✨ Package Description [optional]: ') + ); + + $answer = trim($answer ?? ''); + + if (!empty($answer)) { + $description = ucfirst(trim($answer)); + $this->installerService->setPackageDescription($description); + + $this->io->info("Chosen: {$description} "); + } + } + + /** + * @return void + */ + private function askPackageTags(): void + { + $answer = $this->io->askQuestion( + new Question('✨ Package Tags (split with comma) [optional]: ') + ); + + $answer = trim($answer ?? ''); + + if (!empty($answer)) { + $tags = trim($answer); + $this->installerService->setPackageTags($tags); + + $tags = $this->installerService->getConfigs()['PACKAGE_TAGS'] ?? null; + + $this->io->info("Chosen: {$tags} "); + } + } + + #endregion + + #region [Question Group] Quick Setup + + /** + * @return void + */ + private function askQuickSetups(): void + { + $answer = $this->io->askQuestion( + new ConfirmationQuestion('✨ Do you want to apply quick setups?' . PHP_EOL . ' This step contains config, database, facade, resources, console, and route setups.' . PHP_EOL, true, '/^(y|all|j)/i') + ); + + if ($answer) { + $this->askConfigSetup(); + $this->askDatabaseSetup(); + $this->askFacadeSetup(); + $this->askResourcesSetup(); + $this->askConsoleSetup(); + $this->askRoutesSetup(); + } + } + + /** + * @return void + */ + private function askConfigSetup(): void + { + $answer = $this->io->askQuestion( + new ConfirmationQuestion('🟠 Add config?') + ); + + $this->installerService->setupConfig($answer); + } + + /** + * @return void + */ + private function askDatabaseSetup(): void + { + $answer = $this->io->askQuestion( + new ConfirmationQuestion('🟠 Add database?') + ); + + $this->installerService->setupDatabase($answer); + } + + /** + * @return void + */ + private function askFacadeSetup(): void + { + $answer = $this->io->askQuestion( + new ConfirmationQuestion('🟠 Add facade?') + ); + + $this->installerService->setupFacade($answer); + } + + /** + * @return void + */ + private function askResourcesSetup(): void + { + $answer = $this->io->askQuestion( + new ConfirmationQuestion('🟠 Add resources?') + ); + + $this->installerService->setupResources($answer); + } + + /** + * @return void + */ + private function askConsoleSetup(): void + { + $answer = $this->io->askQuestion( + new ConfirmationQuestion('🟠 Add commands?') + ); + + $this->installerService->setupConsole($answer); + } + + /** + * @return void + */ + private function askRoutesSetup(): void + { + $answer = $this->io->askQuestion( + new ConfirmationQuestion('🟠 Add routes?') + ); + + $this->installerService->setupRoutes($answer); + } + + // #endregion + + // #region pre-configs + + // private function askPreConfigs(): void + // { + // $this->io->info('✨ Do you want to apply pre-configs? (yes/no)'); + // $this->io->out("This step contains ...", 'italic'); + // + // + + // + // $answer = $input->read(); + + // if ($answer) { + // $this->askPhpStan(); + // $this->askPest(); + // $this->askPhpCsFixer(); + // } + // } + + // /** + // * @return void + // */ + // private function askPhpStan(): void + // { + // $this->io->info("🟠 Add PHPStan for linting?"); + + // + // $answer = $input->read(); + + // $this->installerService->setupPhpStan($answer); + // } + + // /** + // * @return void + // */ + // private function askPest(): void + // { + // $this->io->info("🟠 Add Pest for testing?"); + + // + // $answer = $input->read(); + + // $this->installerService->setupPest($answer); + // } + + // /** + // * @return void + // */ + // private function askPhpCsFixer(): void + // { + // $this->io->info("🟠 Add PHP-CS-Fixer for fixing coding standards issues?"); + + // + // $answer = $input->read(); + + // $this->installerService->setupPhpCsFixer($answer); + // $this->installerService->setupPhpUnit($answer); + // } + + #endregion + + #region [Question Group] Pre-configs + + private function askPreConfigs(): void + { + $answer = $this->io->askQuestion( + new ConfirmationQuestion('✨ Do you want to apply pre-configs?') + ); + + if ($answer) { + $this->askPhpStan(); + $this->askPest(); + $this->askPhpCsFixer(); + } + } + + /** + * @return void + */ + private function askPhpStan(): void + { + $answer = $this->io->askQuestion( + new ConfirmationQuestion('🟠 Add PHPStan for linting?') + ); + + $this->installerService->setupPhpStan($answer); + } + + /** + * @return void + */ + private function askPest(): void + { + $answer = $this->io->askQuestion( + new ConfirmationQuestion('🟠 Add Pest for testing?') + ); + + $this->installerService->setupPest($answer); + } + + /** + * @return void + */ + private function askPhpCsFixer(): void + { + $answer = $this->io->askQuestion( + new ConfirmationQuestion('🟠 Add PHP-CS-Fixer for fixing coding standards issues?') + ); + + $this->installerService->setupPhpCsFixer($answer); + $this->installerService->setupPhpUnit($answer); + } + + #endregion + + #region Helpers + + private function checkPackageName(string $answer): bool + { + if (empty($answer)) { + return false; + } + + if (!StrSupport::validateComposerPackageName($answer)) { + $this->io->write("Your input: \"{$answer}\" "); + $this->io->error('⚠ Package name must be in "vendor-name/package-name" format. Invalid package name. Please, try again.'); + + render(<<<'HTML' +
+ +
+ HTML); + + + return false; + } + + return true; + } + + #endregion +} diff --git a/src/Exceptions/FileNotFoundException.php b/src/Exceptions/FileNotFoundException.php new file mode 100644 index 0000000..a129083 --- /dev/null +++ b/src/Exceptions/FileNotFoundException.php @@ -0,0 +1,11 @@ + 'Laravel Ready Package', + 'PACKAGE_TAGS' => [], 'SETUP_CONFIG' => true, 'SETUP_DATABASE' => false, 'SETUP_FACADES' => false, 'SETUP_RESOURCES' => false, 'SETUP_CONSOLE' => false, 'SETUP_ROUTES' => false, - "SETUP_PHPSTAN" => false, - 'SETUP_PEST' => false, - 'SETUP_PHP_CS_FIXER' => false, + "USE_PHPSTAN" => false, + 'USE_PEST' => false, + 'USE_PHP_CS_FIXER' => false, 'SETUP_PHPUNIT' => false, - 'SETUP_PACKAGE_TAGS' => false, 'SETUP_PACKAGE_DESCRIPTION' => false, ]; public function __construct(array|null $configs = null) { $this->file = new Filesystem(); - $this->stubSupport = new StubSupport(); + $this->stubSupport = new TemplateSupport(); $this->basePath = realpath('./') ?: './'; if ($configs) { @@ -48,13 +49,22 @@ public function __construct(array|null $configs = null) } } - public function setBasePath(bool $usePackagesFolder = false): self + public function setBasePath(string|null $subFolder = null): self { - $this->isThatLaravelApp = $usePackagesFolder; + $this->isThatLaravelApp = !empty($subFolder); + $this->basePath = './'; - $path = $usePackagesFolder ? './packages' : './'; + if ($subFolder) { + $path = './' . $subFolder; - $this->basePath = realpath($path) ?: './'; + if (!realpath($path)) { + $this->file->makeDirectory($path); + + $this->basePath = $path; + } else { + $this->basePath = $path; + } + } return $this; } @@ -75,6 +85,7 @@ public function setComposerPackageName(string $packageName): self $this->configs['PACKAGE_NAMESPACE'] = StrSupport::convertToPascalCase($_packageName[1]); $this->configs['PACKAGE_SLUG'] = StrSupport::convertToSlug($_packageName[1]); $this->configs['VENDOR_NAMESPACE'] = StrSupport::convertToPascalCase($_packageName[0]); + $this->configs['VENDOR_SLUG'] = StrSupport::convertToSlug($_packageName[0]); $this->configs['FULL_NAMESPACE_JSON'] = "{$this->configs['VENDOR_NAMESPACE']}\\\\{$this->configs['PACKAGE_NAMESPACE']}"; $this->configs['FULL_NAMESPACE'] = "{$this->configs['VENDOR_NAMESPACE']}\\{$this->configs['PACKAGE_NAMESPACE']}"; @@ -104,8 +115,7 @@ public function setPackageTitle(string $packageTitle): self public function setPackageDescription(string $description): self { - $this->configs['PACKAGE_DESCRIPTION'] = $description; - $this->configs['SETUP_PACKAGE_DESCRIPTION'] = true; + $this->configs['PACKAGE_DESC'] = $description; return $this; } @@ -114,7 +124,6 @@ public function setPackageTags(string $tags): self { // initial trim $tags = trim(trim($tags, ',')); - echo $tags; // splice to array $_tags = array_filter(explode(',', $tags), fn ($tag) => !empty($tag)); @@ -125,13 +134,13 @@ public function setPackageTags(string $tags): self // order by asc usort($_tags, fn ($a, $b) => strlen($a) - strlen($b)); - // remove duplicate tags - $_tags = array_unique($_tags); + // remove duplicate tags then filter empty tags + $_tags = array_filter(array_unique($_tags), fn ($tag) => !empty($tag)); - $_tags = implode('", "', $_tags); + // reset array keys + $_tags = array_values($_tags); - $this->configs['PACKAGE_TAGS'] = "\"{$_tags}\""; - $this->configs['SETUP_PACKAGE_TAGS'] = !empty($_tags); + $this->configs['PACKAGE_TAGS'] = $_tags; return $this; } @@ -152,7 +161,7 @@ public function setupConfig(bool $setup): self public function setupFacade(bool $setup): self { - $this->configs['SETUP_FACADE'] = $setup; + $this->configs['SETUP_FACADES'] = $setup; return $this; } @@ -180,21 +189,21 @@ public function setupRoutes(bool $setup): self public function setupPhpStan(bool $setup): self { - $this->configs['SETUP_PHPSTAN'] = $setup; + $this->configs['USE_PHPSTAN'] = $setup; return $this; } public function setupPest(bool $setup): self { - $this->configs['SETUP_PEST'] = $setup; + $this->configs['USE_PEST'] = $setup; return $this; } public function setupPhpCsFixer(bool $setup): self { - $this->configs['SETUP_PHP_CS_FIXER'] = $setup; + $this->configs['USE_PHP_CS_FIXER'] = $setup; return $this; } @@ -222,8 +231,8 @@ public function getConfigs(): array */ public function isThatLaravelApp(): bool { - if ($this->isComposerJsonExists() && $this->file->exists("{$this->basePath}/artisan")) { - $composerJsonPath = "{$this->basePath}/composer.json"; + if ($this->isComposerJsonExists() && $this->file->exists("./artisan")) { + $composerJsonPath = "./composer.json"; $composerJson = json_decode($this->file->get($composerJsonPath), true); @@ -242,7 +251,7 @@ public function isThatLaravelApp(): bool */ public function isComposerJsonExists(): bool { - return $this->file->exists("{$this->basePath}/composer.json"); + return $this->file->exists("./composer.json"); } /** @@ -253,7 +262,7 @@ public function isComposerJsonExists(): bool public function getCurrentComposerPackage(): ?string { if ($this->isComposerJsonExists()) { - $composerJsonPath = "{$this->basePath}/composer.json"; + $composerJsonPath = "./composer.json"; $composerJson = json_decode($this->file->get($composerJsonPath), true); if (isset($composerJson['name'])) { @@ -280,19 +289,19 @@ public function init(): self $packageFiles = [ [ 'target' => "{$this->basePath}/.gitignore", - 'stub' => __DIR__ . '/../../resources/stubs/packager/gitignore.stub', + 'stub' => __DIR__ . '/../../resources/stubs/packager/gitignore.blade.php', 'allow' => true, ], [ 'target' => "{$this->basePath}/README.md", - 'stub' => __DIR__ . '/../../resources/stubs/packager/README.stub', + 'stub' => __DIR__ . '/../../resources/stubs/packager/README.md.blade.php', 'allow' => true, ] ]; foreach ($packageFiles as $file) { if ($file['allow']) { - $this->stubSupport->applyStub($file['stub'], $file['target']); + $this->stubSupport->replaceTemplate($file['stub'], $file['target']); } } } @@ -359,10 +368,9 @@ public function installPackage(): void } } } // then copy the file - elseif (str_ends_with($relativePath, '.stub') && ($conditionalConfig === null || $conditionalConfig === true)) { - $relativePath = Str::replace('.stub', '', $relativePath); + elseif (str_ends_with($relativePath, '.blade.php') && ($conditionalConfig === null || $conditionalConfig === true)) { + $relativePath = Str::replace('.blade.php', '', $relativePath); $fileName = basename($relativePath, ".php"); - $targetPath = "{$packageTargetPath}/{$relativePath}"; // rename the file name to the package name @@ -373,9 +381,7 @@ public function installPackage(): void $targetPath = Str::replace('package-slug', $this->configs['PACKAGE_SLUG'], $targetPath); } - $stubPath = $filePath; - - $this->stubSupport->applyStub($stubPath, $targetPath, $this->configs); + $this->stubSupport->replaceTemplate($filePath, $targetPath, $this->configs); } } } diff --git a/src/Services/PackagerService.php b/src/Services/PackagerService.php index 8e81c06..903b3ac 100644 --- a/src/Services/PackagerService.php +++ b/src/Services/PackagerService.php @@ -9,7 +9,7 @@ use LaravelReady\Packager\Exceptions\StrParseException; use LaravelReady\Packager\Exceptions\StubException; use LaravelReady\Packager\Supports\StrSupport; -use LaravelReady\Packager\Supports\StubSupport; +use LaravelReady\Packager\Supports\TemplateSupport; use LaravelReady\Packager\Supports\PackagerSupport; use LaravelReady\Packager\Supports\Php\PhpSpManipulate; @@ -21,7 +21,7 @@ class PackagerService private Filesystem $file; - private StubSupport $stubSupport; + private TemplateSupport $stubSupport; /** * Relative paths for selected commands @@ -38,7 +38,7 @@ class PackagerService public function __construct() { $this->file = new Filesystem(); - $this->stubSupport = new StubSupport(); + $this->stubSupport = new TemplateSupport(); // TODO: add support for custom base path $this->basePath = realpath('./') ?: './'; @@ -84,7 +84,7 @@ public function make(string $makeCommand, string $makeValue): bool|null $stubPath = __DIR__ . "/../../resources/stubs/command/{$makeCommand}.php.stub"; - $this->stubSupport->applyStub($stubPath, $targetPath, $replacements); + $this->stubSupport->replaceTemplate($stubPath, $targetPath, $replacements); if ($makeCommand === 'command') { $serviceProviderPath = "{$this->basePath}/src/ServiceProvider.php"; @@ -148,7 +148,7 @@ public function makeMigration(string $tableName, string $type): bool|null $stubPath = __DIR__ . "/../../resources/stubs/command/Migration.php.stub"; - $this->stubSupport->applyStub($stubPath, $targetPath, $replacements); + $this->stubSupport->replaceTemplate($stubPath, $targetPath, $replacements); return $this->file->exists($targetPath); } diff --git a/src/Supports/BladeSupport.php b/src/Supports/BladeSupport.php new file mode 100644 index 0000000..cd24540 --- /dev/null +++ b/src/Supports/BladeSupport.php @@ -0,0 +1,64 @@ +file = new Filesystem(); + } + + /** + * Render template + * + * @param string $templatePath + * @param array $data + * + * @return string|null + * @throws \LaravelReady\Packager\Exceptions\FileNotFoundException + */ + public function renderTemplate(string $templatePath, array $data = []): string + { + if (!$this->file->exists($templatePath)) { + throw new FileNotFoundException("Template file not found: {$templatePath}"); + } + + $engineResolver = new EngineResolver(); + $bladeCompiler = new BladeCompiler(new Filesystem(), __DIR__ . '/../../cache'); + $engineResolver->register('blade', function () use ($bladeCompiler) { + return new CompilerEngine($bladeCompiler); + }); + + $engineResolver->register('php', function () { + return new PhpEngine(); + }); + + $eventDispatcher = new Dispatcher(); + + $viewFactory = new Factory( + $engineResolver, + new FileViewFinder( + new Filesystem(), + ['resources/views'] + ), + $eventDispatcher + ); + + $view = $viewFactory->file($templatePath, $data); + + return $view->render(); + } +} diff --git a/src/Supports/StubSupport.php b/src/Supports/StubSupport.php deleted file mode 100644 index 79114bb..0000000 --- a/src/Supports/StubSupport.php +++ /dev/null @@ -1,103 +0,0 @@ -file = new Filesystem(); - } - - /** - * Copy file from stub to target with replaced values - * - * @param string $stubPath stub template path - * @param string $targetPath target output path - * @param array|null $replacements replacements list - * @return bool|int - * @throws FileNotFoundException - * @throws StubException - */ - public function applyStub(string $stubPath, string $targetPath, array|null $replacements = null): bool|int - { - $outputPath = "{$targetPath}"; - - if (!empty($stubPath)) { - if (!$this->file->exists(path: $stubPath)) { - throw new FileNotFoundException(message: "Stub file is not exists: {$stubPath}"); - } - } - - if (!$this->file->exists($outputPath)) { - $subContent = $this->file->get($stubPath); - - if (empty($subContent)) { - throw new StubException(message: "Stub file content is empty"); - } - - $replaceContent = self::replaceStubContent($subContent, $replacements); - - if ($replaceContent) { - if (Str::endsWith('.json', $outputPath)) { - $replaceContent = StrSupport::jsonFix($replaceContent); - } - - return $this->file->put($outputPath, $replaceContent); - } - } - - return false; - } - - /*** - * Replace values with keys in given stub content - * - * @param string $content - * @param array|null $replacements - * - * @return string|null - */ - public function replaceStubContent(string $content, array|null $replacements = null): string|null - { - if ($replacements) { - foreach ($replacements as $key => $replacement) { - $content = Str::replace("{{ {$key} }}", $replacement, $content); - - if (Str::startsWith($key, 'SETUP_')) { - if (!$replacement) { - $findPattern = "/{{ CON_{$key}_START }}/"; - $replacePattern = "/{{ CON_{$key}_START }}((.|\n)*?){{ CON_{$key}_END }}/"; - - preg_match_all($findPattern, $content, $preMatches); - - if (isset($preMatches[0]) && count($preMatches[0]) > 0) { - for ($i = 0; $i < count($preMatches[0]); $i++) { - preg_match_all(pattern: $replacePattern, subject: $content, matches: $matches); - - if ($matches && count($matches) && count($matches[0]) > 0) { - $content = Str::replace($matches[0], '', $content); - } - } - } else { - $content = preg_replace(pattern: $replacePattern, replacement: '', subject: $content); - } - } elseif ($replacement === true) { - $content = Str::replace("{{ CON_{$key}_START }}", '', $content); - $content = Str::replace("{{ CON_{$key}_END }}", '', $content); - } - } - } - } - - return $content; - } -} diff --git a/src/Supports/TemplateSupport.php b/src/Supports/TemplateSupport.php new file mode 100644 index 0000000..862288a --- /dev/null +++ b/src/Supports/TemplateSupport.php @@ -0,0 +1,62 @@ +file = new Filesystem(); + $this->bladeSupport = new BladeSupport(); + } + + /** + * Copy file from stub to target with replaced values + * + * @param string $stubPath stub template path + * @param string $targetPath target output path + * @param array|null $replacements replacements list + * @return bool|int + * @throws FileNotFoundException + * @throws StubException + */ + public function replaceTemplate(string $stubPath, string $targetPath, array|null $replacements = null): bool|int + { + if (!empty($stubPath)) { + if (!$this->file->exists(path: $stubPath)) { + throw new FileNotFoundException(message: "Stub file is not exists: {$stubPath}"); + } + } + + if (!$this->file->exists($targetPath)) { + $replaceContent = $this->bladeSupport->renderTemplate($stubPath, $replacements); + + if ($replaceContent) { + $outputFileExtension = pathinfo($targetPath, PATHINFO_EXTENSION); + + if ($outputFileExtension === 'json') { + $replaceContent = StrSupport::jsonFix($replaceContent); + $replaceContent = json_encode(json_decode($replaceContent), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); + } + + return $this->file->put($targetPath, $replaceContent); + } else { + $stubContent = $this->file->get($stubPath); + + if ($stubContent) { + return $this->file->put($targetPath, $stubContent); + } + } + } + + return false; + } +} diff --git a/tests/Unit/Supports/StubSupportTest.php b/tests/Unit/Supports/StubSupportTest.php index f7cad32..323f029 100644 --- a/tests/Unit/Supports/StubSupportTest.php +++ b/tests/Unit/Supports/StubSupportTest.php @@ -1,9 +1,9 @@ replaceStubContent(content: 'TEMPLATE {{ REPLACE_ME }}', replacements: [ 'REPLACE_ME' => 'is replaced'