Peter Porker hails from Earth-8311 where all Marvel characters are represented by anthropomorphic animal counterparts who operate off of goofy cartoon logic.
Peter was originally a simple spider which lived in the basement of May Porker, a scientist who developed an atomic-powered hairdryer. The machine irradiated May's body, resulting in her being thrown into a fit which resulted in the radioactive pig biting Peter. This caused Peter to be transformed into an anthropomorphic pig himself while retaining his spider powers.
Peter would go on to be adopted by May and decided to use his powers to become the heroic Spider-Ham and get a job working as a photographer for the Daily Beagle. Spider-Ham would become enemies with villains like Raven the Hunter, the King-Pig, and the Buzzard; in-addition he would become one of the foremost Spider heroes of the multiverse and serve as an ally to Peter Parker, Miles Morales and Gwen Stacy.