diff --git a/composer.json b/composer.json index 69d85bd..868efb3 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,9 @@ ], "scripts": { "test": "phpunit --colors=always", - "analyze": "phpstan analyze --ansi" + "analyze": "phpstan analyze --ansi", + "post-package-install": "TgWebValid\\PackageInstaller::postPackageInstall", + "post-package-uninstall": "TgWebValid\\PackageInstaller::postPackageUninstall" }, "require": { "php": "^8.2", diff --git a/src/PackageInstaller.php b/src/PackageInstaller.php new file mode 100644 index 0000000..03e3cd4 --- /dev/null +++ b/src/PackageInstaller.php @@ -0,0 +1,57 @@ +