Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grasmash/lambda-php-app
An example PHP app that runs on AWS Lambda
https://github.com/grasmash/lambda-php-app
Last synced: 18 days ago
JSON representation
An example PHP app that runs on AWS Lambda
- Host: GitHub
- URL: https://github.com/grasmash/lambda-php-app
- Owner: grasmash
- Created: 2022-09-06T19:45:34.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-07T17:51:07.000Z (over 2 years ago)
- Last Synced: 2024-10-25T15:22:11.995Z (2 months ago)
- Language: PHP
- Size: 984 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example PHP App for Lambda
This application uses the [Bref plugin](https://bref.sh/) for [Serverless](https://www.serverless.com/) to deploy a simple PHP
application to [AWS Lambda](https://docs.aws.amazon.com/lambda/latest/dg/welcome.html). The application can be reached through a [Function URL](https://docs.aws.amazon.com/lambda/latest/dg/lambda-urls.html).# Getting started
Just clone this repository and install its dependencies.
```shell
git clone [url]
composer install
```# Deploying to AWS Lambda
Ensure you have the serverless library installed locally:
```bash
npm install -g serverless
```And that you've configured serverless with your AWS credentials:
```bash
serverless config credentials --provider aws --key --secret
```Then, deploy!
```bash
serverless deploy
```