Pure PHP implementation of Croatian Fiscalization protocol