Gandalf is a (crazy) php library that handles functions