Confucianism was the official philosophy throughout most of Imperial China 's history , and becoming a professional of Confucian texts was needed to be part of the imperial bureaucracy .
Credited with shaping much of Chinese thought , Confucianism was the official philosophy throughout most of Imperial China 's history , and mastery of Confucian texts provided the primary criterion for entry into the imperial bureaucracy .