fakerphp/faker
Faker is a PHP library that generates fake data for you.
v1.24.1
411M downloads/mo
#117 most downloaded on composer
FakerPHP/Faker
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 9 days to 10 months
Most releases are documented
notes for 21 of 35 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
35 releases · first in 2012
0 releases in the last 12 months
see the full history below
Release timeline
35 releases · Jul 2012 to Nov 2024Releases
latest 35-
v1.24.121 Nov 2024Release notes
Open source →What's Changed
- Changelog 1.24 by @pimjansen in #908
- remove gmail.com.au from free email domains by @da-mask in #911
- Fix internal deprecations in Faker\Guesser\Name by @gnutix in #912
New Contributors
Full Changelog: v1.24.0...v1.24.1
-
v1.24.007 Nov 2024Release notes
Open source →What's Changed
- Fix internal deprecations in Doctrine's populator by @gnutix in #889
- Fix mobile phone number pattern for France by @ker0x in #859
- PHP 8.4 Support by @Jubeki in #904
New Contributors
Full Changelog: v1.23.1...v1.24.0
-
v1.23.102 Jan 2024Release notes
Open source →What's Changed
- fix typos: "assymetric" -> asymmetric by @ivastly in #660
- Fix: lv_LV postcode format by @edgarsn in #661
- composer(deps): bump vimeo/psalm from 5.12.0 to 5.13.1 in /vendor-bin/psalm by @dependabot in #669
- composer(deps): bump rector/rector from 0.17.0 to 0.17.2 in /vendor-bin/rector by @dependabot in #667
- composer(deps): bump phpstan/phpstan from 1.10.15 to 1.10.22 in /vendor-bin/phpstan by @dependabot in #666
- composer(deps): bump friendsofphp/php-cs-fixer from 3.17.0 to 3.20.0 in /vendor-bin/php-cs-fixer by @dependabot in #668
- Add
$formattoimageDocBlock by @vintagesucks in #670 - Fix: lv_LV generating invalid personal identity numbers by @edgarsn in #663
- Fix for polish street names + more polish TLDs by @tomaszklim in #664
- Fix psalm baseline in .gitattributes by @VincentLanglet in #674
- composer(deps): bump rector/rector from 0.17.2 to 0.17.7 in /vendor-bin/rector by @dependabot in #676
- composer(deps): bump phpstan/phpstan from 1.10.22 to 1.10.26 in /vendor-bin/phpstan by @dependabot in #677
- composer(deps): bump friendsofphp/php-cs-fixer from 3.20.0 to 3.22.0 in /vendor-bin/php-cs-fixer by @dependabot in #679
- composer(deps): bump vimeo/psalm from 5.13.1 to 5.14.1 in /vendor-bin/psalm by @dependabot in #678
- chore: ensure php 8.3 compatibility by @Chris53897 in #684
- Remove invalid postcode pattern for France by @ker0x in #683
- Fix: Allow tests to fail on PHP 8.3 by @localheinz in #693
- Fix: Test does not perform any assertions by @localheinz in #695
- Fix: Operator by @localheinz in #696
- Fix: Use boolean expressions by @localheinz in #697
- composer(deps): bump rector/rector from 0.17.7 to 0.18.1 in /vendor-bin/rector by @dependabot in #688
- composer(deps): bump phpstan/phpstan from 1.10.26 to 1.10.32 in /vendor-bin/phpstan by @dependabot in #689
- composer(deps): bump vimeo/psalm from 5.14.1 to 5.15.0 in /vendor-bin/psalm by @dependabot in #687
- composer(deps): bump phpstan/phpstan-deprecation-rules from 1.1.3 to 1.1.4 in /vendor-bin/phpstan by @dependabot in #690
- composer(deps): bump friendsofphp/php-cs-fixer from 3.22.0 to 3.25.0 in /vendor-bin/php-cs-fixer by @dependabot in #686
- Fix: Require to pass name to
ContainerBuilder::add()by @localheinz in #702 - Enhancement: Run tests in random order by @localheinz in #701
- Fix: Add property type declarations by @localheinz in #699
- Fix: Enable and configure
type_declaration_spacesinstead of deprecatedfunction_typehint_spacefixer by @localheinz in #698 - composer(deps): bump phpstan/phpstan from 1.10.32 to 1.10.33 in /vendor-bin/phpstan by @dependabot in #704
- composer(deps): bump friendsofphp/php-cs-fixer from 3.25.0 to 3.25.1 in /vendor-bin/php-cs-fixer by @dependabot in #705
- github-actions(deps): bump actions/checkout from 3 to 4 by @dependabot in #706
- Fix: Switch order of parameters by @localheinz in #703
- Fix: Remove unused method by @localheinz in #711
- Fix: Rename parameter by @localheinz in #707
- Fix: Add parameter type declaration by @localheinz in #710
- Fix: Order by @localheinz in #712
- Enhancement: Reuse
NumberExtensionby @localheinz in #715 - Fix: Methods are instance methods by @localheinz in #708
- Fix: Add property type declarations by @localheinz in #713
- Fix: Reduce visibility by @localheinz in #714
- Fix: Do not memoize invalid service by @localheinz in #709
- Fix: Consistently describe experimental status by @localheinz in #717
- Fix: Mark classes as experimental by @localheinz in #716
- Fix: Mark class as
finalby @localheinz in #718 - Fix: Return string by @localheinz in #726
- Fix: Order by @localheinz in #722
- Fix: Avoid unnecessary imports by @localheinz in #721
- Enhancement: Enable
self_static_accessorfixer by @localheinz in #728 - Fix: Cache for
friendsofphp/php-cs-fixerby @localheinz in #729 - Fix: Add parameter type declarations by @localheinz in #724
- Fix: Add tests for
Containerby @localheinz in #727 - Fix: Simplify by @localheinz in #720
- updated polish license plates by @scybulski in #685
- Fix: Update
CHANGELOG.mdby @localheinz in #734 - Fix: Avoid useless tests for
ContainerBuilderby @localheinz in #730 - Fix: Rename parameter by @localheinz in #731
- Add changelog mention in review checklist by @bram-pkg in #735
- Enhancement: Allow creating
ContainerBuilderwith definitions for default extensions by @localheinz in #732 - Fix: Reduce visibility by @localheinz in #719
- Fix: Remove unused method by @localheinz in #736
- Enhancement: Add
SECURITY.mdby @localheinz in #739 - Fix: Do not use
staticin callables by @localheinz in #785 - Fixed incorrect female name among male names (#794) by @pimjansen in #795
- Removed suppressed State from it_IT by @BoGnY in #802
- Update Address.php to fix country name errors by @supgeek-rod in #809
- fix #832 by @gam6itko in #836
- Fix: Do not use deprecated
MT_RAND_PHPconstant on PHP 8.3 by @localheinz in #844 - Enhancement: Prepare release for
1.23.1by @localheinz in #788 - Fix: Remove branch alias for
1.23by @localheinz in #843
New Contributors
- @ivastly made their first contribution in #660
- @edgarsn made their first contribution in #661
- @vintagesucks made their first contribution in #670
- @tomaszklim made their first contribution in #664
- @VincentLanglet made their first contribution in #674
- @Chris53897 made their first contribution in #684
- @BoGnY made their first contribution in #802
- @supgeek-rod made their first contribution in #809
- @gam6itko made their first contribution in #836
Full Changelog: v1.23.0...v1.23.1
-
v1.23.012 Jun 2023Release notes
Open source →What's Changed
- Improve the way of generating Egyptian National Ids by @ahmedghanem00 in #651
- composer(deps): bump friendsofphp/php-cs-fixer from 3.16.0 to 3.17.0 in /vendor-bin/php-cs-fixer by @dependabot in #653
- composer(deps): bump vimeo/psalm from 5.11.0 to 5.12.0 in /vendor-bin/psalm by @dependabot in #654
- composer(deps): bump phpstan/extension-installer from 1.3.0 to 1.3.1 in /vendor-bin/phpstan by @dependabot in #655
- composer(deps): bump rector/rector from 0.16.0 to 0.17.0 in /vendor-bin/rector by @dependabot in #656
- Introduce the Color provider for "pl_PL" locale by @d1823 in #657
- Update
randomElementsto return random number of elements when no count is provided by @calebdw in #658 - Update CHANGELOG.md by @bram-pkg in #659
New Contributors
- @ahmedghanem00 made their first contribution in #651
- @d1823 made their first contribution in #657
Full Changelog: v1.22.0...v1.23.0
Release notes
Open source →- Update
randomElementsto return random number of elements when no count is provided (#658)
-
v1.22.014 May 2023Release notes
Open source →What's Changed
- Remove invalid config reference in
README.mdby @pierredup in #577 - Remove concept of OS from rector workflow by @DvDty in #579
- composer(deps): bump vimeo/psalm from 5.2.0 to 5.4.0 in /vendor-bin/psalm by @dependabot in #589
- composer(deps): bump friendsofphp/php-cs-fixer from 3.13.0 to 3.13.1 in /vendor-bin/php-cs-fixer by @dependabot in #587
- composer(deps): bump rector/rector from 0.15.0 to 0.15.2 in /vendor-bin/rector by @dependabot in #590
- composer(deps): bump phpstan/phpstan from 1.9.2 to 1.9.4 in /vendor-bin/phpstan by @dependabot in #586
- composer(deps): bump phpstan/phpstan-deprecation-rules from 1.0.0 to 1.1.1 in /vendor-bin/phpstan by @dependabot in #588
- Removed ${var} usage - deprecated in PHP 8.2 by @janlanger in #591
- Removed the name Adolf and similarities by @Joas707 in #584
- composer(deps): bump rector/rector from 0.15.2 to 0.15.10 in /vendor-bin/rector by @dependabot in #598
- composer(deps): bump friendsofphp/php-cs-fixer from 3.13.1 to 3.14.3 in /vendor-bin/php-cs-fixer by @dependabot in #595
- composer(deps): bump vimeo/psalm from 5.4.0 to 5.6.0 in /vendor-bin/psalm by @dependabot in #596
- composer(deps): bump phpstan/phpstan from 1.9.4 to 1.9.14 in /vendor-bin/phpstan by @dependabot in #597
- Enhancement: Enable
findUnusedBaselineEntryoption by @localheinz in #599 - Fix: Avoid ternary statement by @localheinz in #600
- Fix: remove currency HRK by @havekes in #602
- composer(deps): bump friendsofphp/php-cs-fixer from 3.14.3 to 3.14.4 in /vendor-bin/php-cs-fixer by @dependabot in #608
- composer(deps): bump phpstan/phpstan from 1.9.14 to 1.10.3 in /vendor-bin/phpstan by @dependabot in #609
- composer(deps): bump rector/rector from 0.15.10 to 0.15.19 in /vendor-bin/rector by @dependabot in #612
- composer(deps): bump vimeo/psalm from 5.6.0 to 5.7.7 in /vendor-bin/psalm by @dependabot in #611
- composer(deps): bump phpstan/phpstan-deprecation-rules from 1.1.1 to 1.1.2 in /vendor-bin/phpstan by @dependabot in #610
- timezone() respects countrycode by @jefhar in #607
- composer(deps): bump phpstan/phpstan from 1.10.3 to 1.10.10 in /vendor-bin/phpstan by @dependabot in #622
- composer(deps): bump vimeo/psalm from 5.7.7 to 5.9.0 in /vendor-bin/psalm by @dependabot in #623
- composer(deps): bump friendsofphp/php-cs-fixer from 3.14.4 to 3.15.1 in /vendor-bin/php-cs-fixer by @dependabot in #624
- composer(deps): bump rector/rector from 0.15.19 to 0.15.23 in /vendor-bin/rector by @dependabot in #626
- composer(deps): bump phpstan/phpstan-deprecation-rules from 1.1.2 to 1.1.3 in /vendor-bin/phpstan by @dependabot in #625
- fix: Empty
TraversableinrandomElements()by @KentarouTakeda in #605 - Fix: Split test by @localheinz in #627
- composer(deps): bump phpstan/phpstan from 1.10.10 to 1.10.14 in /vendor-bin/phpstan by @dependabot in #632
- github-actions(deps): bump peter-evans/create-pull-request from 4 to 5 by @dependabot in #634
- composer(deps): bump friendsofphp/php-cs-fixer from 3.15.1 to 3.16.0 in /vendor-bin/php-cs-fixer by @dependabot in #635
- composer(deps): bump phpstan/extension-installer from 1.2.0 to 1.3.0 in /vendor-bin/phpstan by @dependabot in #633
- composer(deps): bump rector/rector from 0.15.23 to 0.15.25 in /vendor-bin/rector by @dependabot in #636
- Fix: DocBlock by @localheinz in #631
- Fix: Disable
findUnusedCodeoption by @localheinz in #637 - fix name by @etchfoda in #641
- Fix: Clean up
randomElements()andrandomElement()by @localheinz in #639 - Fix: Do not configure deprecated
bracesfixer by @localheinz in #638 - Fix: Reject invalid arguments by @localheinz in #642
- allows passing an
enumtorandomElement()orrandomElements()by @cosmastech in #620 - composer(deps): bump phpstan/phpstan from 1.10.14 to 1.10.15 in /vendor-bin/phpstan by @dependabot in #646
- composer(deps): bump vimeo/psalm from 5.9.0 to 5.11.0 in /vendor-bin/psalm by @dependabot in #647
- composer(deps): bump rector/rector from 0.15.25 to 0.16.0 in /vendor-bin/rector by @dependabot in #648
- Fix: Update
CHANGELOG.mdby @localheinz in #628
New Contributors
- @pierredup made their first contribution in #577
- @DvDty made their first contribution in #579
- @janlanger made their first contribution in #591
- @Joas707 made their first contribution in #584
- @havekes made their first contribution in #602
- @jefhar made their first contribution in #607
- @KentarouTakeda made their first contribution in #605
- @etchfoda made their first contribution in #641
- @cosmastech made their first contribution in #620
Full Changelog: v1.21.0...v1.22.0
Release notes
Open source →- Fixed
randomElements()to accept empty iterator (#605) - Added support for passing an
EnumtorandomElement()andrandomElements()(#620) - Started rejecting invalid arguments passed to
randomElement()andrandomElements()(#642)
- Remove invalid config reference in
-
v1.21.013 Dec 2022Release notes
Open source →Release notes
Open source →- Dropped support for PHP 7.1, 7.2, and 7.3 (#543)
- Added support for PHP 8.2 (#528)
-
v1.20.020 Jul 2022Release notes
Open source →- Fixed typo in French phone number (#452)
- Fixed some Hungarian naming bugs (#451)
- Fixed bug where the NL-BE VAT generation was incorrect (#455)
- Improve Turkish phone numbers for E164 and added landline support (#460)
- Add Microsoft Edge User Agent (#464)
- Added option to set image formats on Faker\Provider\Image (#473)
- Added support for French color translations (#466)
- Support filtering timezones by country code (#480)
- Fixed typo in some greek names (#490)
- Marked the Faker\Provider\Image as deprecated
Release notes
Open source →- Fixed typo in French phone number (#452)
- Fixed some Hungarian naming bugs (#451)
- Fixed bug where the NL-BE VAT generation was incorrect (#455)
- Improve Turkish phone numbers for E164 and added landline support (#460)
- Add Microsoft Edge User Agent (#464)
- Added option to set image formats on Faker\Provider\Image (#473)
- Added support for French color translations (#466)
- Support filtering timezones by country code (#480)
- Fixed typo in some greek names (#490)
- Marked the Faker\Provider\Image as deprecated
-
v1.19.002 Feb 2022Release notes
Open source →- Added color extension to core (#442)
- Added conflict with
doctrine/persistencebelow version1.4 - Fix for support on different Doctrine ORM versions (#414)
- Fix usage of
Doctrine\Persistencedependency - Fix CZ Person birthNumber docblock return type (#437)
- Fix is_IS Person docbock types (#439)
- Fix is_IS Address docbock type (#438)
- Fix regexify escape backslash in character class (#434)
- Removed UUID from Generator to be able to extend it (#441)
Release notes
Open source →- Added color extension to core (#442)
- Added conflict with
doctrine/persistencebelow version1.4 - Fix for support on different Doctrine ORM versions (#414)
- Fix usage of
Doctrine\Persistencedependency - Fix CZ Person birthNumber docblock return type (#437)
- Fix is_IS Person docbock types (#439)
- Fix is_IS Address docbock type (#438)
- Fix regexify escape backslash in character class (#434)
- Removed UUID from Generator to be able to extend it (#441)
-
v1.18.023 Jan 2022Release notes
Open source →- Deprecated UUID, use uuid3 to specify version (#427)
- Reset formatters when adding a new provider (#366)
- Helper methods to use our custom generators (#155)
- Set allow-plugins for Composer 2.2 (#405)
- Fix kk_KZ\Person::individualIdentificationNumber generation (#411)
- Allow for -> syntax to be used in parsing (#423)
- Person->name was missing string return type (#424)
- Generate a valid BE TAX number (#415)
- Added the UUID extension to Core (#427)
Release notes
Open source →- Deprecated UUID, use uuid3 to specify version (#427)
- Reset formatters when adding a new provider (#366)
- Helper methods to use our custom generators (#155)
- Set allow-plugins for Composer 2.2 (#405)
- Fix kk_KZ\Person::individualIdentificationNumber generation (#411)
- Allow for -> syntax to be used in parsing (#423)
- Person->name was missing string return type (#424)
- Generate a valid BE TAX number (#415)
- Added the UUID extension to Core (#427)
-
v1.17.005 Dec 2021Release notes
Open source →- Partial PHP 8.1 compatibility (#373)
- Add payment provider for
ne_NPlocale (#375) - Add Egyptian Arabic
ar_EGlocale (#377) - Updated list of South African TLDs (#383)
- Fixed formatting of E.164 numbers (#380)
- Allow
symfony/deprecation-contracts^3.0(#397)
-
v1.16.006 Sep 2021Release notes
Open source →- Add Company extension
- Add Address extension
- Add Person extension
- Add PhoneNumber extension
- Add VersionExtension (#350)
- Stricter types in Extension\Container and Extension\GeneratorAwareExtension (#345)
- Fix deprecated property access in
nl_NL(#348) - Add support for
psr/container>= 2.0 (#354) - Add missing union types in Faker\Generator (#352)
-
v1.15.006 Jul 2021Release notes
Open source →- Updated the generator phpdoc to help identify magic methods (#307)
- Prevent direct access and triggered deprecation warning for "word" (#302)
- Updated length on all global e164 numbers (#301)
- Updated last names from different source (#312)
- Don't generate birth number of '000' for Swedish personal identity (#306)
- Add job list for localization id_ID (#339)
-
v1.14.130 Mar 2021Release notes
Open source →- Fix where randomNumber and randomFloat would return a 0 value (#291 / #292)
-
v1.14.029 Mar 2021Release notes
Open source →-
Fix for realText to ensure the text keeps closer to its boundaries (#152)
-
Fix where regexify produces a random character instead of a literal dot (#135
-
Deprecate zh_TW methods that only call base methods (#122)
-
Add used extensions to composer.json as suggestion (#120)
-
Moved TCNo and INN from calculator to localized providers (#108)
-
Fix regex dot/backslash issue where a dot is replaced with a backslash as escape character (#206)
-
Deprecate direct property access (#164)
-
Added test to assert unique() behaviour (#233)
-
Added RUC for the es_PE locale (#244)
-
Test IBAN formats for Latin America (AR/PE/VE) (#260)
-
Added VAT number for en_GB (#255)
-
Added new districts for the ne_NP locale (#258)
-
Fix for U.S. Area Code Generation (#261)
-
Fix in numerify where a better random numeric value is guaranteed (#256)
-
Fix e164PhoneNumber to only generate valid phone numbers with valid country codes (#264)
-
Extract fixtures into separate classes (#234)
-
Remove french domains that no longer exists (#277)
-
Fix error that occurs when getting a polish title (#279)
-
Use valid area codes for North America E164 phone numbers (#280)
-
Adding support for extensions and PSR-11 (#154)
-
Adding trait for GeneratorAwareExtension (#165)
-
Added helper class for extension (#162)
-
Added blood extension to core (#232)
-
Added barcode extension to core (#252)
-
Added number extension (#257)
-
Various code style updates
-
Added a note about our breaking change promise (#273)
-
-
v1.13.018 Dec 2020Release notes
Open source →Several fixes and new additions in this release. A lot of cleanup has been done on the codebase on both tests and consistency.
- Feature/pl pl license plate (#62)
- Fix greek phone numbers (#16)
- Move AT payment provider logic to de_AT (#72)
- Fix wiktionary links (#73)
- Fix AT person links (#74)
- Fix AT cities (#75)
- Deprecate at_AT providers (#78)
- Add Austrian
ssn()toPersonprovider (#79) - Fix typos in id_ID Address (#83)
- Austrian post codes (#86)
- Updated Polish data (#70)
- Improve Austrian social security number generation (#88)
- Move US phone numbers with extension to own method (#91)
- Add UK National Insurance number generator (#89)
- Fix en_SG phone number generator (#100)
- Remove usage of mt_rand (#87)
- Remove whitespace from beginning of el_GR phone numbers (#105)
- Building numbers can not be 0, 00, 000 (#107)
- Add 172.16/12 local IPv4 block (#121)
- Add JCB credit card type (#124)
- Remove json_decode from emoji generation (#123)
- Remove ro street address (#146)
-
v1.12.111 Dec 2020Release notes
Open source →This is a security release that prevents a hacker to execute code on the server.
-
v1.12.023 Nov 2020Release notes
Open source →- Fix ro_RO first and last day of year calculation offset (#65)
- Fix en_NG locale test namespaces that did not match PSR-4 (#57)
- Added Singapore NRIC/FIN provider (#56)
- Added provider for Lithuanian municipalities (#58)
- Added blood types provider (#61)
-
1.11.328 Oct 2020Nothing published for this version
-
1.11.228 Oct 2020Nothing published for this version
-
1.11.128 Oct 2020Nothing published for this version
-
v1.11.015 Nov 2020Release notes
Open source →- Added Provider for Swedish Municipalities
- Updates to person names in pt_BR
- Many code style changes
-
v1.10.128 Oct 2020Release notes
Open source →- Updates the Danish addresses in dk_DK
- Removed offense company names in nl_NL
- Clarify changelog with original fork
- Standin replacement for LoremPixel to Placeholder.com (#11)
-
v1.10.027 Oct 2020Release notes
Open source →- Support PHP 7.1-8.0
- Fix typo in de_DE Company Provider
- Fix dateTimeThisYear method
- Fix typo in de_DE jobTitleFormat
- Fix IBAN generation for CR
- Fix typos in greek first names
- Fix US job title typo
- Do not clear entity manager for doctrine orm populator
- Remove persian rude words
- Corrections to RU names
-
v1.9.211 Dec 2020Nothing published for this version
-
v1.9.127 Oct 2020 -
v1.9.014 Nov 2019Nothing published for this version
-
v1.8.012 Jul 2018Nothing published for this version
-
v1.7.115 Aug 2017Nothing published for this version
-
v1.7.015 Aug 2017Nothing published for this version
-
v1.5.029 May 2015Nothing published for this version
-
v1.4.004 Jun 2014Nothing published for this version
-
v1.3.016 Dec 2013Nothing published for this version
-
v1.2.009 Jun 2013Nothing published for this version
-
v1.1.029 Oct 2012Nothing published for this version
-
v1.0.010 Jul 2012Nothing published for this version