Skip to content

Instantly share code, notes, and snippets.

ARG INSTALL_XDEBUG=true //instal?
ARG XDEBUG_REMOTE_HOST=dockerhost // linux 172.17.0.1
ARG XDEBUG_VERSION=2.7.2 //version for php
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
pecl install xdebug-${XDEBUG_VERSION} && docker-php-ext-enable xdebug \
&& echo "xdebug.remote_port=9000" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_autostart=1" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_connect_back=0" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.max_nesting_level=500" >> /usr/local/etc/php/conf.d/xdebug.ini \
@Arbagen
Arbagen / BulkInsertQuery.php
Created December 11, 2020 14:12 — forked from gskema/BulkInsertQuery.php
PHP PDO / Doctrine DBAL bulk insert query
<?php
namespace YourApp\Repository\Query;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Schema\Identifier;
/**
* Class BulkInsertQuery
*