Download the PHP package serendipity_hq/vardumper-cli-to-html without Composer

On this page you can find all versions of the php package serendipity_hq/vardumper-cli-to-html. 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 vardumper-cli-to-html

Serendipity HQ VarDumper F

Adds functions `dumpf()` and `ddf()` to [Symfony's VarDumper component](https://symfony.com/doc/current/components/var_dumper.html) that write the dump to a file.

Supports:

Tested with:

Current Status

Coverage Maintainability Rating Quality Gate Status Reliability Rating Security Rating Technical Debt Vulnerabilities

Phan PHPStan PSalm PHPUnit Composer PHP CS Fixer Rector


Do you like this library?
LEAVE A ★

or run
composer global require symfony/thanks && composer thanks
to say thank you to all libraries you use in your current project, this included!


Install VarDumper CLI to HTML via Composer

$ composer require serendipity_hq/component-var-dumper-f --dev

This library follows the http://semver.org/ versioning conventions.

Usage

The library provides two functions: dumpf() and ddf().

They work exactly like the Symfony's VarDumper built ones dump() and dd(), with those specifities:

  1. Both dumpf() and ddf() can be used only in scripts that run in the command line;
  2. Both requires the first parameter is null or an array with some options.

The simplest usage is this:

The result will be an HTML file with a random name that contains the dump of $var.

Opening the file you will see

For more examples of outputs, consult the Symfony's VarDumper documentation about Dump Examples and Output.

Specifying the dumped file

You can specify the file of the dump passing its full path name as first argument:

You can use a name like filename or like filename.html: the resulting file will always have one .html extension (filename.html).

Passing options

Both functions accepts as first argument an array.

The passed array can contain any of the options that you can pass to a Symfony's VarDumper Cloner (reference).

The only additional option you can pass is the file, whit which you can specify the name of the dumped file:

In both cases, the file dump_var.html will be generated.

What happens if the file already exists

The new dump will be added to the already existing file.

So, if you call dumpf() three times in your CLI script, then the resulting file dump will have three dumps in it.

If you run again the script, the resulting file dump will now contain six dumps in it: the three from the first run and the three from the second run.

To get a fresh dump, simply remove the dumped files.


Do you like this library?
LEAVE A ★

or run
composer global require symfony/thanks && composer thanks
to say thank you to all libraries you use in your current project, this included!



All versions of vardumper-cli-to-html with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
symfony/var-dumper Version ^4.4|^5.4|^6.4|^7.0
thecodingmachine/safe Version ^1.3|^2.0
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 serendipity_hq/vardumper-cli-to-html contains the following files

Loading the files please wait ....