PHP framework code porting for ramante