Well I shall present you one of the builds that I had more fun with, I don't have my books in front of me atm so I might check everything later.
My dear princess who wanted all the spells (or become a goddess) and has had some variations over different campaigns.
Bamboo spirit folk (from OA)
-Transmutation domain wizard, with animal companion and improved initiative (traded for scribe scroll).
-Archivist
-Druid/Cloistered Cleric/Human paragon/Archivist (third level is quite open depending on your needs, druid is the only way to end being able to wildshape, cleric opens divine metamagic, if you want to be able to disguise human paragon is great and archivist might be worthwile if no BAB tricks are allowed)
During your first three levels you need the following 3 feats, earth sense, heighten spell and earth spell,
you will need a flaw.
From there on take levels in mysthic theurge, progressing archivist and wizard untill you have a BAB of +4 either by actually getting it, or by tricking your ways: can afford a +3 weapon (there is a +2 weapon enhancement in A&EG that makes your BAB equal to that of a cleric of your level) or are able to persist (DMM) a divine power spell.
Then you will qualify for arcane hierophant.
My personal favourite for the build is the following:
1 -Transmutation domain wizard with animal companion, improved initiative, heighten spell, earth sense, earth spell
2 -Archivist
3 -Druid with urban companion, Invisible spell
4- Mysthic theurge
5- Mysthic theurge
6- Mysthic theurge Leadership (to get an artificer cohort with crafting feats to craft me the weapon, depending on your interpretation you can make the companion familiar the artificer

)
7- Arcane Hierophant
8- Arcane Hierophant
9- Arcane Hierophant Companion spellbound
10- Arcane Hierophant
11- Arcane Hierophant
12- Arcane Hierophant Natural Spell
13- Arcane Hierophant
14- Arcane Hierophant
15- Arcane Hierophant Spell-Linked familiar
16- Arcane Hierophant
17- Mysthic Theurge
18- Mysthic Theurge Deceptive Spell
19- Mysthic Theurge
20- Mysthic Theurge
You lose two caster levels but you get.. 9th level spells in wizard and archivist. A 10th level familiar-11th level animal companion, personally I normally go with a baboon that is disguised (or at later level polymorhped) into an exact copy of my character. Most of the time you can get the character to appear whatever you want him to be, be it the familiar of your familiar, a skill monkey or a crazy barbarian.
Specializing on mostly buffs can make you good at almost every area, and depending on the power level of the party, or its composition you can adjust pretty easily. It has access to a lot of spells so you can get as cheesy as needed.
Once you get access to 5th level spells it is pretty damn hard to kill you, via clever use of spell phylactery. Be it through the channel spell of the arcane hierophant, the deceptive spell feat or the spell-linked familiar you can make it appear that your familiar is the one casting the spells (if you need it) or you can just make your spells invisible.
It is a really fun build to play, specially if you don't tell the players what exactly is your character. First time I introduced her she had used a permanencied reduce person and disguise to appear to be a little girl, possing as the familiar of her large ape companion familiar. OOC I kept saying that the big guy kept her due to the familiar ability to speak with others of its kind, since he was completely unable to speak.