Vapor now allows you to deploy applications powered by the PHP 8.2 Release Candidate to your Vapor environments. To get started, simply specify
php-8.2:al2 as your preferred runtime in your application's
vapor.yml configuration file.
environments: staging: memory: 1024 runtime: 'php-8.2:al2' build: - 'COMPOSER_MIRROR_PATH_REPOS=1 composer install' - 'php artisan event:cache'
If your application is using Docker runtimes, you may update the PHP version like so:
FROM laravelphp/vapor:php82 COPY . /var/task
Keep in mind, some Vapor features, PHP features, and PHP extensions may not work as expected when running environments on PHP 8.2. And, of course, as soon as PHP 8.2 receives a stable release, your environment will automatically receive it after a subsequent deployment.
We hope you enjoy using PHP 8.2 on your Vapor projects. At Laravel, we're committed to providing you with the most robust and developer-friendly PHP experience in the world. If you haven't checked out Vapor, now is a great time to start! You can create your account today at: vapor.laravel.com.