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!

January 26, 2023

Hi everyone,

This week we have some firsts for the year starting off with the first PHP Annotated for January. There's also the first PHPArchitect podcast for the year so do check them out. There are new releases from laravel and the last release candidate from PHPStorm. In tutorials we have guides for Laravel container, PHP codesniffer, and optimising queries with the WhereRelation method on video. Finally in our Reading section we have two articles on helping secure your website using Finite State machines, regex md5 checksum and PHP.     

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].

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:

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.

Articles

Secure PHP Application Development
In this article, I will be talking about php secure development in detail. In addition to this article, I have included plenty of code examples. 

collect.js: A Laravel-Like Syntax for JavaScript Arrays
If you're anything like me, you're probably jumping between writing PHP code in Laravel and then building the frontend in JavaScript quite often when working on projects.

[PHP Guidelines series] Adapter design pattern + a dangerous workaround to implement Class Adapter
As announced here, I am working on a series of posts related to good and bad development practices.

Interfaces and Polymorphism in PHP - Practical Guide
Polymorphism in PHP does not support overloading, or in other words, compile-time polymorphism.

Stop Caching Relations Inside Your Models in PHP
Database models are the heart of your application. Restrain yourself from caching anything inside!

Tutorials and Talks

Leaning On The Container
Laravel has a fantastic dependency injection container, yet many people shy away from it. In this tutorial, I will walk through how I lean on Laravels container to make my code work for me.

Using PHP Codesniffer With Laravel
As of Laravel 9, the excellent Laravel Pint comes bundled with a new Laravel installation. 

CakePHP 4 Tutorial 2022 - Fetching Associated Data (Part 12)
In this part we are going to learn how CakePHP fetches associated data and how to filter a given query regarding their associated entities.

Write Cleaner Queries With WhereRelation
In this week's #QWW, we're optimizing our queries with the WhereRelation method. It makes our code more readable and shorter at the same time.

How To Get The Total Database Size In Mysql Using A Query
In this tutorial I'll show you how to get the total database size in MySQL using a simple statement.

How to Create Responsive FileManager in Laravel?
If you have some corrections, recommendations or anything else to say please let me know.

Allowing users to send emails with their own SMTP settings in Laravel 9
Various guides exist on how to do this in Laravel, but all the ones I found (this and this) worked only up to Laravel 8.

Laravel Ecommerce Tutorial: Part 4, Managing Product Categories
From the last 3 tutorials we laid all the foundational features of an ecommerce store from manage users to role based access control. In this post, we'll start to build the "ecommerce" part of this application.

News and Announcements

Laravel 9.48 Released
The Laravel team released 9.48 this week with conditional fragment helpers, HTTP configuration options for Symfony mailers, a new DB schema helper, and more.

Jetstream and Breeze Updated to Inertia v1.0 + Dark Mode for Jetstream
The Laravel team released new versions of Laravel Jetstream and Breeze in which both starter kits have been upgraded to Inertia v1.0. In addition, both now have Laravel 10 support to start testing and prepare the way for the general release on February 7th, 2023.

Lighthouse SEO monitoring is now available at Oh Dear
We're proud to announce we have added a new check to our service: Lighthouse SEO. Using this check you can detect (and get solution suggestions) for SEO and performance problems.

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

PhpStorm 2022.3.2 Release Candidate
PhpStorm 2022.3.2 Release Candidate is now available, and it’s the final build before the stable release.

php[tek] 2023 - Chicago, IL
Join us for the 15th Annual Web Developer Conference, php[tek] 2023, May 16-18 2023.

Podcasts and Vlogs

PHP Architect: php[podcast]
Episode 23.1.1 Join us at php[tek] 2023

PHP Ugly: 319: Server Racks and Cats
This week on the podcast, Eric, John, and Thomas talk about PR Review as a Service, AI, the new php[architect] Podcast, and more...

The Stack Overflow: From your lips to AI’s ears (Ep. 530)
The team talks about voice-to-code features, how game developers built accessibility into God of War, and why lab-grown meat is officially safe to eat (hail seitan!).

No Compromises Podcast: Knowing When To Use New Language Or Framework Features
New PHP version! New Laravel version! So exciting! But when does it make sense to upgrade, and when does it make sense to start using new language or framework features?

North Meets South Podcast: The One About Permissions
Jake and Michael discuss some different approaches to role-based permissions, and how to tackle assignment, management, and authorisation of them.

Developer Tea: Management Model of Ability and Will Applied to Self
If you aren't doing something, you either can't or won't. In today's episode, we explore this very simple starting point for behavior change and habit development, and explore the boundaries of the model.

WP Builds: 311 – Summing up the WP Builds ‘WordPress Business Bootcamp” Series
Over the last year, we have been attempting to question everything we know about building WordPress sites and running a web design businesses.

Reading and Viewing

Why Curly Brackets Go On New Lines
This is a curly bracket, or brace: {. It’s rarely used as a punctuation mark, but it is one of the most used symbols in programming languages, where they are used to group code and create scopes. It’s also one of the more debated topics when it comes to code styles.

Unlocking the Power of Laravel’s MVC: A Guide to Building Scalable and Maintainable Applications
We will explore how to use Laravel’s MVC pattern to build scalable and maintainable applications that follow the SOLID and DRY principles.

Efficiently Managing Stateful Processes in Laravel using Finite State Machines
Let’s dive into the world of Finite State Machines (FSM) and how they can help us secure our systems like a boss.

Malware Detection in Web scripts with Regex, md5 checksum and PHP
In this article we are going to create a proof of concept to detect malware in scripts loaded on a web site.

Exploring Code Reuse with Traits in PHP
Here is an example of a simple trait that defines a log() method.

Flutter Symfony Backend PHP
I want to show you how to create a blog app with flutter and symfony as a back-end API for a mobile app.

Humble Developers — The Unicorns of Software Development
I would love to shake a humble developer by the hand. I have spent 20 years looking and only found cowboy…

Interesting Projects, Tools and Libraries

surfnet/stepup-bundle
A Symfony 4|5 bundle that holds shared code and framework integration for all Step-up applications.

ideacatlab/laravel-cookie-consent-enhanced
Make your Laravel app comply with the EU cookie law and implement a cookie control system that allows users to manage their own cookie preferences.

nibynool/password-policy
A set of password policies to enable easy validation of a range of password requirements.

gemblue/tiny-wallet
Simple Wallets for PHP Projects.

objui/phpmail
This is a tool for sending email to PHP.

wenprise/debug
Debugging functions, wrapping around Symfony's VarDumper.

pinano/datatables-bundle
Symfony2 bundle for wrapping the famous dataTables jquery plugin by SpryMedia.

derptest/phpmachinist
Testing object factory for PHP.

philippfrenzel/yiimetroui
Yii2 MetroUI Widget Extension.

stvkoch/simple-example
Example very Simple Model/SQL Buidler and Config Libray.

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:

 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