2017 © Pedro PelĂĄez
 

library envext

Debugging tools based on symfony VarDumper Component to install locally on dev machine

image

stopsopa/envext

Debugging tools based on symfony VarDumper Component to install locally on dev machine

  • Tuesday, July 4, 2017
  • by stopsopa
  • Repository
  • 1 Watchers
  • 0 Stars
  • 51 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Deprecated because now it is implemented natively in xdebug and in symfony/var-dumper symfony module.

Latest Stable Version, (*1)

Inspiration

Annotation from VarDumper Component documentation link :, (*2)

ScreenShot, (*3)

For God's sake, why this library?

Normal dump() function prints variable, but usually it's not enough. Line of execution function dump() is sometimes even more usefull information, especially when You debug something by placing more then one dump() in code and later wants to get rid all of them., (*4)

Example:, (*5)

ScreenShot, (*6)

Usage

This library provides two functions "d()" and "dd()":, (*7)

  • function d() prints data and terminate script by die()
  • function dd() prints data and allows script to continue

Installation without including to project

sudo -i

cd /bin

composer require stopsopa/envext:dev-master

add to php.ini (http and cli mode) (/etc/php.ini for centos):, (*8)

auto_prepend_file = /bin/vendor/autoload.php  

setup nginx (usually somewhere in /etc/nginx/sites-enabled/default.conf) ..., (*9)

location ~ \.php$ {
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index app.php;
    include fastcgi_params;
    fastcgi_intercept_errors on;
    fastcgi_param PHP_VALUE "auto_prepend_file = /bin/vendor/autoload.php";
}

.. or setup apache2, (*10)

<Directory />
    AllowOverride none
    Require all denied
    Php_value auto_prepend_file /bin/vendor/autoload.php
</Directory>

restart nginx/apache (... or other http server), (*11)

centos, (*12)

/etc/init.d/nginx restart
sudo apachectl restart

ubuntu, (*13)

sudo service nginx restart
sudo service apache2 restart

Test

cli, (*14)

echo '<?php dd("one");d("stop here");d("should t see this");' > test.php && php test.php && rm test.php

web, (*15)

echo '<?php dd("one");d("stop here");d("should t see this");' > test.php

... and call from web, then remove test.php, (*16)

The Versions

04/07 2017

dev-master

9999999-dev

Debugging tools based on symfony VarDumper Component to install locally on dev machine

  Sources   Download

MIT

The Requires

 

by Szymon DziaƂowski

10/12 2016

dev-legacy_env

dev-legacy_env

Debugging tools based on symfony VarDumper Component to install locally on dev machine

  Sources   Download

MIT

The Requires

 

by Szymon DziaƂowski

26/10 2016

v1.0.4

1.0.4.0

Debugging tools based on symfony VarDumper Component to install locally on dev machine

  Sources   Download

MIT

The Requires

 

by Szymon DziaƂowski

12/10 2016

v1.0.3

1.0.3.0

Debugging tools based on symfony VarDumper Component to install locally on dev machine

  Sources   Download

MIT

The Requires

 

by Szymon DziaƂowski

11/10 2016

v1.0.2

1.0.2.0

Debugging tools based on symfony VarDumper Component to install locally on dev machine

  Sources   Download

MIT

The Requires

 

by Szymon DziaƂowski

06/10 2016

v1.0.1

1.0.1.0

Debugging tools based on symfony VarDumper Component to install locally on dev machine

  Sources   Download

MIT

The Requires

 

by Szymon DziaƂowski

08/09 2016

1.0.0

1.0.0.0

Debugging tools based on symfony VarDumper Component to install locally on dev machine

  Sources   Download

MIT

The Requires

 

by Szymon DziaƂowski