Migrate two php static method posts