Magento Development Blog - Page 7 | Magento Company

Blog

Guides, tutorials and best practices from the Magento Company team.

Cannot list files in directory with phpleague flysystem sftp v3
Catalog PHP

Cannot list files in directory with phpleague flysystem sftp v3

Troubleshooting Flysystem v3 SFTP: Resolving the "Undefined array key 'type'" Error Migrating storage layers, especially when dealing with external

20 October 2026 · Stefan Bogdanescu
how to convert array of objects to key value pairs in php
Database API

how to convert array of objects to key value pairs in php

How to Convert Array of Objects/Arrays to Key Value Pairs in PHP: Fixing Common Errors As a senior developer, I frequently encounter situations where we

20 October 2026 · Stefan Bogdanescu
Set next month payment date (with PHP Carbon)
PHP Errors

Set next month payment date (with PHP Carbon)

Set Next Month Payment Date Reliably with PHP Carbon: Avoiding End of Month Traps As developers working with financial data or scheduling systems,

20 October 2026 · Stefan Bogdanescu
how to complete install php trader extension
Extensions PHP

how to complete install php trader extension

Mastering PHP Extensions: A Deep Dive into Installing the Trader Module Welcome to the world of complex application development! As a senior developer,

20 October 2026 · Stefan Bogdanescu
Converting String Date To Carbon Timestamp with Locale
API PHP

Converting String Date To Carbon Timestamp with Locale

Mastering Date Parsing in PHP with Carbon: Converting String Dates to Timestamps As developers working with APIs or external data sources, one of the

20 October 2026 · Stefan Bogdanescu
Correcting my auto increment in a foreach loop
PHP Orders

Correcting my auto increment in a foreach loop

Improving Incrementing Behavior in Nested Loops Working with multiple loops can often present challenges when dealing with incrementing variables

20 October 2026 · Stefan Bogdanescu
Get field data when using Spout to read an Excel file
PHP Email

Get field data when using Spout to read an Excel file

Mastering Data Extraction: Getting Field Data from Excel using Spout Reading structured data from external files like Excel spreadsheets is a

20 October 2026 · Stefan Bogdanescu
dns_get_record(): A temporary server error occurred.
Database API

dns_get_record(): A temporary server error occurred.

DNS Query Failures: Mastering Error Handling for Resilient Network Operations As developers, we often deal with external services—APIs, databases, and

20 October 2026 · Stefan Bogdanescu
I cannot install php composer in Ubuntu 16.04
Security Extensions

I cannot install php composer in Ubuntu 16.04

Solving the Composer Installation Nightmare on Ubuntu 16.04: A Developer's Guide If you are trying to set up a modern PHP environment, especially

20 October 2026 · Stefan Bogdanescu
Run shell script via PHP
Database Security

Run shell script via PHP

Running Shell Scripts via PHP: A Comprehensive Guide As a senior developer, I often encounter situations where we need to execute shell scripts or

20 October 2026 · Stefan Bogdanescu
WooCommerce: Only allow products from the same category in cart
Checkout Catalog

WooCommerce: Only allow products from the same category in cart

WooCommerce: Implementing Same Category Restriction for Cart Items In this post, we'll address your specific requirement of restricting cart items to

20 October 2026 · Stefan Bogdanescu
Get last items in foreach php
Catalog Indexing

Get last items in foreach php

How to Retrieve the Last N Elements from an Array in PHP When working with large arrays in PHP, it's common to need only a subset of elements, such as

20 October 2026 · Stefan Bogdanescu

Our network