serphperless
v0.1.3
Published
Blazing fast PHP function deployment
Downloads
6
Readme
Serphperless CLI
Functions (FaaS, Functions-as-a-service) are the future of rapid prototype deployment. This open-source command line tool, based on the Serverless framework, helps you to deploy your Symfony application within seconds.
Installation
1. Install the CLI tool.
npm install -g serphperless
2. Configure your credentials
For now, serphperless only supports OpenWhisk as a target. OpenWhisk is an open-source, multi-language, scallable function platform, backed by the Apache fundation. You can install OpenWhisk on your infrastructure but we definitely recommend IBM Cloud Functions that is a managed OpenWhisk. You don't even need a credit card to use up to 400,000 GB-seconds for free every month.
- Sign up for your free account on IBM Cloud
- Authenticate against IBM Cloud with IBM's
wsk
command line tool
wsk bluemix login
- Export the following environment variables (the values should be generated in the
.wskprops
file)
export OW_APIHOST=openwhisk.eu-gb.bluemix.net
export OW_AUTH=37bc78ae-[...]
export APIGW_ACCESS_TOKEN=ey[...]
Usage
Within your application folder, run the following command:
serphperless deploy
How it works
In the given order, serphperless will:
- Ensure the Serverless framework is installed in your project.
- Create the Symfony configuration for Serverless if it do not exists
- Run the deployment with the Serverless framework