diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..84fc8e5 --- /dev/null +++ b/.envrc @@ -0,0 +1,7 @@ +# Automatically sets up your devbox environment whenever you cd into this +# directory via our direnv integration: + +eval "$(devbox generate direnv --print-envrc)" + +# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/ +# for more details diff --git a/README.md b/README.md index 1d975a9..fa1dc02 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,12 @@ Mail isn't faked here. You get to inspect the actual mail ensuring you are sendi ## Requirements -| Laravel Version | Mail Intercept Version | -|:-----------------|:------------------------| -| 10.x | 0.4.x | -| 9.x | 0.3.x | -| 8.x and lower | 0.2.x | +| Laravel Version | Mail Intercept Version | +|:----------------|:-----------------------| +| 11.x | 0.5.x | +| 10.x | 0.4.x | +| 9.x | 0.3.x | +| 8.x and lower | 0.2.x | Please note: If you are using `v0.2.x`, please refer to that version's [documentation](https://github.com/kirschbaum-development/mail-intercept/tree/v0.2.x). diff --git a/composer.json b/composer.json index 8cbb978..871413e 100644 --- a/composer.json +++ b/composer.json @@ -17,14 +17,14 @@ } ], "require": { - "php": "^8.0.2|^8.1", - "illuminate/mail": "^9.2|^10.0" + "php": "^8.0.2|^8.1|^8.2", + "illuminate/mail": "^9.2|^10.0|^11.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.7", - "orchestra/testbench": "^7.1|^8.0", - "phpunit/phpunit": "^9.5.10", - "spatie/ray": "^1.34" + "orchestra/testbench": "^7.1|^8.0|^9.0", + "phpunit/phpunit": "^9.5.10|^10.5", + "spatie/ray": "^1.41.1" }, "autoload": { "psr-4": { diff --git a/devbox.d/php/php-fpm.conf b/devbox.d/php/php-fpm.conf new file mode 100644 index 0000000..b935957 --- /dev/null +++ b/devbox.d/php/php-fpm.conf @@ -0,0 +1,17 @@ +[global] +pid = ${PHPFPM_PID_FILE} +error_log = ${PHPFPM_ERROR_LOG_FILE} +daemonize = yes + +[www] +; user = www-data +; group = www-data +listen = 127.0.0.1:${PHPFPM_PORT} +; listen.owner = www-data +; listen.group = www-data +pm = dynamic +pm.max_children = 5 +pm.start_servers = 2 +pm.min_spare_servers = 1 +pm.max_spare_servers = 3 +chdir = / diff --git a/devbox.d/php/php.ini b/devbox.d/php/php.ini new file mode 100644 index 0000000..b4626d5 --- /dev/null +++ b/devbox.d/php/php.ini @@ -0,0 +1,6 @@ +[php] + +; Put your php.ini directives here. For the latest default php.ini file, see https://github.com/php/php-src/blob/master/php.ini-production + +; memory_limit = 128M +; expose_php = Off diff --git a/devbox.json b/devbox.json new file mode 100644 index 0000000..e28cec2 --- /dev/null +++ b/devbox.json @@ -0,0 +1,13 @@ +{ + "packages": ["php@8.2"], + "shell": { + "init_hook": [ + "echo 'Welcome to devbox!' > /dev/null" + ], + "scripts": { + "test": [ + "echo \"Error: no test specified\" && exit 1" + ] + } + } +} diff --git a/devbox.lock b/devbox.lock new file mode 100644 index 0000000..1d9d8a0 --- /dev/null +++ b/devbox.lock @@ -0,0 +1,54 @@ +{ + "lockfile_version": "1", + "packages": { + "php@8.2": { + "last_modified": "2024-03-08T13:51:52Z", + "plugin_version": "0.0.3", + "resolved": "github:NixOS/nixpkgs/a343533bccc62400e8a9560423486a3b6c11a23b#php", + "source": "devbox-search", + "version": "8.2.16", + "systems": { + "aarch64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/zbs3abbzn3wk71cg0nxb1cslr0dqvqh1-php-with-extensions-8.2.16", + "default": true + } + ], + "store_path": "/nix/store/zbs3abbzn3wk71cg0nxb1cslr0dqvqh1-php-with-extensions-8.2.16" + }, + "aarch64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/m1zbpk3mkx2g8zg9jr2ihw15miahjap4-php-with-extensions-8.2.16", + "default": true + } + ], + "store_path": "/nix/store/m1zbpk3mkx2g8zg9jr2ihw15miahjap4-php-with-extensions-8.2.16" + }, + "x86_64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/1c7sygadaq4bfacs9lx5php74hllrsnn-php-with-extensions-8.2.16", + "default": true + } + ], + "store_path": "/nix/store/1c7sygadaq4bfacs9lx5php74hllrsnn-php-with-extensions-8.2.16" + }, + "x86_64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/a96xa8idc7zsjdc5s8bbysc2ij16818j-php-with-extensions-8.2.16", + "default": true + } + ], + "store_path": "/nix/store/a96xa8idc7zsjdc5s8bbysc2ij16818j-php-with-extensions-8.2.16" + } + } + } + } +}