Permits are usually needed for installing new fences in townships and boroughs, even if the old fence is being replaced. Give your township a call to inquire. On their websites, some companies even post their fence code.