Adding extra filters to twig

Dear Guys,

i need to extend twig to add some extra filters.

may i know how to do  it ?

 

Many Thanks.