William Porter (1805–1880) was attorney-general of the Cape Colony and a drafter of its first constitution in 1854.