Our great sponsors
Lumen | bref | |
---|---|---|
13 | 25 | |
7,545 | 2,488 | |
0.1% | 1.0% | |
4.5 | 9.0 | |
3 months ago | 9 days ago | |
PHP | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Lumen
-
Vue App with Lumen Passport API (Part I)
Lumen is a stripped down version of Laravel for building APIs. This makes it a lightweight framework. I'm currently using Lumen in a project and I want to use this opportunity to share some of the things I've learnt.
-
Exploring the PHP Frameworks using Symfony Components
Official website: lumen.laravel.com
-
Laravel vs Symfony
I think there are micro frameworks like lumen that are far more accessible in the first steps (https://lumen.laravel.com).
-
Should choose laravel or lumen to write api for an mobile app?
see also: https://github.com/laravel/lumen
-
Remove front-end related files, configurations and folders
use lumen. it is exactly what you want. https://lumen.laravel.com/
-
Yes, PHP is Worth Learning/Using in $CURRENT_YEAR
If you're concerned about frameworks perhaps being "overkill" for what you want to do with PHP, you'll be happy to hear that Symfony is a microframework out of the box (all components outside of the core framework are 100% optional), and Laravel also has a microframework variant called Lumen.
-
What is the best practice for sending and receiving data between HTML and PHP?
I would let a framework handle this for you. It can render your HTML views and handle the security for you. It’s been a while since I’ve coded PHP, but I used to love https://laravel.com and https://lumen.laravel.com
-
REST API for 50,000 concurrent connections
Have a look at Laravel Lumen A micro version of Laravel from Laravel.
- Laravel vs Symfony vs Codeigniter
- Lumen: Alternative BEAM implementation, designed for WebAssembly
bref
- AWS Lambda Function URLs: Built-In HTTPS Endpoints for Lambda
- Modern PHP
-
Using Bref's LambaRuntime to Asynchronously Run Swoole Coroutines as Functions on AWS
Bref will provide us the abstraction to communicate with AWS Lambda runtime. We can just call it at our bootstrap file. The bootstrap file is where the lambada runtime will start the invocation:
Then we can already bring Bref to the playground:
-
PHP Cloud Functions on GCP
I haven't really used GCP, but I've run many production workloads in AWS using Bref, which I'd highly recommend.
-
How does Treblle scale on AWS without breaking the bank?
During my research on how to make PHP run on Lambda I stumbled upon Bref at that time which was supposed to make that happen. I spent probably a month trying to get Laravel or any kind of a PHP application running on Lambda using Bref but I simply couldn't do it. There was always something: it was super slow and janky, cold starts were killing me, there were bugs and issues...It wasn't something I wanted to bet at that time.
-
How to enable Gzip compression in Laravel while hosting on AWS Lambda
Gradually, I learned about bref, a package that made it easy to host your PHP application on serverless. I started working on this package, finding the documentation and tutorials online. I successfully hosted my Laravel application on Lambda.
-
What is your preferred deployment strategy?
GitHub actions deploying bref.sh (which uses serverless).
-
How PHP Opcache Works
You should have a look to Bref (https://bref.sh/)
-
How do you deploy your Laravel app?
I personally don't find the cost of Vapor worth it for what it provides, especially when https://bref.sh/ is serverless Laravel for free.
What are some alternatives?
Slim - Slim Framework 4 Skeleton Application
Silex
Symfony - The Symfony PHP framework
CodeIgniter - Open Source PHP Framework (originally from EllisLab)
Siler - ⚡ Flat-files and plain-old PHP functions rockin'on as a set of general purpose high-level abstractions.
serverless-offline - Emulate AWS λ and API Gateway locally when developing your Serverless project
Liten - Liten is a small and simple micro framework which can be used to build restful services and apps.
Bullet PHP - A resource-oriented micro PHP framework
docker-lambda - Docker images and test runners that replicate the live AWS Lambda environment
Laravel - The Laravel Framework.
PHP-DI - The dependency injection container for humans
serverless-stack - 💥 SST makes it easy to build serverless apps. Set breakpoints and test your functions locally. https://serverless-stack.com