67

PHP Architect: Serverless PHP With Bref, Part 2

 4 years ago
source link: https://www.tuicool.com/articles/YjUvm2R
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

nUvuyiU.jpg!web

Part two of my article on using Serverless PHP using Bref has been published! Inpart one, I introduced Bref as we wrote a simple “Hello World” application.

Part follows this up exploring a more complete serverless application, myProject365 website. This S3 hosted static website is build using a serverless PHP function that connects to the Flickr API to retrieve my my one-photo-per-day images and present them on a single page per year. In the article I show how to use Bref to connect to a 3rd party API and use the AWS PHP SDK to update S3 and invalidate CloudFront caches.

The article is in the June 2019 issue of php[architect] . If you don’t have a subscription, now may be a good time to take one out!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK