glastree_on_gitea
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Provider\fr_BE;
|
||||
|
||||
class Address extends \Faker\Provider\fr_FR\Address
|
||||
{
|
||||
protected static $postcode = ['####'];
|
||||
|
||||
protected static $streetAddressFormats = [
|
||||
'{{streetName}} {{buildingNumber}}',
|
||||
];
|
||||
|
||||
protected static $streetNameFormats = ['{{streetSuffix}} {{lastName}}'];
|
||||
|
||||
protected static $cityFormats = ['{{cityName}}'];
|
||||
|
||||
protected static $addressFormats = [
|
||||
"{{streetAddress}}\n {{postcode}} {{city}}",
|
||||
];
|
||||
|
||||
protected static $streetSuffix = [
|
||||
'rue', 'avenue', 'boulevard', 'chemin', 'chaussée', 'impasse', 'place',
|
||||
];
|
||||
|
||||
/**
|
||||
* Source: http://fr.wikipedia.org/wiki/Ville_de_Belgique
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected static $cityNames = [
|
||||
'Aarschot', 'Alost', 'Andenne', 'Antoing', 'Anvers', 'Arlon', 'Ath', 'Audenarde', 'Bastogne', 'Beaumont', 'Beauraing', 'Beringen', 'Bilzen', 'Binche',
|
||||
'Blankenberge', 'Bouillon', 'Braine-le-Comte', 'Bree', 'Bruges', 'Bruxelles', 'Charleroi', 'Châtelet', 'Chièvres', 'Chimay', 'Chiny', 'Ciney', 'Comines-Warneton', 'Courtrai',
|
||||
'Couvin', 'Damme', 'Deinze', 'Diest', 'Dilsen-Stokkem', 'Dinant', 'Dixmude', 'Durbuy', 'Eeklo', 'Enghien', 'Eupen', 'Fleurus', 'Florenville', 'Fontaine-l\'Évêque', 'Fosses-la-Ville',
|
||||
'Furnes', 'Gand', 'Geel', 'Gembloux', 'Genappe', 'Genk', 'Gistel', 'Grammont', 'Hal', 'Halen', 'Hamont-Achel', 'Hannut', 'Harelbeke', 'Hasselt',
|
||||
'Herck-la-Ville', 'Herentals', 'Herstal', 'Herve', 'Hoogstraten', 'Houffalize', 'Huy', 'Izegem', 'Jodoigne', 'La Louvière', 'La Roche-en-Ardenne', 'Landen', 'Léau',
|
||||
'Le Rœulx', 'Lessines', 'Leuze-en-Hainaut', 'Liège', 'Lierre', 'Limbourg', 'Lokeren', 'Lommel', 'Looz', 'Lo-Reninge', 'Louvain', 'Maaseik', 'Malines',
|
||||
'Malmedy', 'Marche-en-Famenne', 'Menin', 'Messines', 'Mons', 'Montaigu-Zichem', 'Mortsel', 'Mouscron', 'Namur', 'Neufchâteau', 'Nieuport',
|
||||
'Ninove', 'Nivelles', 'Ostende', 'Ottignies-Louvain-la-Neuve', 'Oudenburg', 'Peer', 'Péruwelz', 'Philippeville', 'Poperinge', 'Renaix', 'Rochefort', 'Roulers',
|
||||
'Saint-Ghislain', 'Saint-Hubert', 'Saint-Nicolas', 'Saint-Trond', 'Saint-Vith', 'Seraing', 'Soignies', 'Stavelot', 'Termonde', 'Thuin',
|
||||
'Tielt', 'Tirlemont', 'Tongres', 'Torhout', 'Tournai', 'Turnhout', 'Verviers', 'Vilvorde', 'Virton', 'Visé', 'Walcourt', 'Waregem', 'Waremme', 'Wavre', 'Wervik',
|
||||
'Ypres', 'Zottegem',
|
||||
];
|
||||
|
||||
protected static $region = [
|
||||
'Wallonie', 'Flandre', 'Bruxelles-Capitale',
|
||||
];
|
||||
|
||||
protected static $province = [
|
||||
'Anvers', 'Limbourg', 'Flandre orientale', 'Brabant flamand', 'Flandre occidentale',
|
||||
'Hainaut', 'Liège', 'Luxembourg', 'Namur', 'Brabant wallon',
|
||||
];
|
||||
|
||||
/**
|
||||
* Randomly returns a belgian province.
|
||||
*
|
||||
* @example 'Hainaut'
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function province()
|
||||
{
|
||||
return static::randomElement(static::$province);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see parent
|
||||
*/
|
||||
public function cityName()
|
||||
{
|
||||
return static::randomElement(static::$cityNames);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Provider\fr_BE;
|
||||
|
||||
class Color extends \Faker\Provider\fr_FR\Color
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Provider\fr_BE;
|
||||
|
||||
class Company extends \Faker\Provider\fr_FR\Company
|
||||
{
|
||||
protected static $formats = [
|
||||
'{{lastName}} {{companySuffix}}',
|
||||
'{{lastName}}',
|
||||
];
|
||||
|
||||
protected static $companySuffix = ['ASBL', 'SCS', 'SNC', 'SPRL', 'Associations', 'Entreprise individuelle', 'GEIE', 'GIE', 'SA', 'SCA', 'SCRI', 'SCRL'];
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Provider\fr_BE;
|
||||
|
||||
class Internet extends \Faker\Provider\Internet
|
||||
{
|
||||
protected static $freeEmailDomain = ['gmail.com', 'hotmail.com', 'yahoo.com', 'advalvas.be'];
|
||||
protected static $tld = ['com', 'net', 'org', 'be'];
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Provider\fr_BE;
|
||||
|
||||
class Payment extends \Faker\Provider\Payment
|
||||
{
|
||||
/**
|
||||
* International Bank Account Number (IBAN)
|
||||
*
|
||||
* @see http://en.wikipedia.org/wiki/International_Bank_Account_Number
|
||||
*
|
||||
* @param string $prefix for generating bank account number of a specific bank
|
||||
* @param string $countryCode ISO 3166-1 alpha-2 country code
|
||||
* @param int $length total length without country code and 2 check digits
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function bankAccountNumber($prefix = '', $countryCode = 'BE', $length = null)
|
||||
{
|
||||
return static::iban($countryCode, $prefix, $length);
|
||||
}
|
||||
|
||||
/**
|
||||
* Value Added Tax (VAT)
|
||||
*
|
||||
* @example 'BE0123456789', ('spaced') 'BE 0123456789'
|
||||
*
|
||||
* @see http://ec.europa.eu/taxation_customs/vies/faq.html?locale=en#item_11
|
||||
* @see http://www.iecomputersystems.com/ordering/eu_vat_numbers.htm
|
||||
* @see http://en.wikipedia.org/wiki/VAT_identification_number
|
||||
*
|
||||
* @param bool $spacedNationalPrefix
|
||||
*
|
||||
* @return string VAT Number
|
||||
*/
|
||||
public static function vat($spacedNationalPrefix = true)
|
||||
{
|
||||
$prefix = $spacedNationalPrefix ? 'BE ' : 'BE';
|
||||
|
||||
return sprintf('%s0%d', $prefix, self::randomNumber(9, true));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Provider\fr_BE;
|
||||
|
||||
class Person extends \Faker\Provider\Person
|
||||
{
|
||||
protected static $firstNameMale = [
|
||||
'Aaron', 'Adam', 'Adrien', 'Alessio', 'Alexander', 'Alexandre', 'Antoine', 'Arne', 'Arthur', 'Axel', 'Ayoub', 'Baptiste', 'Benjamin',
|
||||
'Bo', 'Clément', 'Daan', 'David', 'Diego', 'Dylan', 'Elias', 'Emiel', 'Emile', 'Enzo', 'Ethan', 'Finn',
|
||||
'Florian', 'Gabriel', 'Gilles', 'Guillaume', 'Hamza', 'Hugo', 'Ilias', 'Janne', 'Jasper', 'Jelle', 'Jonas', 'Jules',
|
||||
'Julien', 'Kato', 'Lars', 'Leon', 'Liam', 'Louis', 'Loïc', 'Luca', 'Lucas', 'Lukas', 'Martin', 'Mathias',
|
||||
'Mathis', 'Mathéo', 'Mats', 'Matteo', 'Mauro', 'Maxim', 'Maxime', 'Mehdi', 'Milan', 'Mohamed', 'Mohammed', 'Nathan',
|
||||
'Nicolas', 'Niels', 'Noah', 'Nolan', 'Quinten', 'Raphaël', 'Rayan', 'Robbe', 'Romain', 'Ruben', 'Rune', 'Sacha',
|
||||
'Sam', 'Samuel', 'Sander', 'Simon', 'Stan', 'Thomas', 'Théo', 'Tibo', 'Tom', 'Tristan', 'Vic', 'Victor',
|
||||
'Vince', 'Wout', 'Xander', 'Yanis', 'Jarne', 'Lowie', 'Mathys', 'Senne', 'Seppe', 'Siebe', 'Tuur', 'Warre',
|
||||
];
|
||||
|
||||
protected static $firstNameFemale = [
|
||||
'Alexia', 'Alexis', 'Alice', 'Alicia', 'Alyssa', 'Amber', 'Amy', 'Amélie', 'Anaïs', 'Anna', 'Anouk', 'Axelle', 'Aya',
|
||||
'Camille', 'Charlotte', 'Chiara', 'Chloé', 'Clara', 'Clémence', 'Célia', 'Elena', 'Eline', 'Elisa', 'Elise', 'Ella',
|
||||
'Eloïse', 'Emilie', 'Emma', 'Estelle', 'Eva', 'Febe', 'Femke', 'Fien', 'Fleur', 'Giulia', 'Hajar', 'Hanne',
|
||||
'Helena', 'Ines', 'Inès', 'Jade', 'Jana', 'Jeanne', 'Julia', 'Julie', 'Juliette', 'Kaat', 'Kobe', 'Lana',
|
||||
'Lander', 'Lara', 'Laura', 'Laure', 'Lena', 'Lien', 'Lilou', 'Lily', 'Lina', 'Linde', 'Lisa', 'Lise',
|
||||
'Lola', 'Lore', 'Lotte', 'Louise', 'Lucie', 'Luna', 'Léa', 'Malak', 'Manon', 'Margaux', 'Margot', 'Marie',
|
||||
'Marion', 'Maya', 'Maëlle', 'Merel', 'Mila', 'Nina', 'Noa', 'Noor', 'Nora', 'Nore', 'Noé', 'Noémie',
|
||||
'Océane', 'Olivia', 'Pauline', 'Rania', 'Robin', 'Romane', 'Salma', 'Sara', 'Sarah', 'Sofia', 'Tess', 'Victoria',
|
||||
'Yana', 'Yasmine', 'Zoé', 'Zoë', 'Ferre', 'Roos',
|
||||
];
|
||||
|
||||
protected static $lastName = [
|
||||
'Adam', 'Aerts', 'Amrani', 'André', 'Antoine', 'Baert', 'Bah', 'Barry', 'Bastin', 'Bauwens', 'Benali', 'Bernard', 'Bertrand', 'Bodart', 'Bogaert', 'Bogaerts', 'Borremans', 'Bosmans',
|
||||
'Boulanger', 'Bourgeois', 'Brasseur', 'Carlier', 'Celik', 'Ceulemans', 'Charlier', 'Christiaens', 'Claes', 'Claessens', 'Claeys', 'Collard', 'Collignon', 'Collin', 'Cools', 'Coppens',
|
||||
'Cornelis', 'Cornet', 'Cuvelier', 'Daems', 'De Backer', 'De Clercq', 'De Cock', 'De Coninck', 'De Coster', 'De Greef', 'De Groote', 'De Meyer', 'De Pauw', 'De Ridder', 'De Smedt',
|
||||
'De Smet', 'De Vos', 'De Wilde', 'De Winter', 'Declercq', 'Delfosse', 'Delhaye', 'Delvaux', 'Demir', 'Denis', 'Deprez', 'Descamps', 'Desmedt', 'Desmet', 'Dethier', 'Devos', 'Diallo',
|
||||
'Dierckx', 'Dogan', 'Dubois', 'Dumont', 'Dupont', 'El Amrani', 'Etienne', 'Evrard', 'Fontaine', 'François', 'Geerts', 'Georges', 'Gérard', 'Gielen', 'Gilles', 'Gillet', 'Gilson',
|
||||
'Goethals', 'Goffin', 'Goossens', 'Grégoire', 'Guillaume', 'Hajji', 'Hardy', 'Hendrickx', 'Henry', 'Herman', 'Hermans', 'Heylen', 'Heymans', 'Hubert', 'Jacob', 'Jacobs', 'Jacques',
|
||||
'Jacquet', 'Jansen', 'Janssen', 'Janssens', 'Kaya', 'Lacroix', 'Lambert', 'Lambrechts', 'Laurent', 'Lauwers', 'Lebrun', 'Leclercq', 'Lecocq', 'Lecomte', 'Lefebvre', 'Lefèvre', 'Legrand',
|
||||
'Lejeune', 'Lemaire', 'Lemmens', 'Lenaerts', 'Léonard', 'Leroy', 'Libert', 'Lievens', 'Louis', 'Luyten', 'Maes', 'Mahieu', 'Marchal', 'Maréchal', 'Martens', 'Martin', 'Massart', 'Masson',
|
||||
'Mathieu', 'Meert', 'Mertens', 'Messaoudi', 'Meunier', 'Michaux', 'Michel', 'Michiels', 'Moens', 'Moreau', 'Nguyen', 'Nicolas', 'Nijs', 'Noël', 'Parmentier', 'Pauwels', 'Peeters', 'Petit',
|
||||
'Pierre', 'Pieters', 'Piette', 'Piron', 'Pirotte', 'Poncelet', 'Raes', 'Remy', 'Renard', 'Robert', 'Roels', 'Roland', 'Rousseau', 'Sahin', 'Saidi', 'Schmitz', 'Segers', 'Servais', 'Simon',
|
||||
'Simons', 'Smet', 'Smets', 'Somers', 'Stevens', 'Thijs', 'Thiry', 'Thomas', 'Thys', 'Timmermans', 'Toussaint', 'Tran', 'Urbain', 'Van Acker', 'Van Damme', 'Van de Velde', 'Van den Bossche',
|
||||
'Van den Broeck', 'Van Dyck', 'Van Hecke', 'Van Hoof', 'Vandamme', 'Vandenberghe', 'Verbeeck', 'Verbeke', 'Verbruggen', 'Vercammen', 'Verhaegen', 'Verhaeghe', 'Verhelst', 'Verheyen',
|
||||
'Verhoeven', 'Verlinden', 'Vermeersch', 'Vermeiren', 'Vermeulen', 'Verschueren', 'Verstraete', 'Verstraeten', 'Vervoort', 'Wauters', 'Willems', 'Wouters', 'Wuyts', 'Yildirim', 'Yilmaz',
|
||||
];
|
||||
|
||||
protected static $titleMale = ['M.', 'Dr.', 'Pr.', 'Me.', 'Mgr'];
|
||||
|
||||
protected static $titleFemale = ['Mme.', 'Mlle', 'Dr.', 'Pr.', 'Me.'];
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Provider\fr_BE;
|
||||
|
||||
class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
{
|
||||
protected static $formats = [
|
||||
'+32(0)########',
|
||||
'+32(0)### ######',
|
||||
'+32(0)# #######',
|
||||
'0#########',
|
||||
'0### ######',
|
||||
'0### ### ###',
|
||||
'0### ## ## ##',
|
||||
'0## ######',
|
||||
'0## ## ## ##',
|
||||
'0# #######',
|
||||
'0# ### ## ##',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user