sticker

Subscribe! Enter your email address below:

NO SPAM: We absolutely hate spam. We will not share, rent, or give away your email address to anyone.You can unsubscribe at any time. Easily!

September 1, 2022

Hi everyone,

First things first, a big thank you to the people who shared links to their articles this week. Hopefully you'll show your appreciation for the work they've put into their content and check out their links below. May it also inspire you to maybe one day share a tip, tutorial or insight to the community. 

This week we have new updates from Symfony, CakePHP and Laravel as well as the latest instalment of PHP Annotated for the month of August. On the podcast sphere, we have new episodes from Laracast Snippet, The Rabbit Hole and a very insightful one from Developer Tea about the best strategy in balancing decisions. Finally, we have a huge selection of tutorials this week, including one about passwordless logins and zero downtime migrations in Laravel. 

We do hope you like 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].

Do follow us on our social media channels on Twitter and Facebook. You can connect with me on LinkedIn:
https://www.linkedin.com/in/adrianteasdale/

All the best,
Adrian

Please help us by clicking to our sponsor:

Get your free 5GBGet your free 5GB PlanetScale MySQL-compatible database
A familiar branching workflow, ctrl-z for schema changes, query debugging tools, unlimited connections. We handle your database. You build your app.

Articles

Asymmetric Visions
There's a new RFC in town called asymmetric visibility, its aim is to define properties which can be written to from a protected or private scope, but which from the outside — the public scope — can only be read.

Discover Symfony UX’s Twig Components. UI without JS or BS.
With Symfony UX a PHP class + template = Twig component. Use them to build a highly-interactive UI from the comfort of Twig. No JS and no BS are required.

Instantly Improve Docker Performance on Mac
Docker's performance on Mac has a poor reputation. Let's talk about why that is and what you can do to improve it.

Symfony ParamConverter: The Best Friend You Don’t Know Yet
Symfony framework is an awesome tool to create web applications, API… Its documentation is pretty well written but really big and there are some hidden gems that we really need to talk about!

We Did A Lot Of Digging- Here's What Backend Developers Are Earning
Whether you’re angling for a pay raise, are considering a new career, or are just feeling a little nosy (hey, no judgment), this post dives into everything you need to know about the world of backend development and what you can expect to make across experience levels and locations.

Jobs

Senior PHP/CMS Developer (United States)
Viget is looking for a Senior PHP/CMS Developer who’s excited about using custom PHP to architect complex WordPress solutions for a wide variety of clients. The person in this role will have an influence on our growing team of talented developers. Review the job description to learn more and apply. Applicants must be based in the United States, and Viget is unable to offer work visa sponsorship at this time.
------
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]

Tutorials and Talks

Building a PHP CLI tool using DDD and Event Sourcing. Introduction: why?
I've been interested in building in public for a while. This approach is usually taken with an entrepreneurial mindset – advertise the product you're planning to build, document and share your progress, grow an audience and gather feedback along the way.

Zero Downtime Laravel Migrations
In many Laravel workflows, your deployment script includes php artisan migrate, which runs your new migrations on your production database every time you deploy.

Working with OS process in PHP
Sometimes you need to work with OS-level commands from your PHP application. Let's look at how we can do this and see if we can make the Developer Experience nicer.

Working with Laravel Model Events
When working with Eloquent Models, it is common to tap into the events dispatched through the Models lifecycle. There are a few different ways you can do this, and in this tutorial, I will walk through them and explain the benefits and drawbacks of each one.

Laravel AuthorizeResource for Resource Controllers
If you have a resourceful controller and want to skip checking the permissions in each method separately, this trick is for you.

Design Patterns in PHP 8: Adapter
Suppose we decide to create a function that will notify the account manager about a new registered user.

Laravel 8 Eloquent orWhereHas Condition
In this article, we will see laravel 8 eloquent orWhereHas() condition.

Laravel Passwordless Login, aka Magic Login links
Laravel Passwordless Login, Magic Login Links, or simply letting users login without providing a password are all different terms of one login mechanism.

Making A Complete File Uploader With Progressbar Using Livewire And Alpinejs
I recently had to create a file uploader that allowed the user to both click a button and select files, or simply drag files unto the page. I

News and Announcements

Laracon Online Schedule Announced
Once again, we'll be streaming Laracon for free on YouTube on September 14th 2022, allowing us to reach the entire Laravel community. A huge "THANK YOU" to our incredible partners for helping us achieve this!

Heroicons 2.0 are here
The makers of Tailwind CSS released Heroicons 2.0, a set of 264 hand-crafted SVG icons for the web. These icons are redrawn from scratch and feature a 24px solid set.

Laravel 9.26 Released
The Laravel team released 9.26 with a Vite asset helper, Closure support to dispatch conditionals, min and max digit validation rules, and more.

Symfony 6.1.4 Released
Symfony 6.1.4 has just been released. Here is the list of the most important changes since 6.1.3.

Cake PHP 4.4.5 Released
Changes include: Improved handling of authentication errors in Smtp email transport. Re-enabled displaying arguments in stack frames on development error pages.

PHP Annotated – August 2022
Welcome to the August installment of PHP Annotated, where we’ll catch up on the most interesting things that have happened in the PHP world over the last month, including curated news, articles, tools, and videos.

A Week of Symfony #817 (22-28 August 2022)
This week, Symfony 4.4.45, 5.4.12, 6.0.12 and 6.1.4 maintenance versions were released. In addition, the upcoming Symfony 6.2 version introduced a new ValueResolverInterface to replace and simplify the existing ArgumentValueResolverInterface.

WordPress 6.0.2 Security and Maintenance Release
This security and maintenance release features 12 bug fixes on Core, 5 bug fixes for the Block Editor, and 3 security fixes.

Podcasts and Vlogs

How to Code Well: 171 - Full Time Vs Contractor Web Developer. 5 Reasons To Be A Contractor
Whilst money isn’t everything, contractors are often on more money then the normal full time developers.

PHPUgly: 300:PHP{Tek] Homecoming
This week on the podcast, Eric, John, and Thomas talk about New Podcast, Event Source, Return on php[tek], and more...

The Stack Overflow : What Companies Lose When They Track Worker Productivity (Ep. 478)
The home team gathers for a conversation about workplace productivity monitoring: Does it motivate employees to get more done, or does it lead to stress that takes away from deep, focused work and replaces it with busywork instead?

North Meets South Podcast: Using SOAP with Luke Downing
Jake is joined by Luke Downing to discuss working with and testing SOAP interfaces with modern PHP.

Software Engineering Radio: Episode 527: Adrian Kennard and Kevin Hones on Writing a Network OS from Scratch
Adrian Kennard and Kevin Hones, founders of FireBrick routers and firewalls, discuss how to design, build, test, and support a hardware router and network operating system from scratch.

Laracast Snippet: Steal From Other Hobbies
In this episode, we'll talk about stealing techniques and approaches from other hobbies or industries. What have you learned from one hobby that might be useful for your programming career? I can think of a few.

The Rabbit Hole 269. Tailwind CSS -- Is it worth learning?
Welcome back to the podcast everyone and thanks for sticking with us through our little hiatus! Today Michael is riding solo and talking about Tailwind CSS. You can expect to hear his thoughts on the pros and cons of using it, some comparisons, and delivering a verdict on whether he would continue to use it in the future.

Developer Tea: Balancing Decision Frames
Making good decisions is about tuning context. If you can't determine the context that matters, the decision itself is impossible to measure against. All decisions can be framed within a context with other decisions; choosing those decisions in concert is often the best strategy.

Free The Geek: Episode 43 - With Andreas Heigl. How to Be a Better Public Speaker and Documentation-Driven Development
Come listen to this warm and friendly chat with Andreas Heigl about how to be a better public speaker, why some developers only work "9-to-5", and what it was like taking over an established user group (phpugffm).

WP Builds: 293 – Understanding The Client’s Training Needs
We are taking contrasting approaches to getting our new businesses running and our first client’s site built.

Reading and Viewing

Open Source Bait and Switch
Some developers use problematic open source licenses which they can then leverage for sales. But then they get vilified as “not open source enough”. There’s no winning there.

Laravel Clean Code (1)
Writing clean and readable code is one of the developer’s concerns. Senior programmers manage to do this more easily by relying on their experience as well as their studies, and novice programmers do their best while gaining experience.

How Laravel’s EncryptCookies Middleware Prevented Me From Hacking Into Our Application
Today I tried to hack into our Laravel application trough a blind SQLi vulnerability I discovered in our code. I was able to retrieve the session table with sqlmap.

Domain-Driven Design and Clean Architecture in PHP — Part 2 (Event Storming)
In the previous part, we dealt with the structure of Domain-Driven Design and Clean Architecture layers and directories. But there are still many questions.

A Trick To Increase The Efficiency Of Web Services
One of the issues that should always be paid attention to is increasing the efficiency and optimality of web services.

Tips for Becoming a Better PHP Developer
The best PHP developers know how to leverage this language as much as possible, including what frameworks and tools to use, so that the project won’t become someone’s nightmare during implementation.

Interesting Projects, Tools and Libraries

metromix/redis-bundle
A Redis bundle for Symfony.

cloudware-square/free-blog
Laravel Blog with adminLTE.

chenmobuys/laravel-admin-base
laravel-admin-base based on laravel.

dzarezenko/liqui-api
PHP wrapper for the Liqui API.

inpsyde/google-tag-manager
Adds the Google Tag Manager container snippet to your site and populates the Google Tag Manager Data Layer.

imikemiller/amazon-advertising-api-php-sdk
Amazon Advertising API Client Library.

sowork/yauth
laravel rbac package.

react/promise-stream
The missing link between Promise-land and Stream-land for ReactPHP.

hollodotme/fast-cgi-client
A PHP fast CGI client to send requests (a)synchronously to PHP-FPM.

messagedigital/wkhtmltoimage-osx
Convert html to image using webkit (qtwebkit). Static linked osx binary.

Please help us by clicking to our sponsor:

 encrypt php scriptsProtect your PHP Code
Why not try SourceGuardian 13. 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?

Like us on FacebookFollow us on Twitter
We are still trying to grow our list. If you find PHP Weekly useful please tweet about us! Thanks.
Also, if you have a site or blog related to PHP then please link through to our site.

unsubscribe from this list | update subscription preferences 

Subscribe! Enter your email address below:

NO SPAM: We absolutely hate spam. We will not share, rent, or give away your email address to anyone.You can unsubscribe at any time. Easily!

Talk to us!

If you have some news, want to share a link with us or chat with us feel free to email us.

And we also have an RSS feed that you can use.

Like us on FacebookFollow us on Twitter

Copyright © PHPWeekly.com