From 0f2e9b5f97f037e76235ad2358e1d054bd730160 Mon Sep 17 00:00:00 2001 From: Egoist Date: Thu, 1 Dec 2022 07:38:36 +0300 Subject: [PATCH 01/41] Add symfony console and termwind deps --- bin/packager | 30 +- composer.json | 6 +- composer.lock | 4350 +++++++++++++++++++++++++------------------------ 3 files changed, 2226 insertions(+), 2160 deletions(-) diff --git a/bin/packager b/bin/packager index 6cb7f39..0206fae 100644 --- a/bin/packager +++ b/bin/packager @@ -1,34 +1,12 @@ #!/usr/bin/env php __DIR__ . '/../src/Command', - 'theme' => '', - 'debug' => true, -]); - -try { - $app->runCommand($argv); -} catch (CommandNotFoundException $notFoundException) { - $app->getPrinter()->error("Command Not Found."); +use Symfony\Component\Console\Application; - return 1; -} catch (Exception $exception) { - if ($app->config->debug) { - $app->getPrinter()->error("An error occurred:"); - $app->getPrinter()->error($exception->getMessage()); - } +$application = new Application(); - return 1; -} +// ... register commands -return 0; \ No newline at end of file +$application->run(); diff --git a/composer.json b/composer.json index 1aa0932..b2fc012 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,9 @@ "illuminate/support": "^8.8 || ^v9.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" }, "scripts": { "test": "DB_DATABASE=:memory: vendor/bin/pest --colors=always --parallel", @@ -59,5 +61,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..8250a3f 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": "eec3af96ca0e05a52331c0daea9308cb", "packages": [ { "name": "doctrine/inflector", @@ -673,6 +673,92 @@ }, "time": "2022-09-04T07:30:47+00:00" }, + { + "name": "nunomaduro/termwind", + "version": "v1.14.2", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/termwind.git", + "reference": "9a8218511eb1a0965629ff820dda25985440aefc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/9a8218511eb1a0965629ff820dda25985440aefc", + "reference": "9a8218511eb1a0965629ff820dda25985440aefc", + "shasum": "" + }, + "require": { + "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": { + "laravel": { + "providers": [ + "Termwind\\Laravel\\TermwindServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/Functions.php" + ], + "psr-4": { + "Termwind\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Its like Tailwind CSS, but for the console.", + "keywords": [ + "cli", + "console", + "css", + "package", + "php", + "style" + ], + "support": { + "issues": "https://github.com/nunomaduro/termwind/issues", + "source": "https://github.com/nunomaduro/termwind/tree/v1.14.2" + }, + "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", @@ -778,29 +864,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 +932,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 +957,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 +1005,74 @@ "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/deprecation-contracts/tree/v3.1.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-02-25T11:15:52+00:00" + }, + { + "name": "symfony/finder", + "version": "v6.1.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "39696bff2c2970b3779a5cac7bf9f0b88fc2b709" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/39696bff2c2970b3779a5cac7bf9f0b88fc2b709", + "reference": "39696bff2c2970b3779a5cac7bf9f0b88fc2b709", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "symfony/filesystem": "^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } ], + "description": "Finds files and directories via an intuitive fluent interface", + "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.26.0" + "source": "https://github.com/symfony/finder/tree/v6.1.3" }, "funding": [ { @@ -922,25 +1088,31 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2022-07-29T07:42:06+00:00" }, { - "name": "symfony/polyfill-php80", + "name": "symfony/polyfill-ctype", "version": "v1.26.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace" + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/cfa0ae98841b9e461207c13ab093d76b0fa7bace", - "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", + "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", "shasum": "" }, "require": { "php": ">=7.1" }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, "type": "library", "extra": { "branch-alias": { @@ -956,11 +1128,8 @@ "bootstrap.php" ], "psr-4": { - "Symfony\\Polyfill\\Php80\\": "" - }, - "classmap": [ - "Resources/stubs" - ] + "Symfony\\Polyfill\\Ctype\\": "" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -968,28 +1137,24 @@ ], "authors": [ { - "name": "Ion Bazan", - "email": "ion.bazan@gmail.com" - }, - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "description": "Symfony polyfill for ctype functions", "homepage": "https://symfony.com", "keywords": [ "compatibility", + "ctype", "polyfill", - "portable", - "shim" + "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.26.0" }, "funding": [ { @@ -1005,68 +1170,45 @@ "type": "tidelift" } ], - "time": "2022-05-10T07:21:04+00:00" + "time": "2022-05-24T11:49:31+00:00" }, { - "name": "symfony/translation", - "version": "v6.1.4", + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.26.0", "source": { "type": "git", - "url": "https://github.com/symfony/translation.git", - "reference": "45d0f5bb8df7255651ca91c122fab604e776af03" + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "433d05519ce6990bf3530fba6957499d327395c2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/45d0f5bb8df7255651ca91c122fab604e776af03", - "reference": "45d0f5bb8df7255651ca91c122fab604e776af03", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/433d05519ce6990bf3530fba6957499d327395c2", + "reference": "433d05519ce6990bf3530fba6957499d327395c2", "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" - }, - "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" + "php": ">=7.1" }, "suggest": { - "psr/log-implementation": "To use logging capability in translator", - "symfony/config": "", - "symfony/yaml": "" + "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": [ - "Resources/functions.php" + "bootstrap.php" ], "psr-4": { - "Symfony\\Component\\Translation\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1074,18 +1216,26 @@ ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Provides tools to internationalize your application", + "description": "Symfony polyfill for intl's grapheme_* functions", "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "grapheme", + "intl", + "polyfill", + "portable", + "shim" + ], "support": { - "source": "https://github.com/symfony/translation/tree/v6.1.4" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.26.0" }, "funding": [ { @@ -1101,44 +1251,47 @@ "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-normalizer", + "version": "v1.26.0", "source": { "type": "git", - "url": "https://github.com/symfony/translation-contracts.git", - "reference": "606be0f48e05116baef052f7f3abdb345c8e02cc" + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "219aa369ceff116e673852dce47c3a41794c14bd" }, "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-normalizer/zipball/219aa369ceff116e673852dce47c3a41794c14bd", + "reference": "219aa369ceff116e673852dce47c3a41794c14bd", "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\\": "" + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" }, - "exclude-from-classmap": [ - "/Test/" + "classmap": [ + "Resources/stubs" ] }, "notification-url": "https://packagist.org/downloads/", @@ -1155,18 +1308,18 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Generic abstractions related to translation", + "description": "Symfony polyfill for intl's Normalizer class and related functions", "homepage": "https://symfony.com", "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" ], "support": { - "source": "https://github.com/symfony/translation-contracts/tree/v3.1.1" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.26.0" }, "funding": [ { @@ -1182,35 +1335,47 @@ "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-mbstring", + "version": "v1.26.0", "source": { "type": "git", - "url": "https://github.com/voku/portable-ascii.git", - "reference": "b56450eed252f6801410d810c8e1727224ae0743" + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/voku/portable-ascii/zipball/b56450eed252f6801410d810c8e1727224ae0743", - "reference": "b56450eed252f6801410d810c8e1727224ae0743", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", + "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", "shasum": "" }, "require": { - "php": ">=7.0.0" + "php": ">=7.1" }, - "require-dev": { - "phpunit/phpunit": "~6.0 || ~7.0 || ~9.0" + "provide": { + "ext-mbstring": "*" }, "suggest": { - "ext-intl": "Use Intl for transliterator_transliterate() support" + "ext-mbstring": "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\\Mbstring\\": "" } }, "notification-url": "https://packagist.org/downloads/", @@ -1219,171 +1384,166 @@ ], "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 the Mbstring extension", + "homepage": "https://symfony.com", "keywords": [ - "ascii", - "clean", - "php" + "compatibility", + "mbstring", + "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-mbstring/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-php80", + "version": "v1.26.0", "source": { "type": "git", - "url": "https://github.com/paratestphp/paratest.git", - "reference": "4ce800dc32fd0292a4f05c00f347142dce1ecdda" + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paratestphp/paratest/zipball/4ce800dc32fd0292a4f05c00f347142dce1ecdda", - "reference": "4ce800dc32fd0292a4f05c00f347142dce1ecdda", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/cfa0ae98841b9e461207c13ab093d76b0fa7bace", + "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace", "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" - }, - "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" + "php": ">=7.1" }, - "bin": [ - "bin/paratest", - "bin/paratest.bat", - "bin/paratest_for_phpstorm" - ], "type": "library", - "autoload": { - "psr-4": { - "ParaTest\\": [ - "src/" - ] - } - }, + "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\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { - "name": "Brian Scaturro", - "email": "scaturrob@gmail.com", - "role": "Developer" + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" }, { - "name": "Filippo Tessarotto", - "email": "zoeslam@gmail.com", - "role": "Developer" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" } ], - "description": "Parallel testing for PHP", - "homepage": "https://github.com/paratestphp/paratest", + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", "keywords": [ - "concurrent", - "parallel", - "phpunit", - "testing" + "compatibility", + "polyfill", + "portable", + "shim" ], "support": { - "issues": "https://github.com/paratestphp/paratest/issues", - "source": "https://github.com/paratestphp/paratest/tree/v6.6.4" + "source": "https://github.com/symfony/polyfill-php80/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-10T07:21:04+00:00" }, { - "name": "composer/pcre", - "version": "3.0.0", + "name": "symfony/service-contracts", + "version": "v3.1.1", "source": { "type": "git", - "url": "https://github.com/composer/pcre.git", - "reference": "e300eb6c535192decd27a85bc72a9290f0d6b3bd" + "url": "https://github.com/symfony/service-contracts.git", + "reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/e300eb6c535192decd27a85bc72a9290f0d6b3bd", - "reference": "e300eb6c535192decd27a85bc72a9290f0d6b3bd", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/925e713fe8fcacf6bc05e936edd8dd5441a21239", + "reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239", "shasum": "" }, "require": { - "php": "^7.4 || ^8.0" + "php": ">=8.1", + "psr/container": "^2.0" }, - "require-dev": { - "phpstan/phpstan": "^1.3", - "phpstan/phpstan-strict-rules": "^1.1", - "symfony/phpunit-bridge": "^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\\Pcre\\": "src" - } + "Symfony\\Contracts\\Service\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1391,69 +1551,84 @@ ], "authors": [ { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "http://seld.be" + "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": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", "keywords": [ - "PCRE", - "preg", - "regex", - "regular expression" + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" ], "support": { - "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.0.0" + "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-02-25T20:21:48+00:00" + "time": "2022-05-30T19:18:58+00:00" }, { - "name": "composer/semver", - "version": "3.3.2", + "name": "symfony/string", + "version": "v6.1.4", "source": { "type": "git", - "url": "https://github.com/composer/semver.git", - "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9" + "url": "https://github.com/symfony/string.git", + "reference": "290972cad7b364e3befaa74ba0ec729800fb161c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/3953f23262f2bff1919fc82183ad9acb13ff62c9", - "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9", + "url": "https://api.github.com/repos/symfony/string/zipball/290972cad7b364e3befaa74ba0ec729800fb161c", + "reference": "290972cad7b364e3befaa74ba0ec729800fb161c", "shasum": "" }, "require": { - "php": "^5.3.2 || ^7.0 || ^8.0" + "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.4", - "symfony/phpunit-bridge": "^4.2 || ^5" + "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", - "extra": { - "branch-alias": { - "dev-main": "3.x-dev" - } - }, "autoload": { + "files": [ + "Resources/functions.php" + ], "psr-4": { - "Composer\\Semver\\": "src" - } + "Symfony\\Component\\String\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1461,148 +1636,176 @@ ], "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": "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": [ - "semantic", - "semver", - "validation", - "versioning" + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" ], "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/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-04-01T19:23:25+00:00" + "time": "2022-08-12T18:05:43+00:00" }, { - "name": "composer/xdebug-handler", - "version": "3.0.3", + "name": "symfony/translation", + "version": "v6.1.4", "source": { "type": "git", - "url": "https://github.com/composer/xdebug-handler.git", - "reference": "ced299686f41dce890debac69273b47ffe98a40c" + "url": "https://github.com/symfony/translation.git", + "reference": "45d0f5bb8df7255651ca91c122fab604e776af03" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/ced299686f41dce890debac69273b47ffe98a40c", - "reference": "ced299686f41dce890debac69273b47ffe98a40c", + "url": "https://api.github.com/repos/symfony/translation/zipball/45d0f5bb8df7255651ca91c122fab604e776af03", + "reference": "45d0f5bb8df7255651ca91c122fab604e776af03", "shasum": "" }, "require": { - "composer/pcre": "^1 || ^2 || ^3", - "php": "^7.2.5 || ^8.0", - "psr/log": "^1 || ^2 || ^3" + "php": ">=8.1", + "symfony/polyfill-mbstring": "~1.0", + "symfony/translation-contracts": "^2.3|^3.0" }, - "require-dev": { - "phpstan/phpstan": "^1.0", - "phpstan/phpstan-strict-rules": "^1.1", - "symfony/phpunit-bridge": "^6.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" }, - "type": "library", - "autoload": { - "psr-4": { - "Composer\\XdebugHandler\\": "src" - } + "provide": { + "symfony/translation-implementation": "2.3|3.0" }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "John Stevenson", - "email": "john-stevenson@blueyonder.co.uk" - } + "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" + }, + "suggest": { + "psr/log-implementation": "To use logging capability in translator", + "symfony/config": "", + "symfony/yaml": "" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" ], - "description": "Restarts a process without Xdebug.", - "keywords": [ - "Xdebug", - "performance" + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } ], + "description": "Provides tools to internationalize your application", + "homepage": "https://symfony.com", "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/translation/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-02T16:17:38+00:00" }, { - "name": "doctrine/annotations", - "version": "1.13.3", + "name": "symfony/translation-contracts", + "version": "v3.1.1", "source": { "type": "git", - "url": "https://github.com/doctrine/annotations.git", - "reference": "648b0343343565c4a056bfc8392201385e8d89f0" + "url": "https://github.com/symfony/translation-contracts.git", + "reference": "606be0f48e05116baef052f7f3abdb345c8e02cc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/648b0343343565c4a056bfc8392201385e8d89f0", - "reference": "648b0343343565c4a056bfc8392201385e8d89f0", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/606be0f48e05116baef052f7f3abdb345c8e02cc", + "reference": "606be0f48e05116baef052f7f3abdb345c8e02cc", "shasum": "" }, "require": { - "doctrine/lexer": "1.*", - "ext-tokenizer": "*", - "php": "^7.1 || ^8.0", - "psr/cache": "^1 || ^2 || ^3" + "php": ">=8.1" }, - "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" + "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\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" - } + "Symfony\\Contracts\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1610,70 +1813,70 @@ ], "authors": [ { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" }, { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to translation", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/translation-contracts/tree/v3.1.1" + }, + "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-06-27T17:24:16+00:00" }, { - "name": "doctrine/instantiator", - "version": "1.4.1", + "name": "voku/portable-ascii", + "version": "2.0.1", "source": { "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" + "url": "https://github.com/voku/portable-ascii.git", + "reference": "b56450eed252f6801410d810c8e1727224ae0743" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", - "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", + "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", - "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" + "phpunit/phpunit": "~6.0 || ~7.0 || ~9.0" + }, + "suggest": { + "ext-intl": "Use Intl for transliterator_transliterate() support" }, "type": "library", "autoload": { "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + "voku\\": "src/voku/" } }, "notification-url": "https://packagist.org/downloads/", @@ -1682,64 +1885,97 @@ ], "authors": [ { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "https://ocramius.github.io/" + "name": "Lars Moelleken", + "homepage": "http://www.moelleken.org/" } ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "description": "Portable ASCII library - performance optimized (ascii) string functions for php.", + "homepage": "https://github.com/voku/portable-ascii", "keywords": [ - "constructor", - "instantiate" + "ascii", + "clean", + "php" ], "support": { - "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.4.1" + "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%2Finstantiator", + "url": "https://tidelift.com/funding/github/packagist/voku/portable-ascii", "type": "tidelift" } ], - "time": "2022-03-03T08:28:38+00:00" - }, + "time": "2022-03-08T17:03:00+00:00" + } + ], + "packages-dev": [ { - "name": "doctrine/lexer", - "version": "1.2.3", + "name": "brianium/paratest", + "version": "v6.6.4", "source": { "type": "git", - "url": "https://github.com/doctrine/lexer.git", - "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229" + "url": "https://github.com/paratestphp/paratest.git", + "reference": "4ce800dc32fd0292a4f05c00f347142dce1ecdda" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/c268e882d4dbdd85e36e4ad69e02dc284f89d229", - "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229", + "url": "https://api.github.com/repos/paratestphp/paratest/zipball/4ce800dc32fd0292a4f05c00f347142dce1ecdda", + "reference": "4ce800dc32fd0292a4f05c00f347142dce1ecdda", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "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" }, "require-dev": { - "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": { - "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer" + "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": { + "ParaTest\\": [ + "src/" + ] } }, "notification-url": "https://packagist.org/downloads/", @@ -1748,83 +1984,71 @@ ], "authors": [ { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" + "name": "Brian Scaturro", + "email": "scaturrob@gmail.com", + "role": "Developer" }, { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" + "name": "Filippo Tessarotto", + "email": "zoeslam@gmail.com", + "role": "Developer" } ], - "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": "Parallel testing for PHP", + "homepage": "https://github.com/paratestphp/paratest", "keywords": [ - "annotations", - "docblock", - "lexer", - "parser", - "php" + "concurrent", + "parallel", + "phpunit", + "testing" ], "support": { - "issues": "https://github.com/doctrine/lexer/issues", - "source": "https://github.com/doctrine/lexer/tree/1.2.3" + "issues": "https://github.com/paratestphp/paratest/issues", + "source": "https://github.com/paratestphp/paratest/tree/v6.6.4" }, "funding": [ { - "url": "https://www.doctrine-project.org/sponsorship.html", - "type": "custom" - }, - { - "url": "https://www.patreon.com/phpdoctrine", - "type": "patreon" + "url": "https://github.com/sponsors/Slamdunk", + "type": "github" }, { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", - "type": "tidelift" + "url": "https://paypal.me/filippotessarotto", + "type": "paypal" } ], - "time": "2022-02-28T11:07:21+00:00" + "time": "2022-09-13T10:47:01+00:00" }, { - "name": "filp/whoops", - "version": "2.14.5", + "name": "composer/pcre", + "version": "3.0.0", "source": { "type": "git", - "url": "https://github.com/filp/whoops.git", - "reference": "a63e5e8f26ebbebf8ed3c5c691637325512eb0dc" + "url": "https://github.com/composer/pcre.git", + "reference": "e300eb6c535192decd27a85bc72a9290f0d6b3bd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/a63e5e8f26ebbebf8ed3c5c691637325512eb0dc", - "reference": "a63e5e8f26ebbebf8ed3c5c691637325512eb0dc", + "url": "https://api.github.com/repos/composer/pcre/zipball/e300eb6c535192decd27a85bc72a9290f0d6b3bd", + "reference": "e300eb6c535192decd27a85bc72a9290f0d6b3bd", "shasum": "" }, "require": { - "php": "^5.5.9 || ^7.0 || ^8.0", - "psr/log": "^1.0.1 || ^2.0 || ^3.0" + "php": "^7.4 || ^8.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" + "phpstan/phpstan": "^1.3", + "phpstan/phpstan-strict-rules": "^1.1", + "symfony/phpunit-bridge": "^5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-main": "3.x-dev" } }, "autoload": { "psr-4": { - "Whoops\\": "src/Whoops/" + "Composer\\Pcre\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -1833,93 +2057,68 @@ ], "authors": [ { - "name": "Filipe Dobreira", - "homepage": "https://github.com/filp", - "role": "Developer" + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" } ], - "description": "php error handling for cool kids", - "homepage": "https://filp.github.io/whoops/", + "description": "PCRE wrapping library that offers type-safe preg_* replacements.", "keywords": [ - "error", - "exception", - "handling", - "library", - "throwable", - "whoops" + "PCRE", + "preg", + "regex", + "regular expression" ], "support": { - "issues": "https://github.com/filp/whoops/issues", - "source": "https://github.com/filp/whoops/tree/2.14.5" + "issues": "https://github.com/composer/pcre/issues", + "source": "https://github.com/composer/pcre/tree/3.0.0" }, "funding": [ { - "url": "https://github.com/denis-sokolov", + "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-01-07T12:00:00+00:00" + "time": "2022-02-25T20:21:48+00:00" }, { - "name": "friendsofphp/php-cs-fixer", - "version": "v3.11.0", + "name": "composer/semver", + "version": "3.3.2", "source": { "type": "git", - "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", - "reference": "7dcdea3f2f5f473464e835be9be55283ff8cfdc3" + "url": "https://github.com/composer/semver.git", + "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/7dcdea3f2f5f473464e835be9be55283ff8cfdc3", - "reference": "7dcdea3f2f5f473464e835be9be55283ff8cfdc3", + "url": "https://api.github.com/repos/composer/semver/zipball/3953f23262f2bff1919fc82183ad9acb13ff62c9", + "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9", "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": "^5.3.2 || ^7.0 || ^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.4", + "symfony/phpunit-bridge": "^4.2 || ^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\\Semver\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -1928,61 +2127,77 @@ ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" }, { - "name": "Dariusz RumiΕ„ski", - "email": "dariusz.ruminski@gmail.com" + "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 tool to automatically fix PHP code style", + "description": "Semver library that offers utilities, version constraint parsing and validation.", + "keywords": [ + "semantic", + "semver", + "validation", + "versioning" + ], "support": { - "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues", - "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.11.0" + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/semver/issues", + "source": "https://github.com/composer/semver/tree/3.3.2" }, "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-04-01T19:23:25+00:00" }, { - "name": "jean85/pretty-package-versions", - "version": "2.0.5", + "name": "composer/xdebug-handler", + "version": "3.0.3", "source": { "type": "git", - "url": "https://github.com/Jean85/pretty-package-versions.git", - "reference": "ae547e455a3d8babd07b96966b17d7fd21d9c6af" + "url": "https://github.com/composer/xdebug-handler.git", + "reference": "ced299686f41dce890debac69273b47ffe98a40c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/ae547e455a3d8babd07b96966b17d7fd21d9c6af", - "reference": "ae547e455a3d8babd07b96966b17d7fd21d9c6af", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/ced299686f41dce890debac69273b47ffe98a40c", + "reference": "ced299686f41dce890debac69273b47ffe98a40c", "shasum": "" }, "require": { - "composer-runtime-api": "^2.0.0", - "php": "^7.1|^8.0" + "composer/pcre": "^1 || ^2 || ^3", + "php": "^7.2.5 || ^8.0", + "psr/log": "^1 || ^2 || ^3" }, "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.0", + "phpstan/phpstan-strict-rules": "^1.1", + "symfony/phpunit-bridge": "^6.0" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.x-dev" - } - }, "autoload": { "psr-4": { - "Jean85\\": "src/" + "Composer\\XdebugHandler\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -1991,125 +2206,140 @@ ], "authors": [ { - "name": "Alessandro Lai", - "email": "alessandro.lai85@gmail.com" + "name": "John Stevenson", + "email": "john-stevenson@blueyonder.co.uk" } ], - "description": "A library to get pretty versions strings of installed dependencies", + "description": "Restarts a process without Xdebug.", "keywords": [ - "composer", - "package", - "release", - "versions" + "Xdebug", + "performance" ], "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/xdebug-handler/issues", + "source": "https://github.com/composer/xdebug-handler/tree/3.0.3" }, - "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-02-25T21:32:43+00:00" }, { - "name": "myclabs/deep-copy", - "version": "1.11.0", + "name": "doctrine/annotations", + "version": "1.13.3", "source": { "type": "git", - "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" + "url": "https://github.com/doctrine/annotations.git", + "reference": "648b0343343565c4a056bfc8392201385e8d89f0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/648b0343343565c4a056bfc8392201385e8d89f0", + "reference": "648b0343343565c4a056bfc8392201385e8d89f0", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" - }, - "conflict": { - "doctrine/collections": "<1.6.8", - "doctrine/common": "<2.13.3 || >=3,<3.2.2" + "doctrine/lexer": "1.*", + "ext-tokenizer": "*", + "php": "^7.1 || ^8.0", + "psr/cache": "^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" + "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", "autoload": { - "files": [ - "src/DeepCopy/deep_copy.php" - ], "psr-4": { - "DeepCopy\\": "src/DeepCopy/" + "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "description": "Create deep copies (clones) of your objects", + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "Docblock Annotations Parser", + "homepage": "https://www.doctrine-project.org/projects/annotations.html", "keywords": [ - "clone", - "copy", - "duplicate", - "object", - "object graph" + "annotations", + "docblock", + "parser" ], "support": { - "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" + "issues": "https://github.com/doctrine/annotations/issues", + "source": "https://github.com/doctrine/annotations/tree/1.13.3" }, - "funding": [ - { - "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", - "type": "tidelift" - } - ], - "time": "2022-03-03T13:19:32+00:00" + "time": "2022-07-02T10:48:51+00:00" }, { - "name": "nunomaduro/collision", - "version": "v6.3.1", + "name": "doctrine/instantiator", + "version": "1.4.1", "source": { "type": "git", - "url": "https://github.com/nunomaduro/collision.git", - "reference": "0f6349c3ed5dd28467087b08fb59384bb458a22b" + "url": "https://github.com/doctrine/instantiator.git", + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/collision/zipball/0f6349c3ed5dd28467087b08fb59384bb458a22b", - "reference": "0f6349c3ed5dd28467087b08fb59384bb458a22b", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", "shasum": "" }, "require": { - "filp/whoops": "^2.14.5", - "php": "^8.0.0", - "symfony/console": "^6.0.2" + "php": "^7.1 || ^8.0" }, "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/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" }, "type": "library", - "extra": { - "branch-alias": { - "dev-develop": "6.x-dev" - }, - "laravel": { - "providers": [ - "NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider" - ] - } - }, "autoload": { "psr-4": { - "NunoMaduro\\Collision\\": "src/" + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" } }, "notification-url": "https://packagist.org/downloads/", @@ -2118,99 +2348,64 @@ ], "authors": [ { - "name": "Nuno Maduro", - "email": "enunomaduro@gmail.com" + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "https://ocramius.github.io/" } ], - "description": "Cli error handling for console/command-line PHP applications.", + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", "keywords": [ - "artisan", - "cli", - "command-line", - "console", - "error", - "handling", - "laravel", - "laravel-zero", - "php", - "symfony" + "constructor", + "instantiate" ], "support": { - "issues": "https://github.com/nunomaduro/collision/issues", - "source": "https://github.com/nunomaduro/collision" + "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/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%2Finstantiator", + "type": "tidelift" } ], - "time": "2022-09-29T12:29:49+00:00" + "time": "2022-03-03T08:28:38+00:00" }, { - "name": "pestphp/pest", - "version": "v1.22.1", + "name": "doctrine/lexer", + "version": "1.2.3", "source": { "type": "git", - "url": "https://github.com/pestphp/pest.git", - "reference": "af6240b4eed8b049ac43c91184141ee337305df7" + "url": "https://github.com/doctrine/lexer.git", + "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest/zipball/af6240b4eed8b049ac43c91184141ee337305df7", - "reference": "af6240b4eed8b049ac43c91184141ee337305df7", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/c268e882d4dbdd85e36e4ad69e02dc284f89d229", + "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229", "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.0", + "phpstan/phpstan": "^1.3", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.11" }, - "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\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer" } }, "notification-url": "https://packagist.org/downloads/", @@ -2219,752 +2414,730 @@ ], "authors": [ { - "name": "Nuno Maduro", - "email": "enunomaduro@gmail.com" - } - ], - "description": "An elegant PHP Testing Framework.", + "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", - "pest", - "php", - "test", - "testing", - "unit" + "annotations", + "docblock", + "lexer", + "parser", + "php" ], "support": { - "issues": "https://github.com/pestphp/pest/issues", - "source": "https://github.com/pestphp/pest/tree/v1.22.1" + "issues": "https://github.com/doctrine/lexer/issues", + "source": "https://github.com/doctrine/lexer/tree/1.2.3" }, "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%2Flexer", + "type": "tidelift" } ], - "time": "2022-08-29T10:42:13+00:00" + "time": "2022-02-28T11:07:21+00:00" }, { - "name": "pestphp/pest-plugin", - "version": "v1.1.0", + "name": "filp/whoops", + "version": "2.14.5", "source": { "type": "git", - "url": "https://github.com/pestphp/pest-plugin.git", - "reference": "606c5f79c6a339b49838ffbee0151ca519efe378" + "url": "https://github.com/filp/whoops.git", + "reference": "a63e5e8f26ebbebf8ed3c5c691637325512eb0dc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest-plugin/zipball/606c5f79c6a339b49838ffbee0151ca519efe378", - "reference": "606c5f79c6a339b49838ffbee0151ca519efe378", + "url": "https://api.github.com/repos/filp/whoops/zipball/a63e5e8f26ebbebf8ed3c5c691637325512eb0dc", + "reference": "a63e5e8f26ebbebf8ed3c5c691637325512eb0dc", "shasum": "" }, "require": { - "composer-plugin-api": "^1.1.0 || ^2.0.0", - "php": "^7.3 || ^8.0" - }, - "conflict": { - "pestphp/pest": "<1.0" + "php": "^5.5.9 || ^7.0 || ^8.0", + "psr/log": "^1.0.1 || ^2.0 || ^3.0" }, "require-dev": { - "composer/composer": "^2.4.2", - "pestphp/pest": "^1.22.1", - "pestphp/pest-dev-tools": "^1.0.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" }, - "type": "composer-plugin", + "suggest": { + "symfony/var-dumper": "Pretty print complex values better with var-dumper available", + "whoops/soap": "Formats errors as SOAP responses" + }, + "type": "library", "extra": { "branch-alias": { - "dev-master": "1.x-dev" - }, - "class": "Pest\\Plugin\\Manager" + "dev-master": "2.7-dev" + } }, "autoload": { "psr-4": { - "Pest\\Plugin\\": "src/" + "Whoops\\": "src/Whoops/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "description": "The Pest plugin manager", + "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", - "manager", - "pest", - "php", - "plugin", - "test", - "testing", - "unit" + "error", + "exception", + "handling", + "library", + "throwable", + "whoops" ], "support": { - "source": "https://github.com/pestphp/pest-plugin/tree/v1.1.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/nunomaduro", + "url": "https://github.com/denis-sokolov", "type": "github" - }, - { - "url": "https://www.patreon.com/nunomaduro", - "type": "patreon" } ], - "time": "2022-09-18T13:18:17+00:00" + "time": "2022-01-07T12:00:00+00:00" }, { - "name": "pestphp/pest-plugin-parallel", - "version": "v1.2.0", + "name": "friendsofphp/php-cs-fixer", + "version": "v3.11.0", "source": { "type": "git", - "url": "https://github.com/pestphp/pest-plugin-parallel.git", - "reference": "7ae93d4052d2f45c0a37ca34f5dea940fb28cf31" + "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", + "reference": "7dcdea3f2f5f473464e835be9be55283ff8cfdc3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest-plugin-parallel/zipball/7ae93d4052d2f45c0a37ca34f5dea940fb28cf31", - "reference": "7ae93d4052d2f45c0a37ca34f5dea940fb28cf31", + "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/7dcdea3f2f5f473464e835be9be55283ff8cfdc3", + "reference": "7dcdea3f2f5f473464e835be9be55283ff8cfdc3", "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" + "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" }, "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" + "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" }, - "type": "library", - "extra": { - "pest": { - "plugins": [ - "Pest\\Parallel\\Plugin" - ] - }, - "branch-alias": { - "dev-master": "1.x-dev" - } + "suggest": { + "ext-dom": "For handling output formats in XML", + "ext-mbstring": "For handling non-UTF8 characters." }, + "bin": [ + "php-cs-fixer" + ], + "type": "application", "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" - ] + "PhpCsFixer\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "description": "The Pest Parallel Plugin", - "keywords": [ - "framework", - "parallel", - "pest", - "php", - "plugin", - "test", - "testing", - "unit" + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Dariusz RumiΕ„ski", + "email": "dariusz.ruminski@gmail.com" + } ], + "description": "A tool to automatically fix PHP code style", "support": { - "source": "https://github.com/pestphp/pest-plugin-parallel/tree/v1.2.0" + "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues", + "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.11.0" }, "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/keradus", "type": "github" - }, - { - "url": "https://www.patreon.com/nunomaduro", - "type": "patreon" } ], - "time": "2022-07-06T08:38:19+00:00" + "time": "2022-09-01T18:24:51+00:00" }, { - "name": "phar-io/manifest", - "version": "2.0.3", + "name": "jean85/pretty-package-versions", + "version": "2.0.5", "source": { "type": "git", - "url": "https://github.com/phar-io/manifest.git", - "reference": "97803eca37d319dfa7826cc2437fc020857acb53" + "url": "https://github.com/Jean85/pretty-package-versions.git", + "reference": "ae547e455a3d8babd07b96966b17d7fd21d9c6af" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", - "reference": "97803eca37d319dfa7826cc2437fc020857acb53", + "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/ae547e455a3d8babd07b96966b17d7fd21d9c6af", + "reference": "ae547e455a3d8babd07b96966b17d7fd21d9c6af", "shasum": "" }, "require": { - "ext-dom": "*", - "ext-phar": "*", - "ext-xmlwriter": "*", - "phar-io/version": "^3.0.1", - "php": "^7.2 || ^8.0" + "composer-runtime-api": "^2.0.0", + "php": "^7.1|^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" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "1.x-dev" } }, "autoload": { - "classmap": [ - "src/" - ] - }, - "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" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "Developer" + "psr-4": { + "Jean85\\": "src/" } - ], - "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", - "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/" - ] }, "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": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "Developer" + "name": "Alessandro Lai", + "email": "alessandro.lai85@gmail.com" } ], - "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": "phpstan/phpstan", - "version": "1.8.6", - "source": { - "type": "git", - "url": "https://github.com/phpstan/phpstan.git", - "reference": "c386ab2741e64cc9e21729f891b28b2b10fe6618" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/c386ab2741e64cc9e21729f891b28b2b10fe6618", - "reference": "c386ab2741e64cc9e21729f891b28b2b10fe6618", - "shasum": "" - }, - "require": { - "php": "^7.2|^8.0" - }, - "conflict": { - "phpstan/phpstan-shim": "*" - }, - "bin": [ - "phpstan", - "phpstan.phar" - ], - "type": "library", - "autoload": { - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "PHPStan - PHP Static Analysis Tool", + "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 +3150,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 +3202,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 +3466,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 +3481,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 +3506,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -3346,11 +3525,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 +3540,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 +3565,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -3398,14 +3580,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 +3599,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 +3645,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 +3661,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 +3738,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 +3952,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 +3968,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 +4008,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 +4024,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 +4049,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -3855,15 +4064,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 +4079,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 +4122,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 +4153,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 +4194,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 +4210,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 +4254,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 +4276,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 +4322,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 +4339,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 +4381,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 +4416,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 +4462,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 +4480,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 +4932,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 +4959,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 +5011,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 +5038,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 +5074,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 +5101,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 +5144,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 +5168,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 +5222,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 +5247,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 +5289,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 +5308,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 +5343,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 +5370,7 @@ "type": "tidelift" } ], - "time": "2022-08-12T18:05:43+00:00" + "time": "2022-02-25T11:15:52+00:00" }, { "name": "theseer/tokenizer", From a6fe33818af6004f21d8eb6e1e52bab05905b390 Mon Sep 17 00:00:00 2001 From: Egoist Date: Thu, 1 Dec 2022 07:39:05 +0300 Subject: [PATCH 02/41] Remove minicli deps --- composer.json | 2 -- composer.lock | 93 +-------------------------------------------------- 2 files changed, 1 insertion(+), 94 deletions(-) diff --git a/composer.json b/composer.json index b2fc012..cfade4d 100644 --- a/composer.json +++ b/composer.json @@ -26,8 +26,6 @@ }, "require": { "php": "^8.0 || ^8.1", - "minicli/minicli": "^3.2.0", - "minicli/command-help": "^0.1.0", "illuminate/support": "^8.8 || ^v9.0", "illuminate/filesystem": "^8.8 || ^v9.0", "nikic/php-parser": "^v4.14.0", diff --git a/composer.lock b/composer.lock index 8250a3f..07efe0e 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": "eec3af96ca0e05a52331c0daea9308cb", + "content-hash": "24d7fbe95172b8bc28f6d1344697a14c", "packages": [ { "name": "doctrine/inflector", @@ -424,97 +424,6 @@ }, "time": "2022-09-26T13:37:45+00:00" }, - { - "name": "minicli/command-help", - "version": "0.1", - "source": { - "type": "git", - "url": "https://github.com/minicli/command-help.git", - "reference": "f8cbb80bad2aa2fc0896d1b8048e6098f0a18d87" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/minicli/command-help/zipball/f8cbb80bad2aa2fc0896d1b8048e6098f0a18d87", - "reference": "f8cbb80bad2aa2fc0896d1b8048e6098f0a18d87", - "shasum": "" - }, - "require": { - "minicli/minicli": "^3.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Command\\": "Command/" - } - }, - "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/" - } - }, - "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": [ - { - "url": "https://github.com/erikaheidi", - "type": "github" - } - ], - "time": "2022-09-23T09:04:22+00:00" - }, { "name": "nesbot/carbon", "version": "2.62.1", From cbd8997d1df38294f6ad050c609d6402812d90ed Mon Sep 17 00:00:00 2001 From: Egoist Date: Thu, 1 Dec 2022 07:39:34 +0300 Subject: [PATCH 03/41] Update minimum PHP requirement --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index cfade4d..35257ba 100644 --- a/composer.json +++ b/composer.json @@ -25,8 +25,8 @@ } }, "require": { - "php": "^8.0 || ^8.1", - "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", From 3f8d3895f3437fd2879141c569729200284120c0 Mon Sep 17 00:00:00 2001 From: Egoist Date: Tue, 20 Dec 2022 06:01:52 +0300 Subject: [PATCH 04/41] Fix base path bug --- src/Services/InstallerService.php | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/src/Services/InstallerService.php b/src/Services/InstallerService.php index 7c0e42f..0ce35b9 100644 --- a/src/Services/InstallerService.php +++ b/src/Services/InstallerService.php @@ -48,13 +48,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; } @@ -114,7 +123,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)); @@ -222,8 +230,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 +250,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 +261,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'])) { From d81d139b3cdb9c5a558d7f31738b66a44690d26d Mon Sep 17 00:00:00 2001 From: Egoist Date: Tue, 20 Dec 2022 06:02:42 +0300 Subject: [PATCH 05/41] Add "new" command --- src/Commands/NewPackageCommand.php | 668 +++++++++++++++++++++++++++++ 1 file changed, 668 insertions(+) create mode 100644 src/Commands/NewPackageCommand.php diff --git a/src/Commands/NewPackageCommand.php b/src/Commands/NewPackageCommand.php new file mode 100644 index 0000000..2f2849c --- /dev/null +++ b/src/Commands/NewPackageCommand.php @@ -0,0 +1,668 @@ +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 + + /** + * @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 +} From 19c1b15aa3a5770e478d0332ae8913464b8b79c9 Mon Sep 17 00:00:00 2001 From: Egoist Date: Tue, 20 Dec 2022 06:02:54 +0300 Subject: [PATCH 06/41] Update command registry --- bin/packager | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/packager b/bin/packager index 0206fae..b005fcb 100644 --- a/bin/packager +++ b/bin/packager @@ -4,9 +4,10 @@ require __DIR__ . '/../vendor/autoload.php'; use Symfony\Component\Console\Application; +use LaravelReady\Packager\Commands\NewPackageCommand; $application = new Application(); -// ... register commands +$application->add(new NewPackageCommand()); $application->run(); From ef93ed70dc115b48c945c919c8bc81ba93918791 Mon Sep 17 00:00:00 2001 From: Egoist Date: Sun, 12 Mar 2023 19:37:29 +0300 Subject: [PATCH 07/41] Update resource templates --- .../install/src/ServiceProvider.php.stub | 4 ---- .../src/Services/PackageNameService.php.stub | 20 ------------------- 2 files changed, 24 deletions(-) delete mode 100644 resources/stubs/install/src/Services/PackageNameService.php.stub diff --git a/resources/stubs/install/src/ServiceProvider.php.stub b/resources/stubs/install/src/ServiceProvider.php.stub index 4649f18..c7430d1 100644 --- a/resources/stubs/install/src/ServiceProvider.php.stub +++ b/resources/stubs/install/src/ServiceProvider.php.stub @@ -34,10 +34,6 @@ final class ServiceProvider extends BaseServiceProvider // 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(); - }); } /** 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 @@ - Date: Sun, 12 Mar 2023 19:41:04 +0300 Subject: [PATCH 08/41] Add new create command --- src/Command/New/DefaultController.php | 542 -------------------------- src/Commands/NewPackageCommand.php | 3 +- 2 files changed, 1 insertion(+), 544 deletions(-) delete mode 100644 src/Command/New/DefaultController.php diff --git a/src/Command/New/DefaultController.php b/src/Command/New/DefaultController.php deleted file mode 100644 index 1a8238d..0000000 --- a/src/Command/New/DefaultController.php +++ /dev/null @@ -1,542 +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 index 2f2849c..0fb99c0 100644 --- a/src/Commands/NewPackageCommand.php +++ b/src/Commands/NewPackageCommand.php @@ -4,7 +4,6 @@ use Illuminate\Support\Str; use function Termwind\{render}; -use SebastianBergmann\Environment\Console; use LaravelReady\Packager\Supports\StrSupport; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputOption; @@ -172,7 +171,7 @@ private function checkCurrentFolder(): bool $currentPackage = $this->installerService->getCurrentComposerPackage(); if ($currentPackage) { - $this->io->error("This folder already contains a package: ${currentPackage}"); + $this->io->error("This folder already contains a package: {$currentPackage}"); return false; } From 1b060404caa855302ae79b1170ef2916a399fc07 Mon Sep 17 00:00:00 2001 From: Egoist Date: Sun, 12 Mar 2023 19:47:22 +0300 Subject: [PATCH 09/41] Add file not found exception --- src/Commands/NewPackageCommand.php | 7 +++++++ src/Exceptions/FileNotFoundException.php | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/Exceptions/FileNotFoundException.php diff --git a/src/Commands/NewPackageCommand.php b/src/Commands/NewPackageCommand.php index 0fb99c0..47a664b 100644 --- a/src/Commands/NewPackageCommand.php +++ b/src/Commands/NewPackageCommand.php @@ -16,6 +16,7 @@ use Symfony\Component\Console\Input\InputDefinition; use Symfony\Component\Console\Output\OutputInterface; use LaravelReady\Packager\Exceptions\StrParseException; +use LaravelReady\Packager\Exceptions\FileNotFoundException; use Symfony\Component\Console\Question\ConfirmationQuestion; class NewPackageCommand extends Command @@ -142,6 +143,12 @@ private function runSetup() #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 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 @@ + Date: Sun, 12 Mar 2023 21:06:52 +0300 Subject: [PATCH 10/41] Add custom blade renderer --- src/Supports/BladeSupport.php | 64 +++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 src/Supports/BladeSupport.php diff --git a/src/Supports/BladeSupport.php b/src/Supports/BladeSupport.php new file mode 100644 index 0000000..1bfb329 --- /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(), sys_get_temp_dir()); + $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(); + } +} From d6609ae5caef3d2983c2383ee4af02927d33acdc Mon Sep 17 00:00:00 2001 From: Egoist Date: Sun, 12 Mar 2023 21:11:04 +0300 Subject: [PATCH 11/41] Convert .stub file extensions to blade.php --- .../install/{.gitattributes.stub => .gitattributes.blade.php} | 0 resources/stubs/install/{.gitignore.stub => .gitignore.blade.php} | 0 .../stubs/install/{.styleci.yml.stub => .styleci.yml.blade.php} | 0 .../{package-slug.php.stub => package-slug.php.blade.php} | 0 .../install/{Con_phpstan.neon.stub => Con_phpstan.neon.blade.php} | 0 .../install/{Con_phpunit.xml.stub => Con_phpunit.xml.blade.php} | 0 .../Con_resources/{package.json.stub => package.json.blade.php} | 0 .../{tailwind.config.js.stub => tailwind.config.js.blade.php} | 0 .../{webpack.mix.js.stub => webpack.mix.js.blade.php} | 0 .../stubs/install/Con_routes/{api.php.stub => api.php.blade.php} | 0 .../stubs/install/Con_routes/{web.php.stub => web.php.blade.php} | 0 .../stubs/install/{composer.json.stub => composer.json.blade.php} | 0 .../{ExampleCommand.php.stub => ExampleCommand.php.blade.php} | 0 .../{PackageName.php.stub => PackageName.php.blade.php} | 0 ...eNameException.php.stub => PackageNameException.php.blade.php} | 0 .../{BaseController.php.stub => BaseController.php.blade.php} | 0 .../{ServiceProvider.php.stub => ServiceProvider.php.blade.php} | 0 resources/stubs/packager/{README.stub => README.blade.php} | 0 resources/stubs/packager/{gitignore.stub => gitignore.blade.php} | 0 19 files changed, 0 insertions(+), 0 deletions(-) rename resources/stubs/install/{.gitattributes.stub => .gitattributes.blade.php} (100%) rename resources/stubs/install/{.gitignore.stub => .gitignore.blade.php} (100%) rename resources/stubs/install/{.styleci.yml.stub => .styleci.yml.blade.php} (100%) rename resources/stubs/install/Con_config/{package-slug.php.stub => package-slug.php.blade.php} (100%) rename resources/stubs/install/{Con_phpstan.neon.stub => Con_phpstan.neon.blade.php} (100%) rename resources/stubs/install/{Con_phpunit.xml.stub => Con_phpunit.xml.blade.php} (100%) rename resources/stubs/install/Con_resources/{package.json.stub => package.json.blade.php} (100%) rename resources/stubs/install/Con_resources/{tailwind.config.js.stub => tailwind.config.js.blade.php} (100%) rename resources/stubs/install/Con_resources/{webpack.mix.js.stub => webpack.mix.js.blade.php} (100%) rename resources/stubs/install/Con_routes/{api.php.stub => api.php.blade.php} (100%) rename resources/stubs/install/Con_routes/{web.php.stub => web.php.blade.php} (100%) rename resources/stubs/install/{composer.json.stub => composer.json.blade.php} (100%) rename resources/stubs/install/src/Con_Console/Commands/{ExampleCommand.php.stub => ExampleCommand.php.blade.php} (100%) rename resources/stubs/install/src/Con_Facades/{PackageName.php.stub => PackageName.php.blade.php} (100%) rename resources/stubs/install/src/Exceptions/{PackageNameException.php.stub => PackageNameException.php.blade.php} (100%) rename resources/stubs/install/src/Http/Controllers/{BaseController.php.stub => BaseController.php.blade.php} (100%) rename resources/stubs/install/src/{ServiceProvider.php.stub => ServiceProvider.php.blade.php} (100%) rename resources/stubs/packager/{README.stub => README.blade.php} (100%) rename resources/stubs/packager/{gitignore.stub => gitignore.blade.php} (100%) diff --git a/resources/stubs/install/.gitattributes.stub b/resources/stubs/install/.gitattributes.blade.php similarity index 100% rename from resources/stubs/install/.gitattributes.stub rename to resources/stubs/install/.gitattributes.blade.php diff --git a/resources/stubs/install/.gitignore.stub b/resources/stubs/install/.gitignore.blade.php similarity index 100% rename from resources/stubs/install/.gitignore.stub rename to resources/stubs/install/.gitignore.blade.php diff --git a/resources/stubs/install/.styleci.yml.stub b/resources/stubs/install/.styleci.yml.blade.php similarity index 100% rename from resources/stubs/install/.styleci.yml.stub rename to resources/stubs/install/.styleci.yml.blade.php diff --git a/resources/stubs/install/Con_config/package-slug.php.stub b/resources/stubs/install/Con_config/package-slug.php.blade.php similarity index 100% rename from resources/stubs/install/Con_config/package-slug.php.stub rename to resources/stubs/install/Con_config/package-slug.php.blade.php 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 100% rename from resources/stubs/install/Con_resources/package.json.stub rename to resources/stubs/install/Con_resources/package.json.blade.php 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 100% rename from resources/stubs/install/Con_routes/api.php.stub rename to resources/stubs/install/Con_routes/api.php.blade.php diff --git a/resources/stubs/install/Con_routes/web.php.stub b/resources/stubs/install/Con_routes/web.php.blade.php similarity index 100% rename from resources/stubs/install/Con_routes/web.php.stub rename to resources/stubs/install/Con_routes/web.php.blade.php diff --git a/resources/stubs/install/composer.json.stub b/resources/stubs/install/composer.json.blade.php similarity index 100% rename from resources/stubs/install/composer.json.stub rename to resources/stubs/install/composer.json.blade.php 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 100% 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 diff --git a/resources/stubs/install/src/Con_Facades/PackageName.php.stub b/resources/stubs/install/src/Con_Facades/PackageName.php.blade.php similarity index 100% rename from resources/stubs/install/src/Con_Facades/PackageName.php.stub rename to resources/stubs/install/src/Con_Facades/PackageName.php.blade.php diff --git a/resources/stubs/install/src/Exceptions/PackageNameException.php.stub b/resources/stubs/install/src/Exceptions/PackageNameException.php.blade.php similarity index 100% rename from resources/stubs/install/src/Exceptions/PackageNameException.php.stub rename to resources/stubs/install/src/Exceptions/PackageNameException.php.blade.php diff --git a/resources/stubs/install/src/Http/Controllers/BaseController.php.stub b/resources/stubs/install/src/Http/Controllers/BaseController.php.blade.php similarity index 100% rename from resources/stubs/install/src/Http/Controllers/BaseController.php.stub rename to resources/stubs/install/src/Http/Controllers/BaseController.php.blade.php diff --git a/resources/stubs/install/src/ServiceProvider.php.stub b/resources/stubs/install/src/ServiceProvider.php.blade.php similarity index 100% rename from resources/stubs/install/src/ServiceProvider.php.stub rename to resources/stubs/install/src/ServiceProvider.php.blade.php diff --git a/resources/stubs/packager/README.stub b/resources/stubs/packager/README.blade.php similarity index 100% rename from resources/stubs/packager/README.stub rename to resources/stubs/packager/README.blade.php diff --git a/resources/stubs/packager/gitignore.stub b/resources/stubs/packager/gitignore.blade.php similarity index 100% rename from resources/stubs/packager/gitignore.stub rename to resources/stubs/packager/gitignore.blade.php From 362cc15bc087ccdd2640c688993a2e792e9724be Mon Sep 17 00:00:00 2001 From: Egoist Date: Sun, 12 Mar 2023 21:11:29 +0300 Subject: [PATCH 12/41] Add illuminate/view --- composer.json | 3 +- composer.lock | 265 +++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 265 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 35257ba..f9b977a 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,8 @@ "nikic/php-parser": "^v4.14.0", "nesbot/carbon": "^2.59.1", "symfony/console": "^6.2", - "nunomaduro/termwind": "^1.14" + "nunomaduro/termwind": "^1.14", + "illuminate/view": "9.0" }, "scripts": { "test": "DB_DATABASE=:memory: vendor/bin/pest --colors=always --parallel", diff --git a/composer.lock b/composer.lock index 07efe0e..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": "24d7fbe95172b8bc28f6d1344697a14c", + "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", @@ -424,6 +631,60 @@ }, "time": "2022-09-26T13:37:45+00:00" }, + { + "name": "illuminate/view", + "version": "v9.0.0", + "source": { + "type": "git", + "url": "https://github.com/illuminate/view.git", + "reference": "38dd7c09c516e48a46a26bb0948225323bc9bf67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/illuminate/view/zipball/38dd7c09c516e48a46a26bb0948225323bc9bf67", + "reference": "38dd7c09c516e48a46a26bb0948225323bc9bf67", + "shasum": "" + }, + "require": { + "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", + "extra": { + "branch-alias": { + "dev-master": "9.x-dev" + } + }, + "autoload": { + "psr-4": { + "Illuminate\\View\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "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", "version": "2.62.1", @@ -5338,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" From 6904dd3369e98a84e0aa7ceb5ca5d916d30aad2e Mon Sep 17 00:00:00 2001 From: Egoist Date: Sun, 12 Mar 2023 21:11:54 +0300 Subject: [PATCH 13/41] Update file extension --- .../{README.md.stub => README.md.blade.php} | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) rename resources/stubs/install/{README.md.stub => README.md.blade.php} (60%) diff --git a/resources/stubs/install/README.md.stub b/resources/stubs/install/README.md.blade.php similarity index 60% rename from resources/stubs/install/README.md.stub rename to resources/stubs/install/README.md.blade.php index a13715a..3373ece 100644 --- a/resources/stubs/install/README.md.stub +++ b/resources/stubs/install/README.md.blade.php @@ -1,6 +1,6 @@ -# {{ PACKAGE_TITLE }} +# {{ $packageTitle }} -[![{{ PACKAGE_TITLE }}](https://preview.dragon-code.pro/{{ VENDOR_NAMESPACE }}/{{ PACKAGE_SLUG }}.svg?brand=laravel)]({{ REPO_URL }}) +[![{{ $packageTitle }}](https://preview.dragon-code.pro/{{ VENDOR_NAMESPACE }}/{{ PACKAGE_SLUG }}.svg?brand=laravel)]({{ REPO_URL }}) [![Stable Version][badge_stable]][link_packagist] [![Unstable Version][badge_unstable]][link_packagist] @@ -27,7 +27,7 @@ php artisan vendor:publish --tag={{ PACKAGE_SLUG }}-config ```{{ CON_SETUP_CONFIG_END }} {{ CON_SETUP_DATABASE_START }} -## Migrations +## Migrations ```bash # publish migrations @@ -41,14 +41,14 @@ - 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_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_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_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 +[badge_unstable]: https://img.shields.io/badge/unstable-dev--main-orange?style=flat-square -[link_license]: LICENSE +[link_license]: LICENSE -[link_packagist]: https://packagist.org/packages/{{ COMPOSER_PACKAGE_NAME }} +[link_packagist]: https://packagist.org/packages/{{ COMPOSER_PACKAGE_NAME }} From 764185f52c4c3e26438409a228faf2dd740e14d0 Mon Sep 17 00:00:00 2001 From: Egoist Date: Sun, 12 Mar 2023 21:13:36 +0300 Subject: [PATCH 14/41] Update packager --- bin/packager | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/packager b/bin/packager index b005fcb..058b033 100644 --- a/bin/packager +++ b/bin/packager @@ -8,6 +8,8 @@ use LaravelReady\Packager\Commands\NewPackageCommand; $application = new Application(); -$application->add(new NewPackageCommand()); +$application->addCommands([ + new NewPackageCommand(), +]); $application->run(); From 1c60187cbb76f92679fc1d8fbba5d4d5481e584b Mon Sep 17 00:00:00 2001 From: Egoist Date: Sun, 12 Mar 2023 21:53:02 +0300 Subject: [PATCH 15/41] Add local cache folder --- src/Supports/BladeSupport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Supports/BladeSupport.php b/src/Supports/BladeSupport.php index 1bfb329..cd24540 100644 --- a/src/Supports/BladeSupport.php +++ b/src/Supports/BladeSupport.php @@ -37,7 +37,7 @@ public function renderTemplate(string $templatePath, array $data = []): string } $engineResolver = new EngineResolver(); - $bladeCompiler = new BladeCompiler(new Filesystem(), sys_get_temp_dir()); + $bladeCompiler = new BladeCompiler(new Filesystem(), __DIR__ . '/../../cache'); $engineResolver->register('blade', function () use ($bladeCompiler) { return new CompilerEngine($bladeCompiler); }); From 2c5774bc1da124e413ccfa3e2a6d2f5a089de4e8 Mon Sep 17 00:00:00 2001 From: Egoist Date: Sun, 12 Mar 2023 21:53:08 +0300 Subject: [PATCH 16/41] Update .gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 From f65015bd3c0e76e09d2ed7d5e0025bb8b887b0dd Mon Sep 17 00:00:00 2001 From: Egoist Date: Tue, 14 Mar 2023 01:20:36 +0300 Subject: [PATCH 17/41] Update composer.json template --- .../stubs/install/composer.json.blade.php | 53 ++++++++++--------- 1 file changed, 28 insertions(+), 25 deletions(-) diff --git a/resources/stubs/install/composer.json.blade.php b/resources/stubs/install/composer.json.blade.php index cd893e6..2d46be2 100644 --- a/resources/stubs/install/composer.json.blade.php +++ b/resources/stubs/install/composer.json.blade.php @@ -1,21 +1,24 @@ { - "name": "{{ COMPOSER_PACKAGE_NAME }}",{{ CON_SETUP_PACKAGE_DESCRIPTION_START }} - "description": "{{ PACKAGE_DESCRIPTION }}",{{ CON_SETUP_PACKAGE_DESCRIPTION_END }} + "name": "{{ $COMPOSER_PACKAGE_NAME }}", + "description": "{{ $PACKAGE_DESCRIPTION ?? '' }}", "type": "library", "license": "MIT", - "version": "1.0.0",{{ CON_SETUP_PACKAGE_TAGS_START }} - "keywords": [ - {{ PACKAGE_TAGS }} - ],{{ CON_SETUP_PACKAGE_TAGS_END }} - "authors": [ + "version": "1.0.0", +@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 }}" + "name": "{{ $COMPOSER_AUTHOR_NAME }}", + "email": "{{ $COMPOSER_AUTHOR_EMAIL }}" } - ], + ],@endif "support": { - "issues": "{{ REPO_URL }}/issues", - "source": "{{ REPO_URL }}" + "issues": "{{ $REPO_URL }}/issues", + "source": "{{ $REPO_URL }}" }, "require": { "php": "^8.0", @@ -23,19 +26,19 @@ }, "require-dev": { "mockery/mockery": "^1.4", - "orchestra/testbench": "^7.0.0"{{ CON_SETUP_PHPSTAN_START }}, + "orchestra/testbench": "^7.0.0"@if ($USE_PHPSTAN), "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 }}, + "nunomaduro/larastan": "^2.1"@endif @if ($USE_PEST), "pestphp/pest": "^1.2", "pestphp/pest-plugin-laravel": "^1.2", - "pestphp/pest-plugin-parallel": "^1.2"{{ CON_SETUP_PEST_END }} + "pestphp/pest-plugin-parallel": "^1.2"@endif }, "autoload": { "psr-4": { - "{{ FULL_NAMESPACE_JSON }}\\": "src/" + "{{ $FULL_NAMESPACE_JSON }}\\": "src/" } }, "autoload-dev": { @@ -47,23 +50,23 @@ "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 }} + "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",{{ 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": "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"{{ CON_SETUP_PHPSTAN_END }} + "test:styles:pro": "vendor/bin/phpstan analyse --pro --fix --watch"@endif }, "extra": { "laravel": { "providers": [ - "{{ FULL_NAMESPACE_JSON }}\\ServiceProvider" - ]{{ CON_SETUP_FACADES_START }}, + "{{ $FULL_NAMESPACE_JSON }}\\ServiceProvider" + ]@if($USE_FACADES), "aliases": { - "{{ PACKAGE_NAMESPACE }}": "{{ FULL_NAMESPACE_JSON }}\\Facades\\{{ PACKAGE_NAMESPACE }}" - }{{ CON_SETUP_FACADES_END }} + "{{ $PACKAGE_NAMESPACE }}": "{{ $FULL_NAMESPACE_JSON }}\\Facades\\{{ $PACKAGE_NAMESPACE }}" + }@endif } }, "minimum-stability": "stable", From 58f2ba500360f0655018725bf72c7b9cf7cd7ca2 Mon Sep 17 00:00:00 2001 From: Egoist Date: Tue, 14 Mar 2023 09:50:42 +0300 Subject: [PATCH 18/41] Rename template support --- src/Services/PackagerService.php | 10 +-- src/Supports/StubSupport.php | 103 ------------------------ src/Supports/TemplateSupport.php | 60 ++++++++++++++ tests/Unit/Supports/StubSupportTest.php | 4 +- 4 files changed, 67 insertions(+), 110 deletions(-) delete mode 100644 src/Supports/StubSupport.php create mode 100644 src/Supports/TemplateSupport.php 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/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..711da59 --- /dev/null +++ b/src/Supports/TemplateSupport.php @@ -0,0 +1,60 @@ +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)) { + $subContent = $this->file->get($stubPath); + + if (!empty($subContent)) { + $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); + } + } + } + + 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' From 139c1942e6dda9fb70216c8b1990d6517ca95a84 Mon Sep 17 00:00:00 2001 From: Egoist Date: Tue, 14 Mar 2023 09:51:06 +0300 Subject: [PATCH 19/41] Update template rendering methods --- src/Services/InstallerService.php | 48 +++++++++++++++---------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/Services/InstallerService.php b/src/Services/InstallerService.php index 0ce35b9..3b3d432 100644 --- a/src/Services/InstallerService.php +++ b/src/Services/InstallerService.php @@ -10,37 +10,38 @@ use Illuminate\Filesystem\Filesystem; use LaravelReady\Packager\Supports\StrSupport; -use LaravelReady\Packager\Supports\StubSupport; +use LaravelReady\Packager\Supports\TemplateSupport; class InstallerService { private Filesystem $file; - private StubSupport $stubSupport; + private TemplateSupport $stubSupport; private string $basePath; private bool $isThatLaravelApp; private array $configs = [ + 'PACKAGE_DESC' => 'Laravel Ready Package', 'SETUP_CONFIG' => true, 'SETUP_DATABASE' => false, - 'SETUP_FACADES' => false, + 'USE_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, + 'PACKAGE_TAGS' => [], '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) { @@ -113,8 +114,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; } @@ -133,13 +133,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; } @@ -188,21 +188,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; } @@ -288,19 +288,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']); } } } @@ -367,8 +367,8 @@ 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}"; @@ -383,7 +383,7 @@ public function installPackage(): void $stubPath = $filePath; - $this->stubSupport->applyStub($stubPath, $targetPath, $this->configs); + $this->stubSupport->replaceTemplate($stubPath, $targetPath, $this->configs); } } } From 0af5d130c303613468824734bd698016a06b603c Mon Sep 17 00:00:00 2001 From: Egoist Date: Tue, 14 Mar 2023 09:51:23 +0300 Subject: [PATCH 20/41] Update composer.json template --- resources/stubs/install/composer.json.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/stubs/install/composer.json.blade.php b/resources/stubs/install/composer.json.blade.php index 2d46be2..6dd801e 100644 --- a/resources/stubs/install/composer.json.blade.php +++ b/resources/stubs/install/composer.json.blade.php @@ -1,6 +1,6 @@ { "name": "{{ $COMPOSER_PACKAGE_NAME }}", - "description": "{{ $PACKAGE_DESCRIPTION ?? '' }}", + "description": "{{ $PACKAGE_DESC }}", "type": "library", "license": "MIT", "version": "1.0.0", From 5707e65fa022658a1803e741b82c155919fc4522 Mon Sep 17 00:00:00 2001 From: Egoist Date: Tue, 14 Mar 2023 09:57:45 +0300 Subject: [PATCH 21/41] Update configs order --- src/Services/InstallerService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/InstallerService.php b/src/Services/InstallerService.php index 3b3d432..29adc66 100644 --- a/src/Services/InstallerService.php +++ b/src/Services/InstallerService.php @@ -24,6 +24,7 @@ class InstallerService private array $configs = [ 'PACKAGE_DESC' => 'Laravel Ready Package', + 'PACKAGE_TAGS' => [], 'SETUP_CONFIG' => true, 'SETUP_DATABASE' => false, 'USE_FACADES' => false, @@ -34,7 +35,6 @@ class InstallerService 'USE_PEST' => false, 'USE_PHP_CS_FIXER' => false, 'SETUP_PHPUNIT' => false, - 'PACKAGE_TAGS' => [], 'SETUP_PACKAGE_DESCRIPTION' => false, ]; From 893f754dc2f2f8705a737f6f5b1b6666139401b3 Mon Sep 17 00:00:00 2001 From: Egoist Date: Tue, 14 Mar 2023 09:57:55 +0300 Subject: [PATCH 22/41] Update readme template --- resources/stubs/install/README.md.blade.php | 36 +++++++++++---------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/resources/stubs/install/README.md.blade.php b/resources/stubs/install/README.md.blade.php index 3373ece..62f77a3 100644 --- a/resources/stubs/install/README.md.blade.php +++ b/resources/stubs/install/README.md.blade.php @@ -1,6 +1,6 @@ -# {{ $packageTitle }} +# {{ $PACKAGE_TITLE }} -[![{{ $packageTitle }}](https://preview.dragon-code.pro/{{ VENDOR_NAMESPACE }}/{{ PACKAGE_SLUG }}.svg?brand=laravel)]({{ REPO_URL }}) +[![{{ $PACKAGE_TITLE }}](https://preview.dragon-code.pro/{{ $VENDOR_NAMESPACE }}/{{ $PACKAGE_SLUG }}.svg?brand=laravel)]({{ $REPO_URL }}) [![Stable Version][badge_stable]][link_packagist] [![Unstable Version][badge_unstable]][link_packagist] @@ -8,47 +8,49 @@ [![License][badge_license]][link_license] ## πŸ“‚ About -{{ CON_SETUP_PACKAGE_DESCRIPTION_START }} -{{ PACKAGE_DESCRIPTION }}... -{{ CON_SETUP_PACKAGE_DESCRIPTION_END }} +@if($PACKAGE_DESC) +{{ $PACKAGE_DESC }}... +@endif ## πŸ“¦ Installation Get via composer ```bash -composer require {{ COMPOSER_PACKAGE_NAME }} +composer require {{ $COMPOSER_PACKAGE_NAME }} ``` -{{ CON_SETUP_CONFIG_START }} +@if ($SETUP_CONFIG) ## βš™οΈ Configs ```bash -php artisan vendor:publish --tag={{ PACKAGE_SLUG }}-config -```{{ CON_SETUP_CONFIG_END }} -{{ CON_SETUP_DATABASE_START }} +php artisan vendor:publish --tag={{ $PACKAGE_SLUG }}-config +```@endif + +@if ($SETUP_DATABASE) ## Migrations ```bash # publish migrations -php artisan vendor:publish --tag={{ PACKAGE_SLUG }}-migrations +php artisan vendor:publish --tag={{ $PACKAGE_SLUG }}-migrations # apply migrations -php artisan migrate --path=/database/migrations/{{ VENDOR_SLUG }}/{{ PACKAGE_SLUG }} -```{{ CON_SETUP_DATABASE_END }} +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_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_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_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 }} +[link_packagist]: https://packagist.org/packages/{{ $COMPOSER_PACKAGE_NAME }} From 6fbc53b3edcde00dbe6361ba0361bd3358cd7621 Mon Sep 17 00:00:00 2001 From: Egoist Date: Tue, 14 Mar 2023 10:44:20 +0300 Subject: [PATCH 23/41] Handle unreplaced templates --- src/Supports/TemplateSupport.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/Supports/TemplateSupport.php b/src/Supports/TemplateSupport.php index 711da59..862288a 100644 --- a/src/Supports/TemplateSupport.php +++ b/src/Supports/TemplateSupport.php @@ -37,20 +37,22 @@ public function replaceTemplate(string $stubPath, string $targetPath, array|null } if (!$this->file->exists($targetPath)) { - $subContent = $this->file->get($stubPath); + $replaceContent = $this->bladeSupport->renderTemplate($stubPath, $replacements); - if (!empty($subContent)) { - $replaceContent = $this->bladeSupport->renderTemplate($stubPath, $replacements); + if ($replaceContent) { + $outputFileExtension = pathinfo($targetPath, PATHINFO_EXTENSION); - 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); + } - 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); - return $this->file->put($targetPath, $replaceContent); + if ($stubContent) { + return $this->file->put($targetPath, $stubContent); } } } From 87cfc062096b17fd12ebfee3234cbdad7e550bb7 Mon Sep 17 00:00:00 2001 From: Egoist Date: Tue, 14 Mar 2023 10:44:51 +0300 Subject: [PATCH 24/41] Update package template --- .../stubs/install/src/Con_Facades/PackageName.php.blade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/stubs/install/src/Con_Facades/PackageName.php.blade.php b/resources/stubs/install/src/Con_Facades/PackageName.php.blade.php index 53ced94..9a251a3 100644 --- a/resources/stubs/install/src/Con_Facades/PackageName.php.blade.php +++ b/resources/stubs/install/src/Con_Facades/PackageName.php.blade.php @@ -1,13 +1,13 @@ Date: Tue, 14 Mar 2023 10:48:26 +0300 Subject: [PATCH 25/41] Update package.json template --- resources/stubs/install/Con_resources/package.json.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/stubs/install/Con_resources/package.json.blade.php b/resources/stubs/install/Con_resources/package.json.blade.php index 550071b..f3c4b5a 100644 --- a/resources/stubs/install/Con_resources/package.json.blade.php +++ 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", From 7d0015d1ae74379296d8bed15c61bb76ab911ae7 Mon Sep 17 00:00:00 2001 From: Egoist Date: Tue, 14 Mar 2023 10:59:01 +0300 Subject: [PATCH 26/41] Update templates with new parameters --- resources/stubs/command/Command.php.stub | 2 +- resources/stubs/install/Con_routes/api.php.blade.php | 7 +++++-- resources/stubs/install/Con_routes/web.php.blade.php | 7 +++++-- resources/stubs/install/README.md.blade.php | 2 +- .../Con_Console/Commands/ExampleCommand.php.blade.php | 2 +- .../stubs/install/src/ServiceProvider.php.blade.php | 10 +++++----- 6 files changed, 18 insertions(+), 12 deletions(-) diff --git a/resources/stubs/command/Command.php.stub b/resources/stubs/command/Command.php.stub index a7edce7..7d54952 100644 --- a/resources/stubs/command/Command.php.stub +++ b/resources/stubs/command/Command.php.stub @@ -11,7 +11,7 @@ class {{ MAKE_CLASSNAME }} extends Command * * @var string */ - protected $signature = '{{ PACKAGE_SLUG }}:{{ COMMAND_SLUG }}'; + protected $signature = '{{ $PACKAGE_SLUG }}:{{ COMMAND_SLUG }}'; /** * The console command description. diff --git a/resources/stubs/install/Con_routes/api.php.blade.php b/resources/stubs/install/Con_routes/api.php.blade.php index 73e9690..f413fa2 100644 --- a/resources/stubs/install/Con_routes/api.php.blade.php +++ b/resources/stubs/install/Con_routes/api.php.blade.php @@ -1,8 +1,11 @@ -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.blade.php b/resources/stubs/install/Con_routes/web.php.blade.php index 1ac4af5..5825d1d 100644 --- a/resources/stubs/install/Con_routes/web.php.blade.php +++ b/resources/stubs/install/Con_routes/web.php.blade.php @@ -1,8 +1,11 @@ -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 index 62f77a3..8b5f2ee 100644 --- a/resources/stubs/install/README.md.blade.php +++ b/resources/stubs/install/README.md.blade.php @@ -35,7 +35,7 @@ php artisan vendor:publish --tag={{ $PACKAGE_SLUG }}-migrations # apply migrations -php artisan migrate --path=/database/migrations/{{ VENDOR_SLUG }}/{{ $PACKAGE_SLUG }} +php artisan migrate --path=/database/migrations/{{ $VENDOR_SLUG }}/{{ $PACKAGE_SLUG }} ``` @endif diff --git a/resources/stubs/install/src/Con_Console/Commands/ExampleCommand.php.blade.php b/resources/stubs/install/src/Con_Console/Commands/ExampleCommand.php.blade.php index 61d4ec4..6e5da40 100644 --- a/resources/stubs/install/src/Con_Console/Commands/ExampleCommand.php.blade.php +++ b/resources/stubs/install/src/Con_Console/Commands/ExampleCommand.php.blade.php @@ -13,7 +13,7 @@ class ExampleCommand extends Command * * @var string */ - protected $signature = '{{ PACKAGE_SLUG }}:init'; + protected $signature = '{{ $PACKAGE_SLUG }}:init'; /** * The console command description. diff --git a/resources/stubs/install/src/ServiceProvider.php.blade.php b/resources/stubs/install/src/ServiceProvider.php.blade.php index c7430d1..89379f9 100644 --- a/resources/stubs/install/src/ServiceProvider.php.blade.php +++ b/resources/stubs/install/src/ServiceProvider.php.blade.php @@ -32,7 +32,7 @@ public function boot(Router $router): void public function register(): void {{{ CON_SETUP_CONFIG_START }} // package config file - $this->mergeConfigFrom(__DIR__ . '/../config/{{ PACKAGE_SLUG }}.php', '{{ PACKAGE_SLUG }}'); + $this->mergeConfigFrom(__DIR__ . '/../config/{{ $PACKAGE_SLUG }}.php', '{{ $PACKAGE_SLUG }}'); {{ CON_SETUP_CONFIG_END }} } @@ -45,15 +45,15 @@ 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'); + __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'); + $migrationsPath => database_path('migrations/{{ VENDOR_SLUG }}/{{ $PACKAGE_SLUG }}') + ], '{{ $PACKAGE_SLUG }}-migrations'); $this->loadMigrationsFrom($migrationsPath);{{ CON_SETUP_DATABASE_END }} } From 6038e3f5c7e0dc7cab266d4cfe69b552b2ed67ea Mon Sep 17 00:00:00 2001 From: Egoist Date: Tue, 14 Mar 2023 11:15:34 +0300 Subject: [PATCH 27/41] Update use term --- resources/stubs/install/composer.json.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/stubs/install/composer.json.blade.php b/resources/stubs/install/composer.json.blade.php index 6dd801e..5df2fb5 100644 --- a/resources/stubs/install/composer.json.blade.php +++ b/resources/stubs/install/composer.json.blade.php @@ -63,7 +63,7 @@ "laravel": { "providers": [ "{{ $FULL_NAMESPACE_JSON }}\\ServiceProvider" - ]@if($USE_FACADES), + ]@if($SETUP_FACADES), "aliases": { "{{ $PACKAGE_NAMESPACE }}": "{{ $FULL_NAMESPACE_JSON }}\\Facades\\{{ $PACKAGE_NAMESPACE }}" }@endif From bdef8184d2f2055b353ff85db039a24386d0d6db Mon Sep 17 00:00:00 2001 From: Egoist Date: Tue, 14 Mar 2023 11:16:33 +0300 Subject: [PATCH 28/41] Update route templates --- resources/stubs/install/Con_routes/api.php.blade.php | 5 ++--- resources/stubs/install/Con_routes/web.php.blade.php | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/resources/stubs/install/Con_routes/api.php.blade.php b/resources/stubs/install/Con_routes/api.php.blade.php index f413fa2..a2d395b 100644 --- a/resources/stubs/install/Con_routes/api.php.blade.php +++ b/resources/stubs/install/Con_routes/api.php.blade.php @@ -1,10 +1,9 @@ @php - echo 'prefix('{{ $PACKAGE_SLUG }}')->group(function () { // add package-specific api routes here diff --git a/resources/stubs/install/Con_routes/web.php.blade.php b/resources/stubs/install/Con_routes/web.php.blade.php index 5825d1d..cef0cac 100644 --- a/resources/stubs/install/Con_routes/web.php.blade.php +++ b/resources/stubs/install/Con_routes/web.php.blade.php @@ -1,10 +1,9 @@ @php - echo 'prefix('{{ $PACKAGE_SLUG }}')->group(function () { // add package-specific web routes here From bcfb1cbaeb7449beee42daf9229ba8c725eb08cf Mon Sep 17 00:00:00 2001 From: Egoist Date: Tue, 14 Mar 2023 11:27:48 +0300 Subject: [PATCH 29/41] Update templates --- resources/stubs/command/Command.php.stub | 2 +- resources/stubs/command/Controller.php.stub | 4 +-- resources/stubs/command/Middleware.php.stub | 2 +- resources/stubs/command/Model.php.stub | 2 +- resources/stubs/command/Request.php.stub | 2 +- resources/stubs/command/Service.php.stub | 2 +- .../Commands/ExampleCommand.php.blade.php | 10 +++--- .../src/Con_Facades/PackageName.php.blade.php | 4 ++- .../PackageNameException.php.blade.php | 8 +++-- .../Controllers/BaseController.php.blade.php | 6 ++-- .../install/src/ServiceProvider.php.blade.php | 35 ++++++++++--------- 11 files changed, 44 insertions(+), 33 deletions(-) diff --git a/resources/stubs/command/Command.php.stub b/resources/stubs/command/Command.php.stub index 7d54952..361cb92 100644 --- a/resources/stubs/command/Command.php.stub +++ b/resources/stubs/command/Command.php.stub @@ -1,6 +1,6 @@ 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 index 9a251a3..cc85f11 100644 --- a/resources/stubs/install/src/Con_Facades/PackageName.php.blade.php +++ b/resources/stubs/install/src/Con_Facades/PackageName.php.blade.php @@ -1,4 +1,6 @@ -bootPublishes(); -{{ CON_SETUP_CONSOLE_START }} + @if($SETUP_CONSOLE) $this->loadCommands(); -{{ CON_SETUP_CONSOLE_END }}{{ CON_SETUP_ROUTES_START }} - $this->loadRoutes();{{ CON_SETUP_ROUTES_END }} + @endif @if($SETUP_ROUTES) + $this->loadRoutes();@endif } /** @@ -30,10 +32,10 @@ public function boot(Router $router): void * @return void */ public function register(): void - {{{ CON_SETUP_CONFIG_START }} + {@if ($SETUP_CONFIG) // package config file $this->mergeConfigFrom(__DIR__ . '/../config/{{ $PACKAGE_SLUG }}.php', '{{ $PACKAGE_SLUG }}'); -{{ CON_SETUP_CONFIG_END }} +@endif } /** @@ -42,22 +44,22 @@ public function register(): void * @return void */ private function bootPublishes(): void - {{{ CON_SETUP_CONFIG_START }} + {@if ($SETUP_CONFIG) // 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 }} +@endif @if ($SETUP_DATABASE) // migrations $migrationsPath = __DIR__ . '/../database/migrations/'; $this->publishes([ - $migrationsPath => database_path('migrations/{{ VENDOR_SLUG }}/{{ $PACKAGE_SLUG }}') + $migrationsPath => database_path('migrations/{{ $VENDOR_SLUG }}/{{ $PACKAGE_SLUG }}') ], '{{ $PACKAGE_SLUG }}-migrations'); - $this->loadMigrationsFrom($migrationsPath);{{ CON_SETUP_DATABASE_END }} + $this->loadMigrationsFrom($migrationsPath);@endif } -{{ CON_SETUP_CONSOLE_START }} +@if($SETUP_CONSOLE) /** * Load package commands * @@ -71,7 +73,8 @@ private function loadCommands(): void ]); } } -{{ CON_SETUP_CONSOLE_END }}{{ CON_SETUP_ROUTES_START }} +@endif +@if($SETUP_ROUTES) /** * Load pacakge-specific routes * @@ -81,5 +84,5 @@ private function loadRoutes(): void { $this->loadRoutesFrom(__DIR__ . '/../routes/api.php'); $this->loadRoutesFrom(__DIR__ . '/../routes/web.php'); - }{{ CON_SETUP_ROUTES_END }} + }@endif } From 37534c9cb770be4585c871469fa0360eee42d110 Mon Sep 17 00:00:00 2001 From: Egoist Date: Tue, 14 Mar 2023 11:29:22 +0300 Subject: [PATCH 30/41] Update configs --- src/Services/InstallerService.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Services/InstallerService.php b/src/Services/InstallerService.php index 29adc66..a195514 100644 --- a/src/Services/InstallerService.php +++ b/src/Services/InstallerService.php @@ -27,7 +27,7 @@ class InstallerService 'PACKAGE_TAGS' => [], 'SETUP_CONFIG' => true, 'SETUP_DATABASE' => false, - 'USE_FACADES' => false, + 'SETUP_FACADES' => false, 'SETUP_RESOURCES' => false, 'SETUP_CONSOLE' => false, 'SETUP_ROUTES' => false, @@ -85,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']}"; @@ -160,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; } @@ -370,7 +371,6 @@ public function installPackage(): void 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 @@ -381,9 +381,7 @@ public function installPackage(): void $targetPath = Str::replace('package-slug', $this->configs['PACKAGE_SLUG'], $targetPath); } - $stubPath = $filePath; - - $this->stubSupport->replaceTemplate($stubPath, $targetPath, $this->configs); + $this->stubSupport->replaceTemplate($filePath, $targetPath, $this->configs); } } } From 81879713d558b658eedceaa820388f81f21676d2 Mon Sep 17 00:00:00 2001 From: Egoist Date: Tue, 14 Mar 2023 11:34:36 +0300 Subject: [PATCH 31/41] Update make templates --- .../{Command.php.stub => Command.php.blade.php} | 10 ++++++---- ...ntroller.php.stub => Controller.php.blade.php} | 8 +++++--- ...ddleware.php.stub => Middleware.php.blade.php} | 6 ++++-- ...Migration.php.stub => Migration.php.blade.php} | 15 ++++++++------- .../{Model.php.stub => Model.php.blade.php} | 8 +++++--- .../{Request.php.stub => Request.php.blade.php} | 8 +++++--- .../{Service.php.stub => Service.php.blade.php} | 6 ++++-- 7 files changed, 37 insertions(+), 24 deletions(-) rename resources/stubs/command/{Command.php.stub => Command.php.blade.php} (78%) rename resources/stubs/command/{Controller.php.stub => Controller.php.blade.php} (56%) rename resources/stubs/command/{Middleware.php.stub => Middleware.php.blade.php} (74%) rename resources/stubs/command/{Migration.php.stub => Migration.php.blade.php} (59%) rename resources/stubs/command/{Model.php.stub => Model.php.blade.php} (73%) rename resources/stubs/command/{Request.php.stub => Request.php.blade.php} (74%) rename resources/stubs/command/{Service.php.stub => Service.php.blade.php} (61%) 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 361cb92..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 f114bc1..90cbc1c 100644 --- a/resources/stubs/command/Model.php.stub +++ b/resources/stubs/command/Model.php.blade.php @@ -1,10 +1,12 @@ - Date: Wed, 15 Mar 2023 08:38:20 +0300 Subject: [PATCH 32/41] Remove service import --- .../install/src/ServiceProvider.php.blade.php | 116 +++++++++--------- 1 file changed, 60 insertions(+), 56 deletions(-) diff --git a/resources/stubs/install/src/ServiceProvider.php.blade.php b/resources/stubs/install/src/ServiceProvider.php.blade.php index 1e3c727..48404ea 100644 --- a/resources/stubs/install/src/ServiceProvider.php.blade.php +++ b/resources/stubs/install/src/ServiceProvider.php.blade.php @@ -1,5 +1,5 @@ @php - echo 'bootPublishes(); - @if($SETUP_CONSOLE) - $this->loadCommands(); - @endif @if($SETUP_ROUTES) - $this->loadRoutes();@endif +/** +* Bootstrap of package services +* +* @return void +*/ +public function boot(Router $router): void +{ +$this->bootPublishes(); +@if ($SETUP_CONSOLE) + $this->loadCommands(); + @endif @if ($SETUP_ROUTES) + $this->loadRoutes(); + @endif } /** - * Register any application services - * - * @return void - */ + * 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 + @endif } /** - * Publishes resources on boot - * - * @return void - */ + * 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'), + __DIR__ . '/../config/{{ $PACKAGE_SLUG }}.php' => $this->app->configPath('{{ $PACKAGE_SLUG }}.php'), ], '{{ $PACKAGE_SLUG }}-config'); -@endif @if ($SETUP_DATABASE) - // migrations - $migrationsPath = __DIR__ . '/../database/migrations/'; + @endif @if ($SETUP_DATABASE) + // migrations + $migrationsPath = __DIR__ . '/../database/migrations/'; - $this->publishes([ + $this->publishes([ $migrationsPath => database_path('migrations/{{ $VENDOR_SLUG }}/{{ $PACKAGE_SLUG }}') - ], '{{ $PACKAGE_SLUG }}-migrations'); + ], '{{ $PACKAGE_SLUG }}-migrations'); - $this->loadMigrationsFrom($migrationsPath);@endif - } -@if($SETUP_CONSOLE) - /** - * Load package commands - * - * @return void - */ - private function loadCommands(): void - { - if ($this->app->runningInConsole()) { + $this->loadMigrationsFrom($migrationsPath); + @endif + } + @if ($SETUP_CONSOLE) + /** + * Load package commands + * + * @return void + */ + private function loadCommands(): void + { + if ($this->app->runningInConsole()) { $this->commands([ - ExampleCommand::class, + ExampleCommand::class, ]); + } + } + @endif + @if ($SETUP_ROUTES) + /** + * Load pacakge-specific routes + * + * @return void + */ + private function loadRoutes(): void + { + $this->loadRoutesFrom(__DIR__ . '/../routes/api.php'); + $this->loadRoutesFrom(__DIR__ . '/../routes/web.php'); + } + @endif } - } -@endif -@if($SETUP_ROUTES) - /** - * Load pacakge-specific routes - * - * @return void - */ - private function loadRoutes(): void - { - $this->loadRoutesFrom(__DIR__ . '/../routes/api.php'); - $this->loadRoutesFrom(__DIR__ . '/../routes/web.php'); - }@endif -} From 7ff2d068d906c0d07acc596bd74aab3cdeffbfb1 Mon Sep 17 00:00:00 2001 From: Egoist Date: Wed, 15 Mar 2023 08:39:59 +0300 Subject: [PATCH 33/41] Fix typo --- .../install/src/ServiceProvider.php.blade.php | 117 +++++++++--------- 1 file changed, 57 insertions(+), 60 deletions(-) diff --git a/resources/stubs/install/src/ServiceProvider.php.blade.php b/resources/stubs/install/src/ServiceProvider.php.blade.php index 48404ea..7336621 100644 --- a/resources/stubs/install/src/ServiceProvider.php.blade.php +++ b/resources/stubs/install/src/ServiceProvider.php.blade.php @@ -1,5 +1,5 @@ @php - echo 'bootPublishes(); -@if ($SETUP_CONSOLE) - $this->loadCommands(); - @endif @if ($SETUP_ROUTES) - $this->loadRoutes(); - @endif + /** + * Bootstrap of package services + * + * @return void + */ + public function boot(Router $router): void + { + $this->bootPublishes(); + @if($SETUP_CONSOLE) + $this->loadCommands(); + @endif @if($SETUP_ROUTES) + $this->loadRoutes();@endif } /** - * Register any application services - * - * @return void - */ + * 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 +@endif } /** - * Publishes resources on boot - * - * @return void - */ + * 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'), + __DIR__ . '/../config/{{ $PACKAGE_SLUG }}.php' => $this->app->configPath('{{ $PACKAGE_SLUG }}.php'), ], '{{ $PACKAGE_SLUG }}-config'); - @endif @if ($SETUP_DATABASE) - // migrations - $migrationsPath = __DIR__ . '/../database/migrations/'; +@endif @if ($SETUP_DATABASE) + // migrations + $migrationsPath = __DIR__ . '/../database/migrations/'; - $this->publishes([ + $this->publishes([ $migrationsPath => database_path('migrations/{{ $VENDOR_SLUG }}/{{ $PACKAGE_SLUG }}') - ], '{{ $PACKAGE_SLUG }}-migrations'); + ], '{{ $PACKAGE_SLUG }}-migrations'); - $this->loadMigrationsFrom($migrationsPath); - @endif - } - @if ($SETUP_CONSOLE) - /** - * Load package commands - * - * @return void - */ - private function loadCommands(): void - { - if ($this->app->runningInConsole()) { + $this->loadMigrationsFrom($migrationsPath);@endif + } +@if($SETUP_CONSOLE) + /** + * Load package commands + * + * @return void + */ + private function loadCommands(): void + { + if ($this->app->runningInConsole()) { $this->commands([ - ExampleCommand::class, + ExampleCommand::class, ]); - } - } - @endif - @if ($SETUP_ROUTES) - /** - * Load pacakge-specific routes - * - * @return void - */ - private function loadRoutes(): void - { - $this->loadRoutesFrom(__DIR__ . '/../routes/api.php'); - $this->loadRoutesFrom(__DIR__ . '/../routes/web.php'); - } - @endif } + } +@endif +@if($SETUP_ROUTES) + /** + * Load pacakge-specific routes + * + * @return void + */ + private function loadRoutes(): void + { + $this->loadRoutesFrom(__DIR__ . '/../routes/api.php'); + $this->loadRoutesFrom(__DIR__ . '/../routes/web.php'); + }@endif + +} From 70673b91f59b6049796c31ff4869b31f57facc4e Mon Sep 17 00:00:00 2001 From: Egoist Date: Wed, 15 Mar 2023 09:17:46 +0300 Subject: [PATCH 34/41] Update dependencies versions --- resources/stubs/install/composer.json.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/stubs/install/composer.json.blade.php b/resources/stubs/install/composer.json.blade.php index 5df2fb5..a948026 100644 --- a/resources/stubs/install/composer.json.blade.php +++ b/resources/stubs/install/composer.json.blade.php @@ -21,8 +21,8 @@ "source": "{{ $REPO_URL }}" }, "require": { - "php": "^8.0", - "illuminate/support": "^9.0" + "php": "^8.1 || ^8.0", + "illuminate/support": "^10.0 || ^9.0" }, "require-dev": { "mockery/mockery": "^1.4", From 69a5914b60b0bac75a6b4871cc8da762de505716 Mon Sep 17 00:00:00 2001 From: Egoist Date: Wed, 15 Mar 2023 09:27:09 +0300 Subject: [PATCH 35/41] Update deps --- .../stubs/install/composer.json.blade.php | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/resources/stubs/install/composer.json.blade.php b/resources/stubs/install/composer.json.blade.php index a948026..d6f087f 100644 --- a/resources/stubs/install/composer.json.blade.php +++ b/resources/stubs/install/composer.json.blade.php @@ -21,19 +21,19 @@ "source": "{{ $REPO_URL }}" }, "require": { - "php": "^8.1 || ^8.0", - "illuminate/support": "^10.0 || ^9.0" + "php": "^8.1", + "illuminate/support": "^10.3" }, "require-dev": { - "mockery/mockery": "^1.4", - "orchestra/testbench": "^7.0.0"@if ($USE_PHPSTAN), - "phpstan/phpstan": "^1.8", - "phpstan/phpstan-phpunit": "^1.1", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/extension-installer": "^1.1", - "nunomaduro/larastan": "^2.1"@endif @if ($USE_PEST), - "pestphp/pest": "^1.2", - "pestphp/pest-plugin-laravel": "^1.2", + "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": { From 555015bd8159eb5a99b9d8ff1fd93e33eb5a3c18 Mon Sep 17 00:00:00 2001 From: Egoist Date: Fri, 17 Mar 2023 07:25:33 +0300 Subject: [PATCH 36/41] Fix typo --- resources/stubs/install/src/ServiceProvider.php.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/stubs/install/src/ServiceProvider.php.blade.php b/resources/stubs/install/src/ServiceProvider.php.blade.php index 7336621..bf0f4d8 100644 --- a/resources/stubs/install/src/ServiceProvider.php.blade.php +++ b/resources/stubs/install/src/ServiceProvider.php.blade.php @@ -76,7 +76,7 @@ private function loadCommands(): void @endif @if($SETUP_ROUTES) /** - * Load pacakge-specific routes + * Load package specific routes * * @return void */ From d1f1a048823637795a57e4b4c818ac6c3771e430 Mon Sep 17 00:00:00 2001 From: Egoist Date: Fri, 17 Mar 2023 17:29:14 +0300 Subject: [PATCH 37/41] Add usage steps --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) 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` From 4faccee0f569f56548d1f02f07d3280e96c91892 Mon Sep 17 00:00:00 2001 From: Egoist Date: Wed, 29 Mar 2023 04:11:35 +0300 Subject: [PATCH 38/41] Add example migration file --- .../install/Con_database/migrations/.gitkeep | 0 ..._12_000000_create_examples_table.blade.php | 32 +++++++++++++++++++ 2 files changed, 32 insertions(+) delete mode 100644 resources/stubs/install/Con_database/migrations/.gitkeep create mode 100644 resources/stubs/install/Con_database/migrations/2014_10_12_000000_create_examples_table.blade.php diff --git a/resources/stubs/install/Con_database/migrations/.gitkeep b/resources/stubs/install/Con_database/migrations/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/resources/stubs/install/Con_database/migrations/2014_10_12_000000_create_examples_table.blade.php b/resources/stubs/install/Con_database/migrations/2014_10_12_000000_create_examples_table.blade.php new file mode 100644 index 0000000..5a6da67 --- /dev/null +++ b/resources/stubs/install/Con_database/migrations/2014_10_12_000000_create_examples_table.blade.php @@ -0,0 +1,32 @@ +@php + echo 'id(); + + // ... + + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('examples'); + } +}; From df7ec5b44d81b894c43725477576d6aa99851d4d Mon Sep 17 00:00:00 2001 From: Egoist Date: Thu, 30 Mar 2023 22:08:01 +0300 Subject: [PATCH 39/41] Use package name as a example table name --- .../2014_10_12_000000_create_examples_table.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/stubs/install/Con_database/migrations/2014_10_12_000000_create_examples_table.blade.php b/resources/stubs/install/Con_database/migrations/2014_10_12_000000_create_examples_table.blade.php index 5a6da67..73e728a 100644 --- a/resources/stubs/install/Con_database/migrations/2014_10_12_000000_create_examples_table.blade.php +++ b/resources/stubs/install/Con_database/migrations/2014_10_12_000000_create_examples_table.blade.php @@ -13,7 +13,7 @@ */ public function up(): void { - Schema::create('examples', function (Blueprint $table) { + Schema::create('{{ $PACKAGE_SLUG }}', function (Blueprint $table) { $table->id(); // ... @@ -27,6 +27,6 @@ public function up(): void */ public function down(): void { - Schema::dropIfExists('examples'); + Schema::dropIfExists('{{ $PACKAGE_SLUG }}'); } }; From 51fb9a16a33924870abdae18bc8e1392ddc80597 Mon Sep 17 00:00:00 2001 From: Egoist Date: Sun, 9 Apr 2023 20:09:28 +0300 Subject: [PATCH 40/41] Remove version property --- resources/stubs/install/composer.json.blade.php | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/stubs/install/composer.json.blade.php b/resources/stubs/install/composer.json.blade.php index d6f087f..09c8332 100644 --- a/resources/stubs/install/composer.json.blade.php +++ b/resources/stubs/install/composer.json.blade.php @@ -3,7 +3,6 @@ "description": "{{ $PACKAGE_DESC }}", "type": "library", "license": "MIT", - "version": "1.0.0", @if ($PACKAGE_TAGS && count($PACKAGE_TAGS)) "keywords": [ @foreach ($PACKAGE_TAGS as $key => $tag) "{{ $tag }}"@if ($key !== count($PACKAGE_TAGS) - 1),@endif From 53ffc6bdc9a154bedd4eff888429e6d59477aef4 Mon Sep 17 00:00:00 2001 From: Egoist Date: Mon, 10 Apr 2023 14:59:33 +0300 Subject: [PATCH 41/41] Update default banner --- resources/stubs/install/README.md.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/stubs/install/README.md.blade.php b/resources/stubs/install/README.md.blade.php index 8b5f2ee..9a329ba 100644 --- a/resources/stubs/install/README.md.blade.php +++ b/resources/stubs/install/README.md.blade.php @@ -1,6 +1,6 @@ # {{ $PACKAGE_TITLE }} -[![{{ $PACKAGE_TITLE }}](https://preview.dragon-code.pro/{{ $VENDOR_NAMESPACE }}/{{ $PACKAGE_SLUG }}.svg?brand=laravel)]({{ $REPO_URL }}) +[![{{ $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] @@ -28,7 +28,7 @@ ```@endif @if ($SETUP_DATABASE) -## Migrations +## πŸ“… Migrations ```bash # publish migrations