Hi everyone,
We hope you're all doing well. In this week's newsletter we have articles on implementing multi-latency, and the struggle of code re-usability in Laravel. We also have a post on the real cost of ignoring SOLID in PHP, and learn about covariance and contra variance and how to apply it to PHP. In Tutorials, we have guides on Pagination, a more elegant approach to URL generation with query parameters in Laravel, a complete guide to building a functional, SEO-friendly blog using PHP, and how to integrate Laravel with Apache Kafka. Finally in Podcasts we have new episodes from Laravel News on custom starter kits, hyper scale and solo dumps. Mostly Technical and Over Engineered chats about PHP x NYC and other topics.
We have all that and more, so we do hope you enjoy this week's newsletter. If you have an article, tutorial or podcast that you would like to be featured in our newsletter, feel free to reach out to us at [email protected].
All the best,
Adrian
|
Please help us by clicking to our sponsors:
|
Articles
Implementing Multitenancy in Laravel
Here's the recording of the talk I did at this years Laracon India. In this talk, I show how we use our laravel-multitenancy package to make Mailcoach tenant aware. Enjoy!
How to Get Hired and Hire Better with Dave Hicking
We sat down with Dave Hicking to talk about LaraJobs' new section of articles and videos to help you advance your career and improve your hiring processes. They are breaking it down into two sections.
PHP: Stop using the identical comparison operator everywhere
The identical comparison operator or three equal signs, is so deep in my muscle memory and vision that for a long time I didn't even notice typing that third equal sign, or bat an eye when it is there.
The Struggle of Code Reusability in Laravel: Why Traits Win the Race?
The title has already conveyed so much. In web development with Laravel or a PHP environment, we often need to use the same method across multiple classes.
Covariance and Contravariance in PHP
In this article, I want to pass on what I've learnt about covariance and contravariance and how they apply to PHP.
The Real Cost of Ignoring SOLID in PHP
When I started as a PHP developer seven years ago, I was more excited about getting features out the door than thinking deeply about architecture.
Fixing Select2 Issues in Laravel Livewire 3: A Frustrating but Solvable Challenge
For the past couple of months, I’ve been working on building a simple CMS web app using Laravel with Livewire 3.
|
Tutorials and Talks
Simplify URL Generation with Laravel's New query() Method
Laravel introduces a more elegant approach to URL generation with query parameters through its new query() method.
How to Connect a React App with MySQL Database
In this post, we’ll walk you through how to connect a React app with a MySQL database using PHP as the intermediary. We’ll cover the file structure, set up a simple registration form (Name, Email, Mobile Number, Address), and display all registered users in a styled table component.
How to integrate Laravel with Apache Kafka
Apache Kafka is a great tool for building event-driven applications. In this post, we will connect Kafka with Laravel using a real e-commerce example: processing an order with payment and stock update.
How to Develop an Online Event Booking System Using PHP & MySQL
In this guide, we will explore the step-by-step process of building an event booking system with essential features.
Simplify Counter Tracking with Laravel’s New Context Methods
Need to track counters or metrics across your Laravel application? The new increment and decrement methods for Context provide a simple, elegant solution for maintaining counters without complex state management.
Laravel: Keeping a limited number of records in the database
One of the problems I’ve found out every time I require to save some records in the database has been limiting a particular group of records by a given amount or window of time.
Building A Dynamic Blog Website Using PHP: A Complete Guide
In This Guide, We’ll Walk Through Everything You Need To Know To Build A Functional, SEO-Friendly Blog Using PHP.
The Ultimate Guide to Pagination in Laravel: Offset, Cursor, Keyset, Time-Based & Hybrid Explained
In this post, we’ll explore the different types of pagination in Laravel, their pros and cons, and when to use them. |
News and Announcements
Talk Submissions Now Open
Just 2 weeks left to submit your talk for CakeFest 2025!
Screen is a terminal renderer written in pure PHP
Screen is a terminal renderer created by Aaron Francis that is written in pure PHP. It powers Solo for Laravel and can be used to build rich text-based user interfaces in any PHP application.
Model Resource Helper Functions in Laravel 12.7
The Laravel team released v12.7.0 recently, which includes two excellent new features: resource helper functions for models and a whereAttachedTo() Eloqent method.
March 31 – April 6, 2025 A Week of Symfony #953
This week, the upcoming Symfony 7.3 version entered its feature freeze period to tweak and polish its new features before releasing it at the end of May 2025. In addition, we celebrated the SymfonyLive Berlin 2025 conference and announced a new Symfony meetup in Tunis.
Welcoming Passbolt to the PHP Foundation
We’re thrilled to announce that Passbolt has joined the PHP Foundation as a Silver sponsor! PHP powers over 77% of the web – including Passbolt’s collaborative password and secrets manager. Their support strengthens our mission to keep it thriving.
phpday 2025
Now in its 22nd year, phpday has been held continuously since 2003. The 2025 edition will be hosted in Verona on May 15-16.
|
Podcasts and Vlogs
Laravel News Podcast: Custom starter kits, hyper scale, and solo dumps
Jake and Michael discuss all the latest Laravel releases, tutorials, and happenings in the community.
The Stack Overflow: Is AI a bubble or a revolution? The answer is yes.
At HumanX 2025, Ryan sat down with HumanX CEO Stefan Weitz and Crunchbase CEO Jager McConnell to talk about where the money is in the AI space, where most enterprise AI strategies fall short.
Maintainable Podcast: Mercedes Bernard: Friendly Code Welcomes Everyone In
Mercedes Bernard, Staff Software Engineer at Kit, joins Robby to talk about what it really means to write code that lasts—and who it should be written for.
Software Engineering Radio: SE Radio 662: Vlad Khononov on Balancing Coupling in Software Design
Software architect and author Vlad Khononov joins host Jeff Doolittle for a discussion on balancing coupling in software design.
Shoptalk Show: CSS Carousel Configurator Demos with Adam Argyle
Adam Argyle joins us to chat about new CSS features that are demo'd in a carousel configurator - a builder-like experience to help visualize the capabilities of a CSS only Carousel: buttons, markers, paging and inertness.
WP Builds: 416 – Exploring Rapyd Cloud’s hosting for WordPress
In this WP Builds episode, Nathan talks with guests Wes Tatters and Mike Eisenwasser about Rapyd Cloud, a high-performance hosting solution for dynamic WordPress sites.
PHP Architect: The PHP Podcast: 2025.04.03
This week on the PHP Podcast, Eric and John talk about Laravel Wayfinder, PHP RFC Reviews, Bek shares why she attends PHP Tek, Free PHP Architect Column, and more…
Mostly Technical: 77: Eye on the Future
Ian and Aaron discuss Ian's trip to PHP x NYC, Aaron's new art, how to try to thrive if you think a recession is coming, and so much more.
Over Engineered: PHP × NYC Chaos-Cast™
What happens when you get a bunch of Laravel podcasters + a bunch of mics in a room? Chaos, apparently.
Syntax: Light and Dark Mode
Light mode? Dark mode? Scott and Wes break down the best ways to implement theme switching in CSS, from prefers-color-scheme to manual overrides.
The Changelog: The AI 2027 scenario
Daniel Kokotajlo and the AI Futures Project lays out a potential scenario of superhuman AI’s impact, Liam ERD generates beautiful, interactive ER diagrams from your database.
|
PHP AI Agent Summarizing YouTube Videos
Using PHP and the Neuron AI framework as the foundation, I built an agent that processes video transcripts, identifies key points, and generates concise summaries that retain the core message of the original video.
Cookies vs. Sessions: The Stateful Dance of the Web
Ever built a login system only to watch users get logged out when they click a single link? Or created a shopping cart that mysteriously empties itself between page loads? Welcome to the essential world of state management in the stateless HTTP universe.
Building My Own Query Logger: A Developer’s Journey into Data Flow & Tracing
When I joined my current company, I was thrown into a huge codebase that left me puzzled. It took time to navigate through the layers of complexity, but as the days went by, I realized it was all about data polling — data moving from one place to another.
Part 1: Optimizing PHP Performance
To give some context: this was for a legacy PHP application running on 5x t2.xlarge (8vCPUs, 32GB of RAM). Those are massive machines, and super oversized for the application’s needs.
Roadmap 1: PHP from zero 2 hero
In life, to achieve the destination we set, each of us will certainly need a plan and need to divide that plan into specific steps and complete it.
My Laravel App Suspended User Accounts — and It Saved the Platform
A few months ago, I found myself in a tough spot. My Laravel-powered SaaS platform was starting to gain traction — but with growth came unexpected challenges. One of the biggest? Abuse.
What Python’s Syntax Teaches Us About Object-Oriented Thinking
In this post we will delve into programming paradigms, what they are, what they mean and their implications for programming.
|
Interesting Projects, Tools and Libraries
laravel-notification-channels/jet-sms
Sends SMS using JetSms API.
enumag/bank-statements
The PHP library to parse bank account statements.
spiral/exceptions
Exceptions Toolkit: exception and error handler, CLI and HTML renderer.
alibayat/laravel-categorizable
Implementing Nested-structure Hierarchy Categories system for Eloquent models.
eastern-color/json-trans-bundle
An anti-pattern tools to have Translations stored in single column.
mmikkel/retcon
Powerful Twig filters for mutating and querying HTML.
fileeye/mimemap
A PHP library to handle MIME Content-Type fields and their related file extensions.
dmamontov/asynctask-7
AsyncTask enables proper and easy use of the thread. This class allows to perform background operations and publish results on the thread without having to manipulate threads and/or handlers.
rennokki/reddit-json-api
Reddit JSON API offers an easy way to retrieve data from subreddits in no time.
laracrafts/laravel-geo-routes
Geo location restricted routes for Laravel.
|
Jobs
------
Do you have a position that you would like to fill? PHP Weekly is ideal for targeting developers and the cost is only $75/week for an advert. Please let me know if you are interested by emailing me at [email protected] |
Please help us by clicking to our sponsor:
Protect your PHP Code
Why not try SourceGuardian 16. Click here to download a 14 Day Trial copy. Protect your code using Windows, Linux or Mac and run everywhere with our free Loaders. |
So, how did you like this issue?
|
|
|
|