xefi / faker-php

Generate fake data on demand.
https://faker-php.xefi.com/
Apache License 2.0
2 stars 0 forks source link

Add methods #38

Open Samoht70 opened 6 days ago

Samoht70 commented 6 days ago

faker()->boolean(30) faker()->randomElement(['sum', 'count'])

On the old faker, there were 2 methods boolean() and randomElement(). The boolean() method takes as an argument the chance of obtaining ‘true’ and the randomElement() method takes as an argument an array of values

GautierDele commented 6 days ago

Will be easy to add, coming soon 🚀

Samoht70 commented 5 days ago

For locales add company() method to have name of companies

Samoht70 commented 5 days ago

For locales add address() method to give complete postal address

martinsoenen commented 15 hours ago

Also in person or internet we should add mail() or email() to give a random email address