mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-26 04:39:09 -04:00
ALPHA 3.0.2a
This commit is contained in:
179
vendor/fzaninotto/faker/readme.md
vendored
179
vendor/fzaninotto/faker/readme.md
vendored
@@ -180,17 +180,17 @@ Each of the generator properties (like `name`, `address`, and `lorem`) are calle
|
||||
### `Faker\Provider\DateTime`
|
||||
|
||||
unixTime($max = 'now') // 58781813
|
||||
dateTime($max = 'now', $timezone = date_default_timezone_get()) // DateTime('2008-04-25 08:37:17', 'UTC')
|
||||
dateTimeAD($max = 'now', $timezone = date_default_timezone_get()) // DateTime('1800-04-29 20:38:49', 'Europe/Paris')
|
||||
dateTime($max = 'now', $timezone = null) // DateTime('2008-04-25 08:37:17', 'UTC')
|
||||
dateTimeAD($max = 'now', $timezone = null) // DateTime('1800-04-29 20:38:49', 'Europe/Paris')
|
||||
iso8601($max = 'now') // '1978-12-09T10:10:29+0000'
|
||||
date($format = 'Y-m-d', $max = 'now') // '1979-06-09'
|
||||
time($format = 'H:i:s', $max = 'now') // '20:49:42'
|
||||
dateTimeBetween($startDate = '-30 years', $endDate = 'now', $timezone = date_default_timezone_get()) // DateTime('2003-03-15 02:00:49', 'Africa/Lagos')
|
||||
dateTimeInInterval($startDate = '-30 years', $interval = '+ 5 days', $timezone = date_default_timezone_get()) // DateTime('2003-03-15 02:00:49', 'Antartica/Vostok')
|
||||
dateTimeThisCentury($max = 'now', $timezone = date_default_timezone_get()) // DateTime('1915-05-30 19:28:21', 'UTC')
|
||||
dateTimeThisDecade($max = 'now', $timezone = date_default_timezone_get()) // DateTime('2007-05-29 22:30:48', 'Europe/Paris')
|
||||
dateTimeThisYear($max = 'now', $timezone = date_default_timezone_get()) // DateTime('2011-02-27 20:52:14', 'Africa/Lagos')
|
||||
dateTimeThisMonth($max = 'now', $timezone = date_default_timezone_get()) // DateTime('2011-10-23 13:46:23', 'Antarctica/Vostok')
|
||||
dateTimeBetween($startDate = '-30 years', $endDate = 'now', $timezone = null) // DateTime('2003-03-15 02:00:49', 'Africa/Lagos')
|
||||
dateTimeInInterval($startDate = '-30 years', $interval = '+ 5 days', $timezone = null) // DateTime('2003-03-15 02:00:49', 'Antartica/Vostok')
|
||||
dateTimeThisCentury($max = 'now', $timezone = null) // DateTime('1915-05-30 19:28:21', 'UTC')
|
||||
dateTimeThisDecade($max = 'now', $timezone = null) // DateTime('2007-05-29 22:30:48', 'Europe/Paris')
|
||||
dateTimeThisYear($max = 'now', $timezone = null) // DateTime('2011-02-27 20:52:14', 'Africa/Lagos')
|
||||
dateTimeThisMonth($max = 'now', $timezone = null) // DateTime('2011-10-23 13:46:23', 'Antarctica/Vostok')
|
||||
amPm($max = 'now') // 'pm'
|
||||
dayOfMonth($max = 'now') // '04'
|
||||
dayOfWeek($max = 'now') // 'Friday'
|
||||
@@ -200,6 +200,8 @@ Each of the generator properties (like `name`, `address`, and `lorem`) are calle
|
||||
century // 'VI'
|
||||
timezone // 'Europe/Paris'
|
||||
|
||||
Methods accepting a `$timezone` argument default to `date_default_timezone_get()`. You can pass a custom timezone string to each method, or define a custom timezone for all time methods at once using `$faker::setDefaultTimezone($timezone)`.
|
||||
|
||||
### `Faker\Provider\Internet`
|
||||
|
||||
email // 'tkshlerin@collins.com'
|
||||
@@ -369,6 +371,12 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
If you would like to use a modifier with a value not generated by Faker, use the `passthrough()` method. `passthrough()` simply returns whatever value it was given.
|
||||
|
||||
```php
|
||||
$faker->optional()->passthrough(mt_rand(5, 15));
|
||||
```
|
||||
|
||||
## Localization
|
||||
|
||||
`Faker\Factory` can take a locale as an argument, to return localized data. If no localized provider is found, the factory fallbacks to the default locale (en_US).
|
||||
@@ -926,6 +934,15 @@ echo $faker->tollFreeNumber; // "0800 123 456"
|
||||
echo $faker->areaCode; // "03"
|
||||
```
|
||||
|
||||
### `Faker\Provider\en_US\Company`
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
// Generate a random Employer Identification Number
|
||||
echo $faker->ein; // '12-3456789'
|
||||
```
|
||||
|
||||
### `Faker\Provider\en_US\Payment`
|
||||
|
||||
```php
|
||||
@@ -960,6 +977,9 @@ echo $faker->companyNumber; // 1999/789634/01
|
||||
|
||||
// Generates a random national identification number
|
||||
echo $faker->idNumber; // 6606192211041
|
||||
|
||||
// Generates a random valid licence code
|
||||
echo $faker->licenceCode; // EB
|
||||
```
|
||||
|
||||
### `Faker\Provider\en_ZA\PhoneNumber`
|
||||
@@ -981,6 +1001,9 @@ echo $faker->mobileNumber; // 082 123 5555
|
||||
|
||||
// Generates a Documento Nacional de Identidad (DNI) number
|
||||
echo $faker->dni; // '77446565E'
|
||||
|
||||
// Generates a random valid licence code
|
||||
echo $faker->licenceCode; // B
|
||||
```
|
||||
|
||||
### `Faker\Provider\es_ES\Payment`
|
||||
@@ -1051,6 +1074,24 @@ echo $faker->vat; // "BE 0123456789" - Belgian Value Added Tax number
|
||||
echo $faker->vat(false); // "BE0123456789" - unspaced Belgian Value Added Tax number
|
||||
```
|
||||
|
||||
### `Faker\Provider\es_VE\Person`
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
// Generate a Cédula de identidad number, you can pass one argument to add separator
|
||||
echo $faker->nationalId; // 'V11223344'
|
||||
```
|
||||
|
||||
### `Faker\Provider\es_VE\Company`
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
// Generates a R.I.F. number, you can pass one argument to add separators
|
||||
echo $faker->taxpayerIdentificationNumber; // 'J1234567891'
|
||||
```
|
||||
|
||||
### `Faker\Provider\fr_FR\Address`
|
||||
|
||||
```php
|
||||
@@ -1067,6 +1108,9 @@ $faker->department; // array('18' => 'Cher');
|
||||
|
||||
// Generates a random region
|
||||
echo $faker->region; // "Saint-Pierre-et-Miquelon"
|
||||
|
||||
// Generates a random appartement,stair
|
||||
echo $faker->secondaryAddress; // "Bat. 961"
|
||||
```
|
||||
|
||||
### `Faker\Provider\fr_FR\Company`
|
||||
@@ -1099,6 +1143,18 @@ echo $faker->vat; // FR 12 123 456 789
|
||||
echo $faker->nir; // 1 88 07 35 127 571 - 19
|
||||
```
|
||||
|
||||
### `Faker\Provider\fr_FR\PhoneNumber`
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
// Generates phone numbers
|
||||
echo $faker->phoneNumber; // +33 (0)1 67 97 01 31
|
||||
echo $faker->mobileNumber; // +33 6 21 12 72 84
|
||||
echo $faker->serviceNumber // 08 98 04 84 46
|
||||
```
|
||||
|
||||
|
||||
### `Faker\Provider\he_IL\Payment`
|
||||
|
||||
```php
|
||||
@@ -1229,6 +1285,18 @@ echo $faker->metropolitanCity; // "서울특별시"
|
||||
echo $faker->borough; // "강남구"
|
||||
```
|
||||
|
||||
### `Faker\Provider\ko_KR\PhoneNumber`
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
// Generates a local area phone numer
|
||||
echo $faker->localAreaPhoneNumber; // "02-1234-4567"
|
||||
|
||||
// Generates a cell phone number
|
||||
echo $faker->cellPhoneNumber; // "010-9876-5432"
|
||||
```
|
||||
|
||||
### `Faker\Provider\lt_LT\Payment`
|
||||
|
||||
```php
|
||||
@@ -1246,6 +1314,69 @@ echo $faker->bankAccountNumber // "LT300848876740317118"
|
||||
echo $faker->personalIdentityNumber; // "140190-12301"
|
||||
```
|
||||
|
||||
### `Faker\Provider\ms_MY\Address`
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
// Generates a random Malaysian township
|
||||
echo $faker->township; // "Taman Bahagia"
|
||||
|
||||
// Generates a random Malaysian town address with matching postcode and state
|
||||
echo $faker->townState; // "55100 Bukit Bintang, Kuala Lumpur"
|
||||
```
|
||||
|
||||
### `Faker\Provider\ms_MY\Miscellaneous`
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
// Generates a random vehicle license plate number
|
||||
echo $faker->jpjNumberPlate; // "WPL 5169"
|
||||
```
|
||||
|
||||
### `Faker\Provider\ms_MY\Payment`
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
// Generates a random Malaysian bank
|
||||
echo $faker->bank; // "Maybank"
|
||||
|
||||
// Generates a random Malaysian bank account number (10-16 digits)
|
||||
echo $faker->bankAccountNumber; // "1234567890123456"
|
||||
|
||||
// Generates a random Malaysian insurance company
|
||||
echo $faker->insurance; // "AIA Malaysia"
|
||||
|
||||
// Generates a random Malaysian bank SWIFT Code
|
||||
echo $faker->swiftCode; // "MBBEMYKLXXX"
|
||||
```
|
||||
|
||||
### `Faker\Provider\ms_MY\Person`
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
// Generates a random personal identity card (myKad) number
|
||||
echo $faker->myKadNumber($gender = null|'male'|'female', $hyphen = null|true|false); // "710703471796"
|
||||
```
|
||||
|
||||
### `Faker\Provider\ms_MY\PhoneNumber`
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
// Generates a random Malaysian mobile number
|
||||
echo $faker->mobileNumber($countryCodePrefix = null|true|false, $formatting = null|true|false); // "+6012-705 3767"
|
||||
|
||||
// Generates a random Malaysian landline number
|
||||
echo $faker->fixedLineNumber($countryCodePrefix = null|true|false, $formatting = null|true|false); // "03-7112 0455"
|
||||
|
||||
// Generates a random Malaysian voip number
|
||||
echo $faker->voipNumber($countryCodePrefix = null|true|false, $formatting = null|true|false); // "015-458 7099"
|
||||
```
|
||||
|
||||
### `Faker\Provider\ne_NP\Address`
|
||||
|
||||
```php
|
||||
@@ -1267,6 +1398,15 @@ echo $faker->vat; // "BE 0123456789" - Belgian Value Added Tax number
|
||||
echo $faker->vat(false); // "BE0123456789" - unspaced Belgian Value Added Tax number
|
||||
```
|
||||
|
||||
### `Faker\Provider\nl_BE\Person`
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
echo $faker->rrn(); // "83051711784" - Belgian Rijksregisternummer
|
||||
echo $faker->rrn('female'); // "50032089858" - Belgian Rijksregisternummer for a female
|
||||
```
|
||||
|
||||
### `Faker\Provider\nl_NL\Company`
|
||||
|
||||
```php
|
||||
@@ -1276,7 +1416,15 @@ echo $faker->vat; // "NL123456789B01" - Dutch Value Added Tax number
|
||||
echo $faker->btw; // "NL123456789B01" - Dutch Value Added Tax number (alias)
|
||||
```
|
||||
|
||||
### `Faker\Provider\no_NO\Payment`
|
||||
### `Faker\Provider\nl_NL\Person`
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
echo $faker->idNumber; // "111222333" - Dutch Personal identification number (BSN)
|
||||
```
|
||||
|
||||
### `Faker\Provider\nb_NO\Payment`
|
||||
|
||||
```php
|
||||
<?php
|
||||
@@ -1376,6 +1524,7 @@ echo $faker->name; // 'Sr. Luis Adriano Sepúlveda Filho'
|
||||
echo $faker->cpf; // '145.343.345-76'
|
||||
echo $faker->cpf(false); // '45623467866'
|
||||
echo $faker->rg; // '84.405.736-3'
|
||||
echo $faker->rg(false); // '844057363'
|
||||
```
|
||||
|
||||
### `Faker\Provider\pt_BR\Company`
|
||||
@@ -1479,6 +1628,15 @@ echo $faker->personalIdentityNumber() // '950910-0799'
|
||||
//Since the numbers are different for male and female persons, optionally you can specify gender.
|
||||
echo $faker->personalIdentityNumber('female') // '950910-0781'
|
||||
```
|
||||
### `Faker\Provider\tr_TR\Person`
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
//Generates a valid Turkish identity number (in Turkish - T.C. Kimlik No)
|
||||
echo $faker->tcNo // '55300634882'
|
||||
|
||||
```
|
||||
|
||||
|
||||
### `Faker\Provider\zh_CN\Payment`
|
||||
@@ -1540,6 +1698,9 @@ echo $faker->VAT; //23456789
|
||||
* [pattern-lab/plugin-php-faker](https://github.com/pattern-lab/plugin-php-faker): Pattern Lab is a Styleguide, Component Library, and Prototyping tool. This creates unique content each time Pattern Lab is generated.
|
||||
* [guidocella/eloquent-populator](https://github.com/guidocella/eloquent-populator): Adapter for Laravel's Eloquent ORM.
|
||||
* [tamperdata/exiges](https://github.com/tamperdata/exiges): Faker provider for generating random temperatures
|
||||
* [jzonta/FakerRestaurant](https://github.com/jzonta/FakerRestaurant): Faker for Food and Beverage names generate
|
||||
* [aalaap/faker-youtube](https://github.com/aalaap/faker-youtube): Faker for YouTube URLs in various formats
|
||||
* [pelmered/fake-car](https://github.com/pelmered/fake-car): Faker for cars and car data
|
||||
|
||||
## License
|
||||
|
||||
|
||||
Reference in New Issue
Block a user