Has anyone customized PCF8574 as input?

Has anyone customized PCF8574 as input? Could someone help me create the input module?