Laravel
octane
Laravel | octane | |
---|---|---|
234 | 16 | |
33,312 | 3,842 | |
0.9% | 0.8% | |
10.0 | 8.3 | |
4 days 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.
Laravel
-
Move from DDD Laravel make command to Codestarter (fase 2)
Looking at artisan and the Symfony maker bundle, I saw two different ways to build content. Artisan works with stub files which are text files with a Twig syntax for the variables. And the maker bundle works with php templates.
-
Preventing Destructive Commands from Running in Laravel
In PR #51376 to Laravel in May 2024, Jason McCreary and Joel Clermont added the Illuminate\Console\Prohibitable trait to the framework, which was then included in the Laravel 11.9 release.
-
Laravel Under The Hood - The Strategy Pattern
When you call the driver method on the facade, it's proxied to a manager, depending on which facade you're using. In the caching scenario, it's directed to the CacheManager. Let's inspect its code.
-
🚨High-Severity Laravel Vulnerability (CVE-2024-52301) - Awareness and Action Required
For more information on this vulnerability, check out the official Laravel security advisory: GHSA-gv7v-rgg6-548h
- Laravel Reverb in Production Environment
-
New `@bool` Blade directive in Laravel!
While this feature isn't released yet, it's expected to be available soon. Keep an eye on Laravel's official channels for the announcement. In the meantime, check out the merged PR on GitHub! https://github.com/laravel/framework/pull/53179
-
Laravel Pipelines & Composable Job Middleware
Starting in Laravel 11.26, you can now use the artisan make:job-middleware command to generate Job middleware.
- 'Framework': An Advanced Laravel Development Suite
-
How to Contribute to Laravel: A Step-by-Step Guide
Create a new issue in the parent repository, in our case the laravel/framework repository. Be as detailed as you can be for the update you are doing.
-
Tell HN: Laravel's default truncate method uses cascade for Postgres databases
Hope this saves a future team from unexpected behavior resulting in (potential) production data loss.
When using Postgres, Laravel's default method for truncate uses the cascade option, which will ignore foreign key constraints and potentially wipe large amounts of data with no confirmation or warning.
It was originally introduced in 2018: https://github.com/laravel/framework/pull/26389/files
Here are two threads on it if you are curious: https://github.com/laravel/framework/issues/29506
octane
- Using Frankenphp with Laravel Octane
-
Is it still worth choosing Heroku in 2023?
The web server my app uses is not too slow, after load testing with wrk **the RPS on a single 512MB dyno with database queries is 474 requests per second. While running this test, I could still use the app but the response times were higher (400ms-800ms instead of the usual <110ms).
-
New FrankenPHP feature: package your PHP apps as standalone, self-executable binaries
Re Octane, yes it's WIP https://github.com/laravel/octane/pull/764 there were some performance issues found which don't seem to affect non-Laravel apps which is weird/confusing so that's still being looked into. But, soon.
- Release v2.0.0 · Laravel/Octane
-
Why does Laravel need a "middleman" like Pusher or a separate Laravel Websockets server to be able to use Websockets?
I was hoping that Octane would add support, but the person running the Octane github is one of those people who quickly closes every issue that isn't considered a bug. So no traction is ever built up like on https://github.com/laravel/octane/issues/110 .
- Octane - Supercharge your Laravel application's performance.
-
Modern PHP
Laravel was recently updated to support serverless deployments, alongside the launch of Vapor[1].
Octane[2] is also very exciting. Using Swoole[3] (or another similar driver), Laravel applications can be run entirely in-memory. Early benchmarks showed Octane increased concurrent requests from ~500/sec. to ~6,000/sec.
[1] https://vapor.laravel.com/
[2] https://github.com/laravel/octane
[3] https://openswoole.com/
-
Laravel best way to implement db intense background process
Another feature of Laravel you might want to take a look at, just became available since the last Laracon. It's called Octane, and it's currently in a beta version, but its potential for optimization, compared to a normal Laravel app, is pretty great. Note that it requires PHP 8.0.
-
Laravel Octane
Taylor Otwell already showed a glimpse of Laravel's latest open-source package, Octane, during his Laracon Online talk - but today, the new package is available on GitHub for everyone to beta test.
-
Larastan 0.7.3 is released with a rule that can check Laravel Octane compatibility
New 0.7.3 release includes a rule that can check Laravel Octane compatibility of your application. It basically automates the things mentioned in the official docs. You can give it a try now! And let me know what do you think!
What are some alternatives?
treblle-laravel - The official Treblle SDK for Laravel. Seamlessly integrate Treblle to manage communication with your dashboard, send errors, and secure sensitive data.
bref - Serverless PHP on AWS Lambda
fingerprintjs - The most advanced browser fingerprinting library.
Swoole - 🚀 Coroutine-based concurrency library for PHP
FrameworkBenchmarks - Source for the TechEmpower Framework Benchmarks project
ext-openswoole - Programmatic server for PHP with async IO, coroutines and fibers