diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e69de29 diff --git a/composer.json b/composer.json old mode 100644 new mode 100755 index 504b2b5..c6656c0 --- a/composer.json +++ b/composer.json @@ -1,22 +1,44 @@ { - "name": "elliotjreed/php-package-boilperplate", - "license": "MIT", - "type": "project", - "description": "Example PHP package.", - "autoload": { - "psr-4" : { - "Example\\" : "src/Example/" - } - }, - "autoload-dev": { - "psr-4" : { - "Tests\\Example\\" : "tests/Example/" - } - }, - "require": { - "php": "^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.5" + "name": "elliotjreed/php-package-boilperplate", + "license": "MIT", + "type": "project", + "description": "Example PHP package.", + "autoload": { + "psr-4": { + "Example\\": "src/Example/" } + }, + "autoload-dev": { + "psr-4": { + "Tests\\Example\\": "tests/Example/" + } + }, + "require": { + "php": "^8.0", + "composer/composer": "~2.0.14" + }, + "require-dev": { + "phpunit/phpunit": "^9.5" + }, + "minimum-stability": "dev", + "prefer-stable": true, + "config": { + "optimize-autoloader": true, + "sort-packages": true + }, + "extra": [], + "scripts": { + "post-root-package-install": [ + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + ], + "test": "vendor/bin/phpunit --prepend test/bootstrap.php -c phpunit.xml --colors=always", + "cs-fix": "php-cs-fixer fix $1", + "analyse": "phpstan analyse --memory-limit 300M -l 0 -c phpstan.neon ./app ./config" + }, + "repositories": { + "packagist": { + "type": "composer", + "url": "https://mirrors.aliyun.com/composer" + } + } } diff --git a/composer.lock b/composer.lock old mode 100644 new mode 100755 diff --git a/scripts/container/git-config.sh b/scripts/container/git-config.sh old mode 100644 new mode 100755 diff --git a/scripts/container/list_dir.sh b/scripts/container/list_dir.sh old mode 100644 new mode 100755 diff --git a/scripts/container/ssh-key-permission.sh b/scripts/container/ssh-key-permission.sh old mode 100644 new mode 100755 diff --git a/scripts/unix/build-image.sh b/scripts/unix/build-image.sh old mode 100644 new mode 100755 diff --git a/scripts/unix/docker-env.sh b/scripts/unix/docker-env.sh old mode 100644 new mode 100755 diff --git a/scripts/win/build-images.bat b/scripts/win/build-images.bat old mode 100644 new mode 100755 diff --git a/scripts/win/docker-env.bat b/scripts/win/docker-env.bat old mode 100644 new mode 100755 diff --git a/scripts/win/prettier.bat b/scripts/win/prettier.bat old mode 100644 new mode 100755 diff --git a/scripts/win/readme.md b/scripts/win/readme.md old mode 100644 new mode 100755 diff --git a/tests/bootstrap.php b/tests/bootstrap.php new file mode 100644 index 0000000..b0dacdf --- /dev/null +++ b/tests/bootstrap.php @@ -0,0 +1,16 @@ +