·

shell

Quickly run scripts in the shell in Magento 2

Magento 2 has a great functionality for running scripts in the command line, but sometimes you just want to quickly check something without creating a new CLI command or creating a unit test. Wouldn’t it be great if you could just write a PHP script and write some simple code in it, just to speed read further ...

Convert a file encoding to UTF-8 from a shell script

Today I had the situation where I had to convert a bunch of files to the UTF-8 encoding. All source files where in different encoding but they had to be saved in UTF-8 in order for the application to work properly. To do this I created a simple shell script.read further ...