Bin e padrões para validação de cartão de crédito.
| Bandeira | Começa com | Máximo de número | Máximo de número cvc |
|---|---|---|---|
| Visa | 4 | 13,16 | 3 |
| Mastercard | 5 | 16 | 3 |
| FROM php:7.1-fpm-alpine | |
| RUN apk add --update \ | |
| autoconf \ | |
| g++ \ | |
| libtool \ | |
| make \ | |
| && docker-php-ext-install mbstring \ | |
| && docker-php-ext-install mysqli \ |
| <?php | |
| if (!function_exists('interface_exists')) { | |
| die('PHP version too old'); | |
| } | |
| $throwables = listThrowableClasses(); | |
| $throwablesPerParent = splitInParents($throwables); | |
| printTree($throwablesPerParent); | |
| if (count($throwablesPerParent) !== 0) { | |
| die('ERROR!!!'); |
| <?php | |
| /** | |
| * Super-simple AWS CloudFront Invalidation Script | |
| * Modified by Steve Jenkins <steve stevejenkins com> to invalidate a single file via URL. | |
| * | |
| * Steps: | |
| * 1. Set your AWS Access Key | |
| * 2. Set your AWS Secret Key | |
| * 3. Set your CloudFront Distribution ID (or pass one via the URL with &dist) | |
| * 4. Put cf-invalidate.php in a web accessible and password protected directory |