Of all of the design patterns you could use in your code, the adapter pattern is one of my all time favourites. It allows you to abstract the implementation to an adapter that implements an interface. so you can switch implementation simply by switching the adapter.
PHP
Your System Isn’t Slow – Your Bottleneck is not Optimized
A bottleneck isn’t inherently bad, we all have them. What matters is making sure your biggest bottleneck is always working at it’s most optimal conditions. That’s where your optimizations should be focused. Read more