Have some personal news... My time at Laravel has come to an end. In 5 years & 6 months I've got to work with brilliant people & learned a lot. Now it's time to go back to being a Laravel user & one of its biggest fans. Had to wait till after April fool's day to write this 😀
196
37
1,481
It's time. gowithphp.com/
50
311
1,307
171,381
For many years, I considered all talk about scale to be irrelevant. If you throw enough money at it, any web stack can scale to handle more traffic. With an abundance of free investor money, I've always believed that startups should choose the stack that allows them to move faster and further. As focus shifted to profitability in the recent year or two, cost control has become an important concern. PHP is my favorite programming language, but it blocks execution threads and network connections (DB, HTTP, Cache, etc.). Should we abandon PHP? NO! is my answer! Why should development speed be sacrificed for cost control? Why not have it both ways? I placed a bet on PHP and added GoLang to the stack and the results exceeded my expectations. Here's a look at my current stack (for cost control): 1. All web clients talk to a load balancer. 2. The load balancer handles SSL & routes most requests to the PHP monolith. 3. Requests to endpoints that receive high traffic & perform many I/O operations are routed to a Go web server. 4. The PHP monolith & Go server dispatch tasks to the queue & read/write from/to database & cache clusters. 5. A separate Go program handles background jobs (from the queue) and periodic tasks (scheduled). What do I get from Go? - Handlers waiting for I/O operations yield to the runtime so others can run. - I can handle concurrent workloads without having to start new worker processes. Which translates to less memory consumption. - Network connections are kept alive & re-used. - Database connections are put back for reuse once the query finishes. They aren't kept hostage until a response is sent. What do I get by keeping PHP? The tooling available in the ecosystem (& Laravel in specific) is lightyears ahead. It allows developers to get things done faster by spending their time adding functionality rather than re-inventing the wheel. Should you switch to this stack? Are you struggling with compute infrastructure cost at the moment? If the answer is no, stick with PHP. It'll help you move faster, add value, onboard more customers, and hopefully get crazy traffic so you start having infrastructure cost concerns :) That's a nice problem to have, specially that solutions are available.
63
202
1,229
220,575
These past 12 months were the most intense: - Lost >60% of my life savings - Left my country for good - Lost my place at Laravel - Gained 15 kilos after being athletic most of my life Haven't shared my yearly review for 2 years. So here's my share. themsaid.com/journal/lessons…
146
82
1,050
145,945
Coming to Laravel next week: Add multiple columns after a specific column.
34
108
1,015
One month since switching from Lambda to EC2. Cost savings are hundreds of thousands of dollars on annual basis. We haven't used reserved instances yet, and I'm convinced that by moving a few more endpoints from PHP to Go, we could reduce the number of instances to half.
60
99
954
315,065
Hello, I’m VP of Engineering at foodics.com; a cloud-based POS & payment solutions provider that operates on a large scale & is mostly based on Laravel. Two massive monolith apps maintained by 8 teams & handling several millions of requests every hour. (1/3)
79
43
858
It's here 🎉 A complete series covering Laravel queues @laracasts - Configurations - Handling Failures - Complex Workflows - Best Practices - Deployments - Scaling - & How it works Check it out: laracasts.com/series/laravel…
34
136
823
Scalability is overrated. Maintainability is underrated.
17
134
805
73,019
Finally Certified! 🎉
42
12
791
I'm beyond excited to share with you that "Laravel Queues in Action" is now available! 🚀 Learn how to utilize the power of queues to make your applications faster & more reliable while reducing costs. Thanks for your support 🤗 & hope you like it! learn-laravel-queues.com
66
201
778
Laravel is 10 year old tomorrow! Here’s the first commit: github.com/laravel/laravel/t…
22
127
731
Daily costs while moving from Lambda to EC2 for a high traffic service. More than 50% cost savings so far.
50
52
734
290,837
If you're learning PHP, or want to refresh your knowledge, we've put together this guide to PHP in 2021/2022. It explains: - Variables & Data Types - Functions - Control Structures - Object-Oriented Programming - Enums - Frameworks Check it out 🤟🏽 piped.video/YrWXClIMph4
25
183
703
Fullstack JS is 😵‍💫 Fullstack PHP is 😵‍💫 Frontend JS is 😍 Backend PHP is 😍
38
57
687
Just realized that if you a keyed implicit binding, Laravel will automatically scope the query to retrieve the child model by its parent. I've been working with Taylor for 5 years and it still amazes me how focused he is on taking care of these granular details in @laravelphp
27
100
694
Relax. Close Twitter. Smile. Open your code editor. Write PHP code as usual. Provide for your family.
16
59
653
Almost a year since I started using Go and I still believe PHP (Laravel) is the perfect match for building web applications.
31
50
643
70,377
I just found Laravel hotel in Dubai.
17
20
589
This tiny PHP tool I built helped me create my first eBook using just markdown. Today, I've open-sourced it on github.com/themsaid/ibis with the same configurations I used to create my book as defaults. Run "ibis build" and generate a book similar to learn-laravel-queues.com/ ❤️
20
102
591
Look who’s a real developer now.
60
12
571
In what language other than PHP can someone build a course platform with billing, uploads and account management in 2 hours? I've been using PHP for over a decade now but still feel shocked when I get something that seems big done in a couple of hours. PHP+Tailwind+Vue
82
25
537
126,319
RIP to the opportunities we missed because of shyness, low self esteem and weak passports.
19
68
533
44,051
Here we go. Learn how to build a NuxtJS app that communicates with a Laravel REST API and authenticates via session based authentication. piped.video/FpwOvxsG8Js
17
88
531
Last week, I discussed a Go program that enabled me to run Laravel jobs with up to 700 concurrent executions on a machine that could only handle 100 concurrent executions with PHP. Today, I'm sharing insights on the problem and the solution. themsaid.com/using-golangs-c…
23
94
505
49,642
Eid Mubarak everyone celebrating tomorrow 😊 May you enjoy your first morning coffee to the fullest. ☕️
51
16
488
3 years apart. Happy birthday Zain.
24
1
479
24,314
Today we celebrated Zain’s first birthday. What a year! Busiest year of my life!
28
3
481
One of the recent use cases for GoLang was building a worker for an SQS queue that receives over 50m jobs/day. There were 100 PHP workers maxing out a 4 vCPU instance. Switching to Go & using coroutines allowed us to run 700 workers on the same machine.
22
31
468
71,471
4 years ago today 🙌🏽
Happy to announce that @themsaid will be joining the Laravel team next week! Will start working on Laravel 5.3 support in Spark. 🙌
33
6
473
Laravel 5.5.5 is out with a nice Route::fallback() method to help customize your 404 views, you'll have access to sessions, cookies, auth...
24
151
462
Coming to Laravel 8.
21
39
462
I keep forgetting that we have the Null Coalesce Assignment Operator in PHP 7.4. It is GREAT!
12
61
437
A $6/m VPS is inexpensive, dependable, and effective. I wrote about: why this VPS is a perfect place to start. Libraries needed for PHP. What you get. Getting more. The edge!. @levelsio as a case study. themsaid.com/the-six-dollar-…
31
39
422
103,331
On vacation in this amazing city. It’s impressive what humans can build. From enabling software to humongous buildings.
14
3
424
Who did this? learn-laravel-news.com 😀 Whoever you’re, thank you 🙏🏽😊
20
17
416
For the past week, I've been going crazy rebuilding a *better* version of an AWS service. Something that I had in mind for over 2 years. If it works, I'll open source it. If not, I had a lot of fun. The ability to build is magic, and the freedom to build is a bless.
17
13
418
Did you know you can do subdomain routing in Laravel? Useful if your app responds to multiple domains and you want to match a set of routes to a specific subdomain. Also useful to test subdomains in Valet + Production without having to hardcode the domains.
14
56
415
Laravel Queues in Action (2nd edition) is out! Join me in exploring the many ways we can use the queue system to enhance our applications. learn-laravel-queues.com/
17
88
402
My 2021 setup
26
5
403
Go is one of the languages that I quickly fell in love with. It's not only fun to use, but its concurrency model allowed me to boost the performance of several parts of my software. If you’re a PHP developer who wants to learn Go? Join me! themsaid.com/php-to-go?s=twi…
23
42
397
44,795
Wanna know what I've been working on lately? Check this out 👇👇👇 workerless.run
23
39
402
"Unpopular?" opinion: Vue is still very cool.
66
13
390
I've done several technical due diligence lately & was surprised, that over 70% of those companies use PHP & many of those use Laravel. Also when talking to CTOs I find that no one heard that "PHP is dead". Twitter is a small bubble compared to the real world. PHP still rules.
20
54
378
Starting today, new Forge servers have Imagick installed by default.
13
17
368
New cover ✨✨
19
14
377
Managing the infrastructure for 50+ high-traffic PHP applications was becoming a challenge. In this post, I describe the process I went through to redefine how I do that. themsaid.com/infrastructure-…
17
68
373
39,098
Let’s use Laravel
Make a developer happy in 3 words: 🤩
11
30
363
Laravel is exploring the world of asynchronous PHP. Thought this might be a good time to share an introduction on the topic. This post explains async—looking into processes, threads, coroutines/fibers. Laravel/Swoole specific posts are in the pipeline. divinglaravel.com/asynchrono…
7
79
355
Switching from Redis to DynamoDB as a cache driver for Laravel and back.
50
22
350
I was always proud of the things I did for Laravel since I started contributing in 2016. But now that I'm on the using end, I'm 10x more proud. Laravel offers a truly one of a kind DX that makes building—& managing teams that build—secure, scalable & performant apps much easier.
10
13
351
كل عام وانتم بخير ورمضان كريم 🌙✨ Happy Ramadan Everyone
36
15
348
Just published a free update to my book (Laravel Queues in Action). It covers all the new features added to Laravel and Horizon up to Laravel 11. You can download it now from the dashboard on my site. Hope you find it useful 🙂
21
31
349
25,359
Let's all wish Mr. @taylorotwell a happy birthday 🎂
53
13
339
High availability is a myth
19
42
338
New to Laravel v8.32.0: The ability to slow the workers down. Here we say: rest 500 milliseconds between every job, and sleep 5 seconds whenever the queue is empty.
10
58
334
Look who I met today.
26
1
348
Ok, I didn't want to make it official yet but I'm working on a book/course covering everything related to Laravel Queues. It's a set of challenges that we deal with using queues. Hitting rough edges, showing common mistakes, complex requirements etc...
16
22
327
Laravel v8.19 comes with better control over code that runs around DB transactions. From dispatching queued jobs to running event listeners, you may now tell Laravel to run the code only when the transaction has committed. Wrote about it in my recent post: divinglaravel.com/better-man…
22
59
328
Congrats to @unicodeveloper for being a GitHub star ⭐️🤳📸stars.github.com/profiles/un…
5
43
323
What a day! Thanks everyone for your support and trust! I’m sure I’ll remember today for the rest of my life. Standing here in my favorite spot and reflecting, I’m very lucky to belong to this community.
27
3
327
Today is the only good day to say that PHP is dead and you should all use something else.
27
24
329
Part 1 of "PHP to Go" is 1h 27m. I focused on comparing the concepts to ones in PHP so it's easier to relate to. Go gives us more control when it comes to memory management. For these parts, I found it easier to compare the concepts to those found in databases and ORMs.
13
18
329
37,852
This handy feature was added to laravel 5.3 last week, you can select specific columns to eagerload instead of having several select *
16
120
333
There's a big joy in writing ugly code that works and then refactoring it later. You get a mental reward when the code works, and another when you make it beautiful. I'll keep my spike and stabilize way of work forever 🤝
13
41
321
Watching daddy on the big screen
5
1
310
I was so excited about PHP7.4 arrow functions I didn't notice this. Until @michaeldyrynda came.
13
44
318
Today I decided I want a better workspace in our small apartment. Wanted to get inspiration form the internet but it’s full of pictures of perfect dream-like setups inside mansions 🙂 so please share yours for real-life workspace setup.
133
29
320
Time spent working with AWS APIs: 20% reading AWS docs 10% writing code 70% try and error until the damn thing works
19
19
317
The career of a software/infrastructure engineer is mostly doing boring things and asking ridiculous questions in hopes of making order out of chaos and making light work of something. That’s when that satisfactory smile is put on our faces. Always a delight to read such blog posts.
Debugging infra at scale is rarely about one big “aha” moment. In our latest engineering blog post, Brian Stack (github.com/imbstack/) recounts his journey through the "Kubernetes hypercube of bad vibes" and how one small flag change led to a significant impact. render.com/blog/how-we-found…
3
15
331
62,014
Here you go. In this video I cover: - Managing multiple DB connections - Migrating & seeding tenants & admin databases - Running tests against tenant & admin databases - Connecting to the correct tenant on requests/jobs piped.video/watch?v=592EgykF…
15
75
315
Minor change but makes accessing pivot related attributes look much better.
3
93
313
Here’s something to brighten your Twitter feed a bit. He’s driving me crazy and keeping me sane at the same time.
19
1
308
Packing our stuff to move it to Cairo and I realized a few things: 1. My wife has too many stuff. 2. My son has way too many stuff. 3. I don't have anything 😅
22
5
315
Dusk = Browser Testing Envoy = Task Runner Horizon = Queues Manager Jetstream = Frontend Scaffolding Fortify = Headless auth backend Passport = OAuth2.0 Sanctum = Token-based auth Scout = Full-text search Socialite = OAuth providers integrations Telescope = Monitoring
7
74
307
I've been maintaining Forge for almost 5 years now. The work that's done behind the scenes is much more than what's visible to customers. In the past, I always wondered what SaaS with big teams do when they're stable & not releasing new features anymore. Maintenance work is a LOT
18
13
314
Hope you enjoyed your last morning coffee everyone fasting tomorrow. Ramadan Mubarak 🌙😊
24
5
300
If that's their idea on how to return "Hello World!" in PHP then yeah, I can see now why they think PHP is an ancient dead language 🤷🏽‍♂️
💜 Hello, World! in 25 Languages Your first program in ❑ C ❒ C++ ❑ Java ❒ C# ❑ JavaScript ❒ Python ❑ HTML ❒ PHP ❑ Rust ❒ Solidity and, 15 other languages.
26
38
290
Coming to Horizon with Laravel 8.0 ♨️
13
21
292
Replying to @adamwathan
That’s how I solved it. Until he suddenly stopped liking the carrier 🤷‍♂️
14
3
284
If these terms sound confusing: - Static Generation - Server Side Rendering - Client Side Rendering - Single Page Applications - Time to First Byte - First Contentful Paint ... this video is for you. piped.video/nnXiXTYBIeU
8
46
291
✨ New Video: Learn about using Nginx and PHP-FPM to serve Laravel applications. piped.video/qEIN40C_1IY
1
41
278
Hey native english speaking friends. I really appreciate all your comments on my grammar and style of writing in my blog posts and tweets. Please don't hold yourself back, I appreciate the grammar police because it's how I learn and get better 🙂. Appreciate it 😊
13
6
272
27 years ago today, PHP was released. Many lives were changed that day.
10
43
274
Say hello to my new setup
25
2
272
27,327
✨New Video! - How broadcasting works - Using private channels with token-based auth - Excluding subscribers from the broadcast - Broadcasting events synchronously piped.video/zooUbo0tz6U
12
49
276
Check this out. A professional looking book cover with my name on it. What a dream 😊 Do you see the word written inside the elephant? Look closer.
27
13
262
There's a set of misconceptions about PHP when it's compared to Node. Mainly around its performance as it's not async and it terminates after every request. They all miss the presence of things like Swoole/Roadrunner/Octane... In speed, cost of dev, popularity, talent. PHP wins.
18
39
260
Speaking English: in my mind: 👨‍🏫 with friends: 😎 behind a mic: 🤡
15
12
269
You guys know I’m moving back to the city for a while. What you don’t know is that for the first time in my life I’ll have a dedicated work room. 😍
20
2
269
What a way to start the day 🙂 My biggest fear is to have someone thinking I took their hard-earned money & didn't deliver. That's why I'm easy about refunds & why I decided not to release many products in the past. Feedback like this makes me sleep better at night 🙂
6
6
271
20,709
I'm a PHP developer, I don't have to worry about memory leaks 😎 a few years later... 😅 --- Jokes aside: high performance comes at a price. We do our best to keep the price minimal for you 💪🏽
5
17
264
Last week, I published a website to show how modern PHP looks like. It made it to the front page of Hacker News and started many interesting conversations. Today, I share a breakdown of how the code runs while refactoring it to make it more efficient. themsaid.com/code-on-go-with…
9
25
259
38,182