{"id":15732376,"url":"https://github.com/stopsopa/envext","last_synced_at":"2025-03-31T03:41:37.409Z","repository":{"id":57060186,"uuid":"67602925","full_name":"stopsopa/envext","owner":"stopsopa","description":"Now similar user experience is implemented natively","archived":false,"fork":false,"pushed_at":"2017-07-04T08:45:46.000Z","size":28,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T07:27:05.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stopsopa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-07T12:04:43.000Z","updated_at":"2018-04-01T21:16:33.000Z","dependencies_parsed_at":"2022-08-24T07:30:41.952Z","dependency_job_id":null,"html_url":"https://github.com/stopsopa/envext","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stopsopa%2Fenvext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stopsopa%2Fenvext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stopsopa%2Fenvext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stopsopa%2Fenvext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stopsopa","download_url":"https://codeload.github.com/stopsopa/envext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413230,"owners_count":20773053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-04T00:09:07.831Z","updated_at":"2025-03-31T03:41:37.394Z","avatar_url":"https://github.com/stopsopa.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nDeprecated because now it is implemented natively in xdebug and in symfony/var-dumper symfony module.\n===\n\n[![Latest Stable Version](https://poser.pugx.org/stopsopa/envext/v/stable)](https://packagist.org/packages/stopsopa/envext)\n\nInspiration\n===\n\nAnnotation from VarDumper Component documentation [link](http://symfony.com/doc/current/components/var_dumper.html) :\n\n![ScreenShot](https://raw.githubusercontent.com/stopsopa/envext/master/inspiration.bmp)\n\n\nFor God's sake, why this library?\n===\nNormal 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.\n\nExample:\n\n![ScreenShot](https://raw.githubusercontent.com/stopsopa/envext/master/web.bmp)\n\nUsage \n===\n\nThis library provides two functions \"d()\" and \"dd()\":\n\n* function d() prints data and terminate script by die()\n* function dd() prints data and allows script to continue\n\nInstallation without including to project\n===\n\n    sudo -i\n    \n    cd /bin\n    \n    composer require stopsopa/envext:dev-master\n    \nadd to php.ini (http and cli mode) (/etc/php.ini for centos):    \n    \n    auto_prepend_file = /bin/vendor/autoload.php  \n    \nsetup nginx (usually somewhere in /etc/nginx/sites-enabled/default.conf) ...\n \n    location ~ \\.php$ {\n        fastcgi_pass unix:/var/run/php5-fpm.sock;\n        fastcgi_index app.php;\n        include fastcgi_params;\n        fastcgi_intercept_errors on;\n        fastcgi_param PHP_VALUE \"auto_prepend_file = /bin/vendor/autoload.php\";\n    }\n \n.. or setup apache2\n\n    \u003cDirectory /\u003e\n        AllowOverride none\n        Require all denied\n        Php_value auto_prepend_file /bin/vendor/autoload.php\n    \u003c/Directory\u003e\n    \nrestart nginx/apache (... or other http server)\n    \ncentos    \n  \n  \n    /etc/init.d/nginx restart\n    sudo apachectl restart\n     \nubuntu\n     \n     \n    sudo service nginx restart\n    sudo service apache2 restart\n\nTest\n===\n\ncli\n\n\n\n    echo '\u003c?php dd(\"one\");d(\"stop here\");d(\"should t see this\");' \u003e test.php \u0026\u0026 php test.php \u0026\u0026 rm test.php\n    \n    \nweb\n    \n    \n    echo '\u003c?php dd(\"one\");d(\"stop here\");d(\"should t see this\");' \u003e test.php\n    \n... and call from web, then remove test.php    \n    \n    \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstopsopa%2Fenvext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstopsopa%2Fenvext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstopsopa%2Fenvext/lists"}