Preheat oven to 350°F.
In a medium mixing bowl, combine 8 ounces cream cheese and 1 cup mayonnaise. Then add 4-8 ounces grated mozzarella, 1 cup parmesan cheese, 1 jar of chopped artichoke hearts, ½ chopped onion and 2 cloves of minced garlic. Mix well.
Spoon the mixture into a 9×9 or 9×13 baking dish. Bake at 350°F for 25-30 minutes, until slightly browned. If you want to brown the top even more, put under the broiler for a few minutes, watching closely so it doesn't burn.
