Download the PHP
package cruxoft/dump without Composer
On this page you can find all versions of the php package
cruxoft/dump. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor cruxoft Package dump Short Description A system for generating structure information about nested variables for use including screen display License
Apache-2.0
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.
An alternative to var_dump or print_r for generating structure information about variables to then be output.
Installation
Can be installed using composer by running the following:
Usage
For details on full basic usage and more complex examples see the examples/ folder.
Output Function
Some simple output based usage examples of the built in dump() function would be as follows:
Which would output:
The dump method can take an optional options parameter as a bitwise value of the required options. Available options are:
INCLUDE_LOCATION: Gives the file and line number of the dump call.
DIE_AFTER: Calls die() after the dump method is completed.
Development
Docker
If your local environment does not have an upto date version of PHP installed there is a docker environment is included in the codebase for quickly building a development/testing environment.
Your installed PHP version can be found with the following command:
It uses the latest PHP8 FPM image with composer added and can be built and entered:
The container can be torn down with:
Road Map
Ability to specify formatting parameters for output of dump function
Additional built-in conversions of structure data (json, xml, etc)
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 cruxoft/dump contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.