Skip to content
Mickaël Outhier edited this page Sep 20, 2026 · 11 revisions

Palmo documentation

Generators

PalmoAddress

Generate a random street

  • @param StreetType $type - An optionnal street type
  • @return string - A random street name
  • street(StreetType|null $type = null): string

Generate a random street number

  • @param bool $withLetter - If true, complete the number with a letter
  • @return string - A random address number
  • number(bool $withLetter = false): string

Generate a random city

  • @return string - A random city
  • city(): string

Generate a random country

  • @param Country $country - An optionnal country enum value
  • @return string - A random country
  • country(Country|null $country = null): string

Generate a random postalCode

  • @param PostalCodeFormat $format - An optionnal country postal code format
  • @return string - A random postalCode
  • postalCode(PostalCodeFormat|null $format = null): string

Clone this wiki locally