If you was legally married in the Phils then your marriage is legal here, the fact that your wife got a settlement visa to the UK probably means your marriage is legal, thou check here ..

https://www.ecensus.com.ph/Default.aspx