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
Stripe Is My DNS Provider Now: When Good APIs Meet Bad Ideas
Stripe metadata is great for config, entitlements, and… DNS? This experiment takes one good API feature and stretches it into the worst possible infrastructure layer. Read more