Download the PHP package wnx/faker-swiss-locations without Composer
On this page you can find all versions of the php package wnx/faker-swiss-locations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wnx/faker-swiss-locations
More information about wnx/faker-swiss-locations
Files in wnx/faker-swiss-locations
Package faker-swiss-locations
Short Description Provider to generate valid Swiss location data for Faker PHP.
License MIT
Homepage https://github.com/stefanzweifel/faker-swiss-locations
Informations about the package faker-swiss-locations
faker-swiss-locations
Faker provider to generate random valid Swiss locations.
Installation
You can install the package via composer:
Usage
You first need to add the Location
provider to Faker.
You can now call the postcode()
, city()
or canton()
method on faker to get a random valid Swiss location.
Note Calling
postcode()
,city()
orcanton()
always returns a new random location. If you need the same location forpostcode
,city
andcanton
use thelocation()
-method and access the properties from the instance.
Or you can call the location()
method to get a \Wnx\FakerSwissLocations\Location
-instance. You can access postcode, city and canton from this object too.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Stefan Zweifel
- All Contributors
License
The MIT License (MIT). Please see License File for more information.