Download the PHP package atymic/vapor-core without Composer
On this page you can find all versions of the php package atymic/vapor-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download atymic/vapor-core
More information about atymic/vapor-core
Files in atymic/vapor-core
Package vapor-core
Short Description The kernel and invocation handlers for Laravel Vapor
License MIT
Homepage https://github.com/atymic/vapor-core
Informations about the package vapor-core
Laravel Vapor Core / Runtime with Extended Secret Support
Changes from upstream
By default, vapor passes your .env
variables directly to the lambda function. Unfortunately this has a 2kb limit - very easy to exceed, especially with apps that interact with lots of external services. Currently, the Laravel team suggests creating a secret for every single extra environment variable, which is unfeasible.
This fork of the official package adds extended ENV support. This works by pushing your additional .env
files to a secret which is loaded just like a normal dotenv in Laravel.
Ideally this will be integrated into the core, but the Laravel team does not currently seem to be prioritising this issue.
The change is very small and single, you can view it by diffing this fork against the official repo.
Using this package
-
Update your
composer.json
to point your installation to the fork, using therepositories
option. - Update your version to the latest tag (first release being 2.21.3), which will have the secrets code in it. Make sure to lock it to the specific version (otherwise, when laravel updates the mainline package you'll be upgraded and won't have the secret code). Subscribe to release notifications on the repo so you can update once we have released the new version.
- Create an additional
.env
file, for example,.env.extended
(make sure to gitignore). This file can be up to 10kb - Update your production deployment script to push the extended env file to a secret (i.e.
vapor secret --name DOT_ENV_EXTENDED --file .env.extended production
)- Any secret with a name prefixed with
DOT_ENV
will be loaded by laravel as aenv
file
- Any secret with a name prefixed with
- Your app will load the additional secret file at runtime!
Upstream Readme
Laravel Vapor is an auto-scaling, serverless deployment platform for Laravel, powered by AWS Lambda. Manage your Laravel infrastructure on Vapor and fall in love with the scalability and simplicity of serverless.
Vapor abstracts the complexity of managing Laravel applications on AWS Lambda, as well as interfacing those applications with SQS queues, databases, Redis clusters, networks, CloudFront CDN, and more.
This repository contains the core service providers and runtime client used to make Laravel applications run smoothly in a serverless environment. To learn more about Vapor and how to use this repository, please consult the official documentation.
All versions of vapor-core with dependencies
aws/aws-sdk-php Version ^3.80
guzzlehttp/promises Version ^1.4|^2.0
guzzlehttp/guzzle Version ^6.3|^7.0
hollodotme/fast-cgi-client Version ^3.0
illuminate/container Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/http Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/queue Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/support Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
monolog/monolog Version ^1.12|^2.0|^3.2
nyholm/psr7 Version ^1.0
riverline/multipart-parser Version ^2.0.9
symfony/process Version ^4.3|^5.0|^6.0|^7.0
symfony/psr-http-message-bridge Version ^1.0|^2.0|^6.4|^7.0
vlucas/phpdotenv Version ^5.3