Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Deploy and execute AWS Lambda functions from your Laravel application.
| Date | Stars |
|---|---|
| 2026-07-24 | 887 |
| 2026-07-25 | 887 |
| 2026-07-28 | 887 |
| 2026-07-30 | 887 |
| 2026-08-06 | 887 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# Sidecar for Laravel
[](https://github.com/hammerstonedev/sidecar/actions/workflows/tests.yml) [](//packagist.org/packages/hammerstone/sidecar) [](//packagist.org/packages/hammerstone/sidecar) [](//packagist.org/packages/hammerstone/sidecar)
### Deploy and execute AWS Lambda functions from your Laravel application.
> Read the full docs at [hammerstone.dev/sidecar/docs](https://hammerstone.dev/sidecar/docs/main/overview).
Follow me on Twitter for more updates: [twitter.com/aarondfrancis](https://twitter.com/aarondfrancis).
If you're a visual learner, watch the [Laracasts series](https://laracasts.com/series/developing-serverless-functions-in-laravel).
To install, simply require the package from composer: `composer require hammerstone/sidecar`
This package is still under development, please open issues for anything you run into.
## What Sidecar Does
Sidecar packages, creates, deploys, and executes Lambda functions from your Laravel application.
You can write functions in any of the following runtimes and execute them straight from PHP:
- Node.js 20
- Node.js 18
- Python 3.12
- Python 3.11
- Python 3.10
- Python 3.9
- Java 21
- Java 17
- Java 11
- Java 8
- .NET 8
- .NET 6
- Ruby 3.3
- Ruby 3.2
- OS-only runtime (Amazon Linux 2023)
- OS-only runtime (Amazon Linux 2)
Any runtime that [Lambda supports](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html), you can use!
Sidecar is maintained by [Aaron Francis](https://twitter.com/aarondfrancis), go follow me on Twitter!
### What It Looks Like
Every Sidecar Function requires two things:
- A PHP Class
- Files that you want deployed to Lambda
For example, if we were wanting to use Node on Lambda to generate an og:image for all of our blog posts, we would first set up a simple class in PHP called `OgImage`.
`App\Sidecar\OgImage.php`
```php
namespace App\Sidecar;
use Hammerstone\Sidecar\LambdaFunction;
class OgImage extends LambdaFunction
{
public function handler()
{
// Define your handler function.
return 'lambda/image.handler';
}
public function package()
{
// All files and folders needed for the function.
return [
'lambda',
];
}
}
```
That's it! There are a lot more options, but that's all that is required.
The second thing you'd need is your function's "handler", in this case a javascript file.
Here's a simple JS file that could serve as our handler:
`resources/lambda/image.js`
```js
const {createCanvas} = require('canvas')
exports.handler = async function (event) {
const canvas = createCanvas(1200, 630)
const context = canvas.getContext('2d')
context.font = 'bold 70pt Helvetica'
context.textAlign = 'center'
context.fillStyle = '#3574d4'
// Read the text out of the event passed in from PHP.
context.fillText(event.text, 600, 170);
// Return an image.
return canvas.toDataURL('image/jpeg');
}
```
With those files created, you can deploy this function to Lambda:
```
php artisan sidecar:deploy --activate
```
And then execute it straight from your Laravel app!
`web.php`
```php
Route::get('/ogimage', function () {
return OgImage::execute([
'text' => 'PHP to JS and Back Again!'
]);
});
```
Sidecar passes the payload from `execute` over to your Javascript function. Your Javascript function generates an image and sends it back to PHP.
Sidecar reduces the complexity of deploying small bits of code to Lambda.
### Why Sidecar Exists
[AWS Lambda](https://aws.amazon.com/lambda/) is a powerful service that allows you to run code without provisioning or thinking about servers.
[Laravel Vapor](https://vapor.laravel.com/) brought thatExcerpt of 5,406 characters
Read on GitHub200
34
15
11
10
6
5
StyleCI Bot
5
4
Laravel Shift · Laravel Shift
4
4
3
3
2
2
2
2
datashaman · datashaman · South Africa
1
1
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:6f4259587c9338d2, topic:serverless