bref
PHP-DI
Our great sponsors
bref | PHP-DI | |
---|---|---|
40 | 13 | |
2,971 | 2,619 | |
1.3% | 0.7% | |
9.4 | 6.3 | |
6 days ago | 29 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.
bref
-
A bank runs serverless with PHP and AWS Lambda
As you can see on the website (https://bref.sh/) there's 13 billion monthly AWS Lambda invocations using Bref (PHP).
-
Configuring OpenSSL 3 to sign an Apple Passbook?
I have a PHP application (running on Amazon Linux via Bref on Lambda) which has been signing Apple passbooks no problem. I've trying to do various upgrades which includes moving to AWS Linux 2023 which uses OpenSSL 3.
-
Bref + SQS - Runtime.unknown
Your best bet is to post an issue on https://github.com/brefphp/bref
-
Software architecture applied to PHP
multi threading php isnt a burden. laravel with a supervisor + redis + queues works out-of-the-box. you can even run it on lambda (vapor or bref.sh) with almost no hassle.
On Lambda you can either use containers or bref which is a layer that you add to your Lambda and it provides the binaries and other stuff you need to run php.
-
Project advice
To generate resource on AWS, you can use aws-sdk into a lambda. While Node or Python is more widely used, you can use PHP bref.sh and the PHP AWS SDK to achieve the same outcome. You'll want to use serverless framework (https://www.serverless.com) .
-
Ideas for minimum PHP pipeline for a small team
If you’re deploying in AWS and depending on your app I’d highly recommend using https://bref.sh/. When we changed it made our deploy pipeline so much simpler and our AWS bill much cheaper. Plus infrastructure as code is so useful (we don’t have dedicated dev ops in a team of about 20). Things like adding GD, upgrading PHP, or even adding a redis server become 1 (or a few) lines of change which you can PR and test on staging just like other code changes.
-
Is fargate the right choice for my apps?
For Lambda, look into https://bref.sh/. For us, running on Lambda was always way cheaper than everything else. However, if you have massive scale that calculation may not hold up.
-
Laravel Vapor, security information?
Failing that, looks like Bref will be the option in place of Vapor.
PHP-DI
-
In your opinion, which existing PHP framework can become as popular as Symphony or Laravel?
This one is compliant with PSR-11 and super easy to use: https://php-di.org/
- Slim, possívelmente o framework ideal para quem vem do Golang
-
7 WordPress Best Practices For Real Engineers
PHP-DI
-
Build a Speech-to-Text Web Application with Rev AI and PHP (Part 1)
PHP-DI: a PHP dependency injection container
-
Running non-blocking A/B tests, feature flags with Laravel, PHP
Please, visit the repository for configuration instructions. The package wouldn't work without DI. So, if you're not using DI yet, try PHP-DI.
-
What PHP book would you most like to see written?
With a real DI system https://github.com/PHP-DI/PHP-DI
-
When Symfony Http Kernel is a Too Big Hammer to Use
What about using php-di?
-
On using PSR abstractions — Matthias Noback
PHP-DI, which you made, also
- PHP dependency container confusion
-
PHP + Actors == Dapr
There's a relatively simple and opinionated runtime provided out-of-the-box that uses PHP-DI. However, you can bring your own DI container, router, or an entire framework.
What are some alternatives?
Pimple - A small PHP dependency injection container
Symfony DI - Allows you to standardize and centralize the way objects are constructed in your application
lambda-debug-proxy - A proxy for piping AWS lambda input payload+context to and returning a response from a local dev environment for debugging.
Container - Small but powerful dependency injection container
Auryn - IoC Dependency Injector
Nette DI - 💎 Flexible, compiled and full-featured Dependency Injection Container with perfectly usable autowiring and support for all new PHP 7 features.
serverless-offline - Emulate AWS λ and API Gateway locally when developing your Serverless project
docker-lambda - Docker images and test runners that replicate the live AWS Lambda environment
Laravel - The Laravel Framework.
Lumen - The Laravel Lumen Framework.
zend-servicemanager
octane - Supercharge your Laravel application's performance.