PHPackages                             pauljulio/php-composer-on-aws-lambda - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. pauljulio/php-composer-on-aws-lambda

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

pauljulio/php-composer-on-aws-lambda
====================================

Run your Application on AWS Lambda

48PHP

Since Feb 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/PaulJulio/php-composer-on-aws-lambda)[ Packagist](https://packagist.org/packages/pauljulio/php-composer-on-aws-lambda)[ RSS](/packages/pauljulio-php-composer-on-aws-lambda/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Composer Package for running your Application on AWS Lambda
===========================================================

[](#composer-package-for-running-your-application-on-aws-lambda)

Let's hit those 5 W's

Who
---

[](#who)

- Paul Hulett
-
-
-
-

Where
-----

[](#where)

When
----

[](#when)

In early 2016 I became interested in using Amazon's Lambda service for internet-of-things API applications, mainly because of the difficulty of implementing my Amazon Echo app outside of Amazon's stack (as of this writing, Amazon still does not support the SNI standard for HTTPS).

What
----

[](#what)

The goal of this project is to enable the use of a standard LAMP application constructed around the Composer Package dependency system within the AWS Lambda runtime environment. It is being set up in such a way that it is easily updated should any of the Amazon Labmda architecture get updated, particularly the virtual machines that serve as the host machine.

I am specifically not embedding any compiled library in this repo because

- If you can't spin up an AWS virtual machine using the provided scripts, you are not in the target audience
- Chances are, any advanced project will need other compiled binaries, so the initial steps will be required anyway
- Chances are, any advanced project will need to change the php binary that is installed to include more/less functionality
- It doesn't sound like a good idea to me
- I don't want to be responsible for your binary file

How
---

[](#how)

As of this writing, I have the following sketch of a process:

- Add this package to your project via composer
- Use the provided utilities to spin up an AWS VM that mirrors what you will run on in Lambda DONE
- From that machine, install this project via git DONE
- On the AWS machine, use the provided utilities to compile PHP
- Download the binary to your project
- Use the provided utilities to package up your project for use on Lambda
- Submit your project to Lambda

Update:

- Amazon has published an official post on how to get PHP up and running on Lambda: [Scripting Languages for AWS Lambda](https://aws.amazon.com/blogs/compute/scripting-languages-for-aws-lambda-running-php-ruby-and-go/)

Nice to have:

- Do all that remote stuff via locally executed utilities. (In progress, using a package to send commands to the remote machine)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/594944?v=4)[Paul Hulett](/maintainers/PaulJulio)[@PaulJulio](https://github.com/PaulJulio)

---

Top Contributors

[![PaulJulio](https://avatars.githubusercontent.com/u/594944?v=4)](https://github.com/PaulJulio "PaulJulio (21 commits)")

### Embed Badge

![Health badge](/badges/pauljulio-php-composer-on-aws-lambda/health.svg)

```
[![Health](https://phpackages.com/badges/pauljulio-php-composer-on-aws-lambda/health.svg)](https://phpackages.com/packages/pauljulio-php-composer-on-aws-lambda)
```

###  Alternatives

[ryoluo/sail-ssl

Laravel Sail plugin to enable SSL (HTTPS) connection with Nginx.

192739.0k3](/packages/ryoluo-sail-ssl)[sarfraznawaz2005/servermonitor

Laravel package to periodically monitor the health of your server and website.

19613.5k1](/packages/sarfraznawaz2005-servermonitor)[tiamo/phpas2

PHPAS2 is a php-based implementation of the EDIINT AS2 standard

4676.9k](/packages/tiamo-phpas2)[wapmorgan/php-rpm-packager

RPM packager for PHP applications.

116.5k](/packages/wapmorgan-php-rpm-packager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
