Over medium heat, melt the butter (or use a little Olive oil instead) in a frying pan or skillet. Saute the garlic and onion for a couple of minutes or until they have softened.
Place the softened cream cheese in a mixer bowl (a food processor can also be used instead of a mixer). It helps to cut the cheese into several smaller pieces beforehand.