Getting Started

How to setup environment for running Serverless-PHP?

Serverless-PHP uses Bref (https://bref.sh) as a PHP runtime environment for AWS Lambda, and Serveless Framework (https://serverless.com) for simplifying the deployments of the application.

Before getting started you should have some basic knowledge of setting IAM Roles, and creating config credentials in your AWS account.

Installing Serverless Framework

As mentioned Serverless-PHP uses open source serverless framework for simplifying the deployment process on AWS. You need to setup cli for serverless framework in your system and create a free serverless pro account.

To install serverless cli you must have latest NODE installed on your device.

Installing Serveless CLI Using NPM

$ npm install serverless

Creating A New Serverless PRO Account

After successfully installing serverless CLI, you can create your free serverless pro account here.

To login into your account use and follow the instructions

$ serverless login

You can find detailed documentation to setup Serverless CLI on this link.

AWS Credentials Setup

$ serverless config credentials --provider aws --key your-credential-key --secret your-credential-secret

You can find detailed documentation about aws credential setup on this link.

Last updated

Was this helpful?