Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laminas Validator Laravel Package

laminas/laminas-validator

Validation component for PHP and Laminas applications. Provides a wide range of ready-to-use validators (strings, numbers, dates, files, and more), consistent error messages, and an extensible API to create custom validators and input filtering rules.

View on GitHub
Deep Wiki
Context7

BIC Validator

Laminas\Validator\BusinessIdentifierCode validates if a given value could be a "Business Identifier Code" (BIC) as defined by ISO 9362. A BIC is a unique identification code for financial and non-financial institutions.

Supported Options

There are no additional supported options for the BusinessIdentifierCode validator.

BIC validation

BICs should be a string which length should be equal to 8 or 11.

  • The 4 first characters can only be letters and it is used to identify a bank or an institution.

  • The following 2 characters can only be letters too and it should be a country code assigned within ISO 3166-1 alpha-2. The only exception is the code 'XK' used for the Republic of Kosovo.

  • The following 2 characters can be letters or digits. It is used to represent a location (like a city)

  • The last 3 characters are optional and can be letters or digits, generally to represent a branch office. The code 'XXX' is often used to represent the AIN office when the 11 character code is used.

Basic Usage

$validator = new Laminas\Validator\BusinessIdentifierCode();

if ($validator->isValid('DEUTDEFF')) {
    // bic appears to be valid
} else {
    // bic is invalid; print the reasons
}
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata