PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / 2.8.6
Kubio AI Page Builder v2.8.6
2.9.0 2.8.6 2.8.5 2.8.4 2.8.3 2.8.2 2.8.1 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.9.0 2.0.0 2.1.1 2.1.2 2.1.3 2.2.0 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.4.3 2.4.5 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.6.2 2.6.3 2.6.5 2.6.6 2.6.7 2.7.0 2.7.1 2.7.2 2.7.3 2.8.0
kubio / vendor / fzaninotto / faker / src / Faker / Provider / fr_FR / Payment.php
kubio / vendor / fzaninotto / faker / src / Faker / Provider / fr_FR Last commit date
Address.php 1 year ago Company.php 1 year ago Internet.php 1 year ago Payment.php 1 year ago Person.php 1 year ago PhoneNumber.php 1 year ago Text.php 1 year ago
Payment.php
45 lines
1 <?php
2
3 namespace Faker\Provider\fr_FR;
4
5 class Payment extends \Faker\Provider\Payment
6 {
7 /**
8 * Value Added Tax (VAT)
9 *
10 * @example 'FR12123456789', ('spaced') 'FR 12 123 456 789'
11 *
12 * @see http://ec.europa.eu/taxation_customs/vies/faq.html?locale=en#item_11
13 * @see http://www.iecomputersystems.com/ordering/eu_vat_numbers.htm
14 * @see http://en.wikipedia.org/wiki/VAT_identification_number
15 *
16 * @param bool $spacedNationalPrefix
17 *
18 * @return string VAT Number
19 */
20 public function vat($spacedNationalPrefix = true)
21 {
22 $siren = Company::siren(false);
23 $key = (12 + 3 * ($siren % 97)) % 97;
24 $pattern = "%s%'.02d%s";
25 if ($spacedNationalPrefix) {
26 $siren = trim(chunk_split($siren, 3, ' '));
27 $pattern = "%s %'.02d %s";
28 }
29 return sprintf($pattern, 'FR', $key, $siren);
30 }
31
32 /**
33 * International Bank Account Number (IBAN)
34 * @link http://en.wikipedia.org/wiki/International_Bank_Account_Number
35 * @param string $prefix for generating bank account number of a specific bank
36 * @param string $countryCode ISO 3166-1 alpha-2 country code
37 * @param integer $length total length without country code and 2 check digits
38 * @return string
39 */
40 public static function bankAccountNumber($prefix = '', $countryCode = 'FR', $length = null)
41 {
42 return static::iban($countryCode, $prefix, $length);
43 }
44 }
45