Skip to content

Instantly share code, notes, and snippets.

View ponich's full-sized avatar
🤡
be happy

Mykola Ponych ponich

🤡
be happy
View GitHub Profile
@ponich
ponich / dump_helper.php
Created May 23, 2018 14:51 — forked from accentinteractive/dump_helper.php
dump_helper: functions to dump variables to the screen, in a nicley formatted manner
<?php
/**
* Dump helper. Functions to dump variables to the screen, in a nicley formatted manner.
* @author Joost van Veen
* @version 1.0
*/
if (!function_exists('dump')) {
function dump ($var, $label = 'Dump', $echo = TRUE)
{
// Store dump in variable
@ponich
ponich / PHPSTORM XDEBUG ubuntu NGINX php7.2-fpm
Created October 28, 2019 23:51 — forked from me7media/PHPSTORM XDEBUG ubuntu NGINX php7.2-fpm
PHPSTORM XDEBUG ubuntu NGINX php7.2-fpm
sudo apt install php7.2-xdebug
sudo find / -name 'xdebug.so'
sudo gedit /etc/php/7.2/fpm/php.ini
sudo gedit /etc/php/7.2/cli/php.ini
sudo gedit /etc/php/7.2/cli/conf.d/20-xdebug.ini
[Xdebug]
; путь к файлу so, который мы временно сохаринили на шаге раньше
zend_extension=/usr/lib/php/20170718/xdebug.so
; остальные обязательные параметры
xdebug.profiler_enable_trigger=1