Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Layer to support Symfony Runtime component #889

Closed
wants to merge 1 commit into from

Conversation

Nyholm
Copy link
Contributor

@Nyholm Nyholm commented Mar 20, 2021

This may be premature, but I wrote the code and pushed a layer here: arn:aws:lambda:eu-central-1:403367587399:layer:bref-symfony-runtime:3

Here is some information about code that I think should eventually move into Bref itself: https://github.com/php-runtime/bref
Here is a small Symfony example application: https://github.com/Nyholm/bref-runtime-demo

See this PR more as a discussion rather than "Merge this now".

With this PR you are able to run any PHP application on Bref by:

composer install runtime/bref
 # serverless.yml

 functions:
     web:
         handler: public/index.php
         timeout: 10
         layers:
-            - ${bref:layer.php-80}
+            - ${bref:layer.php-80-runtime}

Benefits includes:

@Nyholm
Copy link
Contributor Author

Nyholm commented May 25, 2021

FYI 1: I added brefphp/extra-php-extensions#231

FYI 2: I'll do a big presentation about this on Symfony Online in about 4 weeks.

@mnapoli
Copy link
Member

mnapoli commented May 25, 2021

Hey @Nyholm, adding that in bref-extra sounds like a good solution for now! At least the layer is available/usable, which is great to gauge usefulness and adoption.

@mnapoli
Copy link
Member

mnapoli commented Dec 30, 2021

🎉 Symfony runtime is now implemented and supported in https://github.com/brefphp/symfony-bridge

I've released a beta version, there should be a stable in the coming weeks!

@mnapoli mnapoli closed this Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants