Magento 2 truncate string to specific limit.

Magento 2 You can truncate the string using Magento best practice.

By default, You can truncate the string using substr() PHP method.

Magento gives Out of the box feature for a truncate string using Magento\Framework\Stdlib\StringUtils class. Continue reading “Magento 2 truncate string to specific limit.”

Magento 2 Basic SSH Commands.

Basic SSH Command in Magento 2 that is useful for routine Magento development.

There are lots of Native Magento Commands available with the Magento Package.

Magento 2 comes with multiple Commands by default and you want to use any of the commands, You have to type the command in CLI, bin/magento help
Continue reading “Magento 2 Basic SSH Commands.”