Skip to content

2.0.0-beta

Pre-release
Pre-release

Choose a tag to compare

@pelmered pelmered released this 06 May 21:45
f9c311b

This release includes a refactor of the code where things has been been broken up into more classes for a more logical structure and to aid extensibility.

New features:

  1. Use your own data provider or your own data object. See readme for information.

Breaking changes:

  1. Now requires PHP 8.1+ (previously 7.3+)
  2. The provider name has changed from Fakecar to FakeCar. This will cause problems if you are on a case-sensitive filesystem, but it is strongly recommended to change this even if you are not.
  3. The methods transliterate and checkDigit on the FakeCar provider class are now no longer publicly available (Visibility changed to private).
  4. The public methods getRandomElementsFromArray and getWeighted on the FakeCar provider class has been moved to a helper class. Access them like this: \Faker\Provider\FakeCarHelper::getWeighted()
  5. The constants EBCDIC and MODELYEAR are no longer public.

3, 4 and 5 are changes to limited to undocumented features of the public API and should therefore not affect the typical use cases of this package.