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!

April 8, 2021

Welcome to the latest edition of phpweekly.com.

Have a Good Week,

Stay Safe and Well.

All the best,

Ade and Katie
 

Please help us by clicking to our sponsor:

encrypt php scripts 
Protect your PHP Code
Why not try SourceGuardian 12. 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

In Wake of PHP Git Server Attack, Researcher Advises Developers to Enable Encryption
A researcher said Wednesday that two malicious commits that were added to the PHP web development programming language’s official Git server earlier this week may have been prevented if the maintainers had enabled signed commits (encryption) on the server.

Finding The Right PHP Developer In 2021
The PHP language remains one of the most popular choices for web development in 2021. It is the go-to solution for content management systems, E-commerce websites, CRMs and much more. And with the latest features added in PHP 7 and 8, it is ready to compete with JavaScript in the area of modern app development as well. With all that, more PHP developers than ever are needed. How to find them?

Statement from Drupal Association Board Regarding the Free Software Foundation (FSF)
The Drupal community is clear about our Values and Principles. Our community promotes behaviors and decisions that support diversity, equity, and inclusion and reduce hatred, oppression, and violence. We believe that safety is an important component of dignity and respect, and we encourage behaviors that keep our community members safe.

Benefits of Hiring Laravel Development Services in India
There can be many reasons why a business would opt for outsourcing services, it may be short on expertise, capital, and infrastructure. Or maybe it’s just that the company knows the perks of outsourcing and wants to gain from its advantages. And there is nothing wrong with that. Maximum output with a minimum of effort is the unofficial motto of every business in the world. 

Honesty
Do you sometimes lie? Perhaps that's a too confrontational question. Do you sometimes bend the truth a little for the benefit of others or yourself? Do you still consider it a lie if all parties involved benefit from it?

Tutorials and Talks

Understanding Variable Scope in PHP
In this tutorial, we'll learn about an important concept called variable scope and how it affects the way you write code in PHP. We'll also cover the usage of the global and static keywords.

Tinker-like REPL for Mezzio
Today in the Laminas Slack, somebody asked if there was an equivalent to Laravel's Tinker REPL. The short answer is "no", but I had a suggestion for them.

Implement Two-Factor Authentication With Symfony and Twilio's Authy App and API
In this article, I will show you how to implement Two-factor authentication in a Symfony application using the Authy app to add an extra level of authentication to the traditional login form.

Function Inlining in Zend Engine
Modern PHP is fast! It has several performance features such as OPCache, JIT, and other improvements at the compilation step to make smart optimisations for many PHP applications. Inspecting the OPCodes is an easy way to make sure that PHP can make the best optimisations as possible.

Learn by Doing: Practice PHP OOP
You want to learn PHP OOP for a long time but you keep postponing? Now is the time! For the next 30 days I will post php OOP exercises + solution. Your challenge is to try to solve the small exercise without looking at the solution. You can use the web to search for concept but please dont look at the solution before at least try to solve the exercise.

Why To Support CMS-agnosticism, the GraphQL API Was Split to ~90 Packages, and Benefits and Drawbacks of This Approach
Last week I published article 💁🏻‍♀️ Why the GraphQL API Needs a Monorepo, and How It's Optimised, explaining how and why the leoloso/PoP monorepo, which hosts the code for the GraphQL API for WordPress, can manage the plugin's codebase efficiently. This article addresses some points in more detail.

Handling Console Signals in Laravel
When you cancel a long-running artisan command with Ctrl+C, a SIGINT signal is sent by the operating system to the PHP process. You can use this signal to perform some cleanup quickly. Symfony 5.2 introduced support for handling signals in commands.

How to Implement a WordPress Security Headers Plugin to Protect You WordPress Instalation
Read this article to learn how you can improve the security of Web sites that use WordPress by creating your own plugins that send those HTTP headers meant to protect your Web site users against security exploits.

How To Send Email From localhost Using PHP
In this tutorial, we will learn how to send an email from localhost using PHP and Gmail. In the PHP web application, mail() function used to send the mail. But mail() function will not work in the localhost environment. In this tutorial, we will send an email from the localhost system using PHP and Gmail.

jQuery Text Changed Event For Textbox with Example
jQuery Text Changed Event works for a textbox or any HTML input field. Here we discuss all available events for the input element. We also create an example where we do check how all the jQuery events are work with a textbox.

The window.matchMedia API
To execute a piece of code when the viewport is a certain size, the first thing that comes to mind is adding a resize event listener to the window object. This is one way, but not always the best. Sometimes the lesser known window.matchMedia API is a better fit.
News and Announcements 

CakePHP 4.2.5 Maintenance Release Announced
The CakePHP core team have just announced the immediate availability of CakePHP 4.2.5. This is a maintenance release for the 4.2 branch that fixes several community reported issues.

Tailwind CSS v2.1 is Now Released
Tailwind v2.1 was just released with a new JIT Engine, Filter and Backdrop-filter Utilities, and more. Let's take a look at some of the new features.

PhpStorm 2021.1 RC
PhpStorm 2021.1 Release Candidate is available! PhpStorm 2021.1 RC is the final build before the major update of PhpStorm.

The Laravel Octane Beta is Available
The Laravel Octane beta is now released—the highly-anticipated first-party package for running highly performant Laravel utilising environments like Swoole and RoadRunner.

DrupalCon North America - April 12-16th 2021 Online
DrupalCon features a dynamic schedule of educational, networking and contribution opportunities. Tickets are onsale now.

SymfonyLive Online Spanish Edition - May 7th 2021
Join symfony's first official online conference in Spanish, which will last three days. During the event we will use Hopin as a tool. Once registered for the conference, we will send you more details so that you create your free Hopin account and be able to attend all the talks of the event. Tickets are on sale now.

PHP Russia 2021 - June 28th 2021, Moscow
The only conference in Russia focused on PHP. Main topics are PHP ecosytem (PHP itself, standards, frameworks, libraries and OpenSource) and major players experience in building complex projects using best practices and modern approaches. Tickets are on sale now.

NomadPHP - Midwest PHP 2021, presented by Nexilio, LLC
Starts: April 22, 2021 at 7:00am PDT.

Podcasts and Vlogs

PHP Internals News: Episode 80: Static Variables in Inherited Methods
In this episode of "PHP Internals News" I chat with Nikita Popov (Twitter, GitHub, Website) about the "Static Variables in Inherited Methods" RFC.

PHPUgly #230: PHP'ing in a Bottle
This week on the podcast, Eric, John and Thomas talk about PHP Internals security issues, new PHP RFC, the right to repair, and more...

North Meets South Web Podcast Episode 93: Integrating Phone Systems, Rapidly Building Apps with Tailwind UI, and Dynamically Updating Blade Components
In this episode, Jake and Michael discuss integrating with hosted phone systems, quickly scaffolding out applications with Tailwind UI, and dynamically updating Blade components with AlpineJS.

The Stack Overflow Podcast 325: How We Keep Stack Overflow’s Codebase Clean and Modern
How would you define the ergonomics of code? Does it pass the squint test?

php[architect] Podcast: About PHP’s Compromised Git Commit
PHP internals contributor Sara Golemon answers questions from a panel of php[architect] and PHP Ugly contributors about the recent git compromise that affected the PHP project and what they’re doing about it. You can also watch a video of the roundtable with Sara.

Post Status Draft Podcast - Post Status Excerpt (No. 2) – Headless WordPress & Learning JavaScript
David and Cory discuss WordPress 5.7, the latest news in WordPress, WPEngine’s new headless WordPress service, and learning JavaScript today.

Reading and Viewing

The Fast Track Book Available in 13 Languages
Since the publication of an updated version of "The Fast Track" Symfony book a couple of months ago, the translation teams have been hard at work. I'm very proud that the book is now available in 13 languages.

Postmortem of PHP Core Compromise Continues
The investigation of how a couple of git accounts of some prominent PHP Core developers was compromised is still ongoing. PHP internals contributor Sara Golemon took some time to join a panel of other PHP community members to discuss the current status of the investigation and what information they have. You can watch the entire panel here.

The Month in WordPress: March 2021
The words from Josepha Haden Chomphosy on the How WordPress Improves episode of the WP Briefing Podcast point to the factors that differentiate building software in an open-source environment. Our updates this month are closely tied to the philosophy behind those core principles of open source software.

Creating a Laravel Package From Scratch
In this stream, you'll see me lay the foundations for the spatie/laravel-signal-aware-command package.

How Anna Grunduls Design Improved Its WooCommerce Performance by 4x With Cloudways
Anna Grunduls Design is a Poland-based ecommerce store for creative products like coloring posters, notebooks, maps, postcards, stickers, etc. Anna, the Owner and Creative Director, was facing performance issues with her store, which eventually brings fewer sales and more abandon carts. Let’s read what she says after migrating her store to Cloudways!

A Week of Symfony #744 (29 March - 4 April 2021)
This week, Symfony 4.4.21 and 5.2.6 maintenance versions were released. In addition, the Symfony 5 book published new updates for Symfony 5.2 and it's now available in 13 different languages.

Jobs

Do you have a position that you would like to fill? PHP Weekly is ideal for targeting developers and the cost is only $50/week for an advert.  Please let me know if you are interested by emailing me at [email protected]

Interesting Projects, Tools and Libraries

phabel
This is a transpiler that will allow native usage of php8 features and especially syntax in projects and libraries, while allowing maintainers to publish a version targeting 7.0 or even lower versions of PHP.

predis
A flexible and feature-complete Redis client for PHP.

aphiria
A suite of small, decoupled PHP libraries that make up a REST API framework. 

greencheap
A modular and lightweight CMS made with Symfony and Vuejs components.

greyhole
An application that uses Samba to create a storage pool of all your available hard drives (whatever their size, however they're connected), and allows you to create redundant copies of the files you store, in order to prevent data loss when part of your hardware fails.

reactphp-cron
Cronlike scheduler running inside a ReactPHP Event Loop.

html-to-markdown
Library which converts HTML to Markdown for your sanity and convenience.

bouncer
Bouncer is an elegant, framework-agnostic approach to managing roles and abilities for any app using Eloquent models.

tenancy
Run multiple websites using the same Laravel installation while keeping tenant specific data separated for fully independent multi-domain setups.

ical
This package offers an abstraction layer for creating iCalendars files. By using this PHP package, you can create *.ics files without the knowledge of the underling format. 

wp-phpmailer
Provides a clean and simple way to configure the WordPress-bundled PHPMailer library, allowing you to quickly get started sending mail through a local or cloud based service of your choice.

commonmark
Highly-extensible PHP Markdown parser which fully supports the CommonMark and GFM specs.

Please help us by clicking to our sponsor:

 encrypt php scripts 
Protect your PHP Code
Why not try SourceGuardian 12. 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