Download the PHP package stopsopa/envext without Composer

On this page you can find all versions of the php package stopsopa/envext. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package envext

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

Latest Stable Version

Inspiration

Annotation from VarDumper Component documentation link :

ScreenShot

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.

Example:

ScreenShot

Usage

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

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):

auto_prepend_file = /bin/vendor/autoload.php  

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

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

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

restart nginx/apache (... or other http server)

centos

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

ubuntu

sudo service nginx restart
sudo service apache2 restart

Test

cli

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

web

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

... and call from web, then remove test.php


All versions of envext with dependencies

PHP Build Version
Package Version
Requires symfony/var-dumper Version ^3.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package stopsopa/envext contains the following files

Loading the files please wait ....