PHP code example of rohit-raj-verma / pimcore-validation-bundle

1. Go to this page and download the library: Download rohit-raj-verma/pimcore-validation-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rohit-raj-verma / pimcore-validation-bundle example snippets


return [
    // ...
    PimcoreValidationBundle\PimcoreValidationBundle::class => ['all' => true],
];

Format: Regex
Regex: ^[A-Z]{3}-[0-9]{4}$
Error message: Product code must match format XXX-0000