---
title: "Mohammad Emran Hasan (@phpfour) | Hashnode"
description: "Serious PHP. Read the latest articles by Mohammad Emran Hasan on Hashnode."
url: "https://hashnode.com/@phpfour"
---

@phpfour

# Mohammad Emran Hasan

@phpfour · Joined March 2021

Serious PHP

### [Symfony: Step Into Enterprise](https://phpfour.hashnode.dev/symfony-step-into-enterprise?utm_source=hashnode&utm_medium=feed)

I presented this talk in the Eskimo Tech Adda meetup a few months ago.

1 min read · [phpfour.hashnode.dev](https://phpfour.hashnode.dev/symfony-step-into-enterprise?utm_source=hashnode&utm_medium=feed)

[Nov 30, 2020](https://hashnode.com/posts/symfony-step-into-enterprise/6253317092d73e7055c1a23e)

### [Structuring Laravel Model with Custom Accessor & Mutator](https://phpfour.hashnode.dev/structuring-laravel-model-with-custom-accessor-and-mutator?utm_source=hashnode&utm_medium=feed)

This is NOT a recommended way to work with Laravel. At the time of writing this, strong typing and static analysis tools were not available – with their wide usage now, there is no need to use hacks like this anymore. In a few recent projects, we h...

4 min read · [phpfour.hashnode.dev](https://phpfour.hashnode.dev/structuring-laravel-model-with-custom-accessor-and-mutator?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/structuring-laravel-model-with-custom-accessor-and-mutator/6253317992d73e7055c1a244) [May 12, 2020](https://hashnode.com/posts/structuring-laravel-model-with-custom-accessor-and-mutator/6253317992d73e7055c1a244)

### [Auto-restart MariaDB when it dies](https://phpfour.hashnode.dev/auto-restart-mariadb-when-it-dies?utm_source=hashnode&utm_medium=feed)

I am running a small, low-memory VPS where MariaDB is frequently killed by the system due to lack of memory. Since I wanted to keep the budget fixed and didn’t have enough time to look under the hood to find the root cause, I opted in for running a c...

1 min read · [phpfour.hashnode.dev](https://phpfour.hashnode.dev/auto-restart-mariadb-when-it-dies?utm_source=hashnode&utm_medium=feed)

[Mar 24, 2018](https://hashnode.com/posts/auto-restart-mariadb-when-it-dies/625330c175dccb6f34320174)

### [jQuery noConflict](https://phpfour.hashnode.dev/jquery-noconflict?utm_source=hashnode&utm_medium=feed)

In a recent project, we had to load jQuery as a part of a chrome extension into an external page where the $ alias has already been used. We tried the classic solution: jQuery.noConflict(), which returns control of $ back to the other library. Howeve...

1 min read · [phpfour.hashnode.dev](https://phpfour.hashnode.dev/jquery-noconflict?utm_source=hashnode&utm_medium=feed)

[Mar 10, 2018](https://hashnode.com/posts/jquery-noconflict/625330c992d73e7055c1a20c)

### [Installing Symfony 4 (3.4.0-BETA1)](https://phpfour.hashnode.dev/installing-symfony-4-340-beta1?utm_source=hashnode&utm_medium=feed)

I wanted to install the Symfony 4 beta to play with the new features. While I was able to get most of it working, but was facing issues due to package dependency when trying to install some common bundles. I then settled with the 3.4 branch, which ha...

1 min read · [phpfour.hashnode.dev](https://phpfour.hashnode.dev/installing-symfony-4-340-beta1?utm_source=hashnode&utm_medium=feed)

[Oct 21, 2017](https://hashnode.com/posts/installing-symfony-4-340-beta1/625330d392d73e7055c1a213)
