Faker can be used whenever a database or text container needs to be filled with sample/filler content.
These types of situations are a common sight during the development and testing phases of a project, and most of the times they reveal problems with the layout or with data processing operations.
By default, most of the generated data is in English, but a few other languages are supported as well.
Can generate filler content like:
Addresses
Street names
Cities
States
State abbreviations
Zip codes
Postal codes
Countries
Names
First names
Last names
Usernames
Domain names
Domain suffixes
IPv4 addresses
Phone numbers
Catch phrases
Time stamps
Dates
Time data
Month names
Month name abbreviations
Week day names
Week day name abbreviations
Emails
What is new in this release:
- Added ability to print custom text on the images fetched by the Image provider
- Fixed typos in Preuvian (es_PE) Person provider
- Added instructions for installing with composer to readme.md
- Added Kazakh (kk_KZ) locale
- Added Korean (ko_KR) locale
- Fixed file provider to ignore unreadable and special files
- Fixed Dutch (nl_NL) Address and Person providers
- Fixed image() formatter to make it work with temp dir of any (decent) OS
- Added Persian (fa_IR) locale
- Added Currency Code formatter
- Added VAT number to Belgium (be_BE) Payment provider
- Fixed imageUrl formatter bug where it would always return the same image
- Added more Indonesian (id_ID) providers
- Added Indonesian (id_ID) locale
- Fixed unique generator performance
- Added transliterator to email and username
- Added Hungarian (hu_HU) Text provider
- Fixed CakePHP Entity Popolator (some cases where no entities prev. inserted)
- Added Color and DateTime Turkish (tr_TR) Providers
- Added Latvian (lv_LV) personalIdentityNumber formatter
- Added VAT number to Austrian (at_AT) Payment provider
- Fixed missing @return phpDoc in Payment provider
- Added SWIFT/BIC payment type formatter to the Payment provider
- Fixed small typo in Base provider exception
- Added Georgian (ka_Ge) locale
- Added PSR-4 Autoloading
- Added Uganda (en_UG) locale
- Added regexify formatter, generating a random string based on a regular expression
- Added shuffle formatter, to shuffle an array or a string
- Added ISBN-10 & ISBN-13 codes formatters to Barcode provider
- Fixed Russian (ru_RU) middle names (different for different genders)
- Fixed Ukranian (uk_UA) Person provider
- Added Vietnamese (vi_VN) locale
- Added type hint to the Documentor constructor
- Fixed Russian (ru_RU) Person provider (joined names)
- Added English (en_GB) mobileNumber methods
- Added Traditional Chinese (zh_TW) Realtext provider
- Fixed first name in Spanish for Argentina (es_AR)
What is new in version 1.4.1:
- Fixed typo in Slovak person names
- Added tests for uk_UA providers
- Fixed numerify() performance by making it 30% faster
- Added strict option to randomNumber to force number of digits
- Fixed randomNumber usage duplicating numberBetween
- Fixed address provider for latvian language
- Added Czech Republic (cs_CZ) address, company, datetime and text providers
- Fixed da_DK Person provider data containing an 'unnamed' person
- Added slug provider
- Fixed IDE insights for new local IP and MAC address providers
- Added firstname gender method to all Person providers
- Fixed tr_TR email service, city name, person, and phone number formats
- Fixed US_en state list
- Fixed en_US address provider so state abbr are ISO 3166 codes
- Added local IP and MAC address providers
- Fixed typo in century list affecting the century provider
- Added default value to optional modifier
- Fixed Portuguese phonenumbers have 9 digits
- Added fileCopy to File provider to simulate file upload
- Added pt_PT providers
- Fixed dead code in text provider
- Fixed IDE insights for magic properties
What is new in version 1.3.0:
- Fixed state generator in Australian (en_AU) provider
- Fixed IDE insights for locale specific providers
- Added English (South Africa) (en_ZA) person, address, Internet and phone number providers
- Fixed integer values overflowing on signed INTEGER columns on Doctrine populator
- Fixed spelling error in French (fr_FR) address provider
- Added improvements based on SensioLabsInsights analysis
- Fixed Italian (it_IT) email provider
- Added Spanish (es_ES) Internet provider
- Added English Philippines (en_PH) address provider
- Added Brazilian (pt_BR) email provider data
- Fixed UK country code
- Added Peruvian (es_PE) person, address, phone number, and company providers
- Added Ukrainian (uk_UA) color provider
- Fixed Ukrainian (uk_UA) namespace and email translitteration
- Added Romanian (Moldova) (ro_MD) person, address, and phone number providers
- Added IBAN generator for every currently known locale that uses it
- Added Image generation powered by LoremPixel
What is new in version 1.2.0:
- Added new provider for fr_BE locale
- Updated locale provider to use a static locale list
- Fixed invalid UTF-8 sequence in domain provider with the Bulgarian provider
- Fixed the nl_NL Person provider
- Removed all requires and added the autoload definition to composer
- Fixed encoding problems in nl_NL Address provider
- Added icelandic provider (is_IS)
- Added en_CA address and phone numbers
- Updated safeEmail provider to be really safe
- Documented alternative randomNumber usage
- Added basic file provider
- Fixed use of fourth argument on Doctrine addEntity
- Added nl_BE provider
- Added Random Float provider
- Fixed bug in Faker\ORM\Doctrine\Populator
- Updated ru_RU provider
- Added safe email domain provider
- Fixed latitude provider
- Fixed unpredictability of fake data generated by Faker\Provider\Base::numberBetween()
- Added uuid provider
- Added possibility to call methods on Doctrine entities, possibility to generate unique id
- Fixed prefixes typos in 'pl_PL' Person provider
- Added more fake data to the Ukraininan providers
- Added more fake data to the Italian providers
- Fixed spaces appearing in generated emails
- Added Armenian (hy_AM) provider
- Added Generation of valid SIREN & SIRET codes to French providers
- Added Dutch (nl_NL) provider
- Fixed missing typehint in Base::__construct()
- Fixed typo in README
- Added Ukrainian (ua_UA) provider
- Added Turkish (tr_TR) Provider
- Fixed executable bit in some PHP files
- Added Brazilian Portuguese (pt_BR) provider
- Added Spanish (es_ES) provider
- Fixed Doctrine populator to allow for the population of entity data that has associations to other entities
- Added Danish (da_DK) providers
What is new in version 1.1.0:
- Added random number generator between a and b, simply like rand().
- Fixed spaces in generated emails.
- Fixed Person provider in Russian locale.
- Added new UserAgent provider.
- Added locale generator to Miscellaneous provider.
- Added timezone generator to DateTime provider.
- Added new generators to French Address providers (departments, regions).
- Added new generators to French Company provider (catch phrase, SIREN, and SIRET numbers).
- Added state generator to German Address provider.
- Added Slovak provider.
- Added latitude and longitude formatters to Address provider.
- Added Serbian provider.
Requirements:
- PHP 5.3.3 or higher
Comentariile nu a fost găsit