Skip to content

Instantly share code, notes, and snippets.

View paulinevos's full-sized avatar
🍸
chillin

Pauline Vos paulinevos

🍸
chillin
View GitHub Profile
FROM php:7.4.15
RUN apt-get -y update && apt-get -y upgrade
RUN apt-get -y install git libzip-dev zip
RUN docker-php-ext-configure zip
RUN docker-php-ext-install zip
RUN php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php && php composer-setup.php && php -r "unlink('composer-setup.php');" && mv composer.phar /usr/local/bin/composer
WORKDIR /app
COPY . .
RUN composer install
CMD ["php", "run.php"]
@paulinevos
paulinevos / BinaryUuid.php
Created February 21, 2019 10:23
Doctrine Binary UUID type
<?php
declare(strict_types=1);
namespace Entity\Id;
use Ramsey\Uuid\Exception\InvalidUuidStringException;
use Ramsey\Uuid\Uuid;
use Entity\Id\Exception\InvalidIdException;