Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
php
 
 

README.md

Serverless Framework example of PHP based service

This is an example of using the Serverless Framework to deploy an AWS lambda which runs a PHP function for converting chess games from lichess into a pretty-printed PDF.

See my blog post here.

Prerequisites

Install this serverless project. It will create a new serverless-php folder.

serverless install --url https://github.com/ZeroSharp/serverless-lichess-pdf-exporter

Deploying the sample function to AWS

Check the serverless.yml file and modify region and stage if necessary.

sls deploy

Running the function locally

sls invoke local --function Xp9MOs3d > Xp9MOs3d.pdf

Running the function on AWS

sls invoke --function Xp9MOs3d > Xp9MOs3d.pdf

Thanks

Thanks to James Clarke who wrote the PHP exporter.

About

Export pretty-printed lichess games to pdf. Built with the Serverless Framework.

Topics

Resources

License

Releases

No releases published

Languages

You can’t perform that action at this time.