Keep Learning

Tagged in: PHP

How PHP works internally?

Last updated: April 20, 2024 by Atakan Demircioğlu

Here are my notes about how PHP works internally. If you guys have any addition please add your comments as a response. Tokenizing: In this step, the PHP interpreter takes the PHP codes and builds a…

How To Secure PHP Sessions?

Last updated: April 20, 2024 by Atakan Demircioğlu

My notes about how to secure PHP Sessions, what is session hijacking, and so on.. “How To Secure PHP Sessions?” is published by Atakan Demircioğlu in Developers Keep Learning.

Implementing TOTP-based Two Factor Authentication

Last updated: April 20, 2024 by Atakan Demircioğlu

Two-factor authentication (2FA) is an identity and access management security method that requires two forms of identification to access resources and data. (Microsoft) The algorithm uses a form of…

Inheritance vs Composition with PHP Examples

Last updated: April 20, 2024 by Atakan Demircioğlu

My notes about composition, and inheritance on the PHP side.. “Inheritance vs Composition with PHP Examples” is published by Atakan Demircioğlu in Developers Keep Learning.

Interface And Abstract Class

Last updated: May 6, 2024 by Atakan Demircioğlu

In very basic words, it is a contact or signature. Any class that implements an interface must be expected to have the same behavior. That means if you define a method contact that takes two params…

JIT Compiler in PHP

Last updated: April 20, 2024 by Atakan Demircioğlu

Here are my notes about the JIT compiler in PHP.. “JIT Compiler in PHP” is published by Atakan Demircioğlu in Developers Keep Learning.

PHP Loops — Which is faster?

Last updated: April 20, 2024 by Atakan Demircioğlu

I just compared it in one way and wrote the test results. It is important what do yo do inside the looping. Note: echo is affecting testing performance. But it is ok for getting an idea that what…

PHP Magic Methods Explained

Last updated: April 20, 2024 by Atakan Demircioğlu

PHP Magic methods explained. What are the PHP Magic methods?. “PHP Magic Methods Explained” is published by Atakan Demircioğlu in Developers Keep Learning.

PHP Output Buffering

Last updated: April 20, 2024 by Atakan Demircioğlu

Basically, this is a method to tell the PHP engine to hold the output data before sending it to the browser. Output buffering generally will not affect the speed of your web server by any great…

Say Goodbye to Boring Command Lines: Create Powerful and Fun Tools with PHP

Last updated: May 6, 2024 by Atakan Demircioğlu

Command Line Interface (CLI) tools have been gaining popularity lately due to their speed and efficiency. CLI tools that can automate tasks, simplify workflows, enhance your productivity and etc. If…

Test PHP codes with PHPUnit

Last updated: April 20, 2024 by Atakan Demircioğlu

Line 10: Test suite execution should be stopped after the first test is finished with the status “failure”. For testing, create a file named ValidatorTest.php and then create a class like this. You…

Generate Sitemap In Symfony 6

Last updated: April 20, 2024 by Atakan Demircioğlu

My notes about generating a sitemap in a Symfony 6 application.

Gearman Job Server Installation (PHP 8.1) Ubuntu 22.04

Last updated: April 20, 2024 by Atakan Demircioğlu

My notes about Gearman Job Server installation Ubuntu 22.04 (PHP 8.1).

Design Patterns # Creational

Last updated: April 20, 2024 by Atakan Demircioğlu

1- Singleton Pattern: Involves a single class that is responsible to create an object while making sure that only a single object gets created. 2- Builder Pattern: The main purpose of the Builder…

Upload File to Digital Ocean Space with PHP

Last updated: April 20, 2024 by Atakan Demircioğlu

If you are familiar with AWS S3, we can say it is a mirror thing in another Cloud provider. You can upload files, images, etc to a Digital Ocean space. So there are many ways to use Digital Ocean…

What are array_reduce and array_walk in PHP?

Last updated: April 20, 2024 by Atakan Demircioğlu

I liked to use array_reduce and array_walk in PHP. These are my notes about array_reduce and array_walk. If you are coming from the JS side, mostly you know the reduce() function. I think it is…

Enhancing PHP Performance: Understanding Expensive Operations

Last updated: April 20, 2024 by Atakan Demircioğlu

Unlock the secrets to optimizing PHP performance by mastering the understanding of expensive operations in php. Learn how to identify and mitigate costly processes for lightning-fast web applications. Dive into efficient coding techniques and performance-tuning strategies to supercharge your PHP projects.

Create OG Image With PHP

Last updated: April 20, 2024 by Atakan Demircioğlu

Learn how to create stunning OG (Open Graph) images dynamically using PHP. Elevate your website's social sharing experience with custom-designed images tailored for platforms like Facebook, Twitter, and LinkedIn.

PHP 8.1: GD: AVIF image support

Last updated: April 20, 2024 by Atakan Demircioğlu

Discover the latest in PHP 8.1: GD with AVIF image support, empowering developers to handle AVIF images efficiently. Upgrade your PHP capabilities for enhanced image processing and optimization.

Style your CLI applications with Termwind

Last updated: April 20, 2024 by Atakan Demircioğlu

Transform the look and feel of your command-line interface (CLI) applications effortlessly with Termwind, a powerful styling library. Elevate user experience by adding dynamic and visually appealing designs to your CLI tools using simple syntax and intuitive features.

Template Method in PHP

Last updated: May 1, 2024 by Atakan Demircioğlu

Learn how to implement the Template Method design pattern in PHP with a practical example. See how abstract classes and concrete subclasses work together to define a template for a series of steps, allowing for easy customization while maintaining a consistent structure.

How to parse YAML in PHP

Last updated: May 5, 2024 by Atakan Demircioğlu

Learn how to parse YAML in PHP effortlessly. Our tutorial provides step-by-step guidance for parsing YAML data in your PHP applications, making data manipulation a breeze.

Wordpress Responsive Images

Last updated: May 13, 2024 by Atakan Demircioğlu

Discover how to optimize your WordPress website's images for responsiveness with this comprehensive guide. Learn essential techniques and find a PHP example to streamline your implementation process. Elevate your site's user experience and performance today.

Understanding PHP in_array: A Comprehensive Guide

Last updated: July 8, 2024 by Atakan Demircioğlu

Learn how to effectively use the in_array function in PHP to check if a value exists in an array. Explore its syntax, practical examples, performance considerations, and faster alternatives for large datasets.

PHP 8.4: New Array Functions

Last updated: July 8, 2024 by Atakan Demircioğlu

Discover the new array functions in PHP 8.4, including array_find, array_find_key, array_any, and array_all, designed to streamline element searching and inspection with callback functions. Learn how to use these features with practical examples.

Laravel Collections Explained

Last updated: July 11, 2024 by Atakan Demircioğlu

Elevate your PHP coding game with Laravel Collections, making array handling simpler and more powerful. This article unveils numerous quick tips to enhance your codebase immediately.