This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.16 | |
LABEL maintainer="rodrigopa <[email protected]>" version="1.0" license="MIT" | |
ENV TIMEZONE=${timezone:-"America/Fortaleza"} \ | |
APP_ENV=prod | |
RUN set -ex && apk update && apk add --no-cache ca-certificates curl wget tar xz tzdata pcre php81 php81-bcmath php81-curl php81-ctype php81-dom php81-fileinfo php81-gd php81-iconv php81-mbstring php81-mysqlnd php81-openssl php81-pdo php81-pdo_mysql php81-pdo_sqlite php81-phar php81-posix php81-redis php81-sockets php81-sodium php81-sysvshm php81-sysvmsg php81-sysvsem php81-simplexml php81-tokenizer php81-zip php81-zlib php81-xml php81-xmlreader php81-xmlwriter php81-pcntl php81-opcache && ln -sf /usr/bin/php81 /usr/bin/php && apk del --purge *-dev && rm -rf /var/cache/apk/* /tmp/* /usr/share/man /usr/share/php81 && php -v && php -m && echo -e "\033[42;37m B |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Dot notation for access multidimensional arrays. | |
* | |
* $dn = new DotNotation(['bar'=>['baz'=>['foo'=>true]]]); | |
* | |
* $value = $dn->get('bar.baz.foo'); // $value == true | |
* | |
* $dn->set('bar.baz.foo', false); // ['foo'=>false] | |
* |