Download the PHP package glaivepro/hidevara without Composer

On this page you can find all versions of the php package glaivepro/hidevara. 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 hidevara

Hidevara

Even though Laravel >=6.x includes Ignition which no longer dumps your variables, it requires Whoops itself. And in some cases you can still get to the old error page with variables dumped.

This package works fine with Laravel 8. I haven't updated it lately because it just works as fine as it did before.

Laravel millipackage that hides your variables from getting dumped in the Whoops page when your app crashes.

Hidevara is japonese for hide the damn vars.

Usage

Install it:

To deal with the cases where the app crashes before loading providers, you should open your bootstrap/app.php and extend the handler. Find these rows (or something similar with another namespace if you've changed that):

Immediately after that insert these lines to extend the handler:

By default this package will:

"Hide" means that the value will be replaced with a string. By default it's empty string for null/emptystring values and [hidden] for everything else.

Customization

Publish the config:

Now you've got your very own config/hidevara.php file to edit.

You'll see a set of rules ('action' => $test) associated with each of the variables. The test can be an array of exact field names, string with a regex or true to take this action for anything.

Here's an example:

There are also replaceHiddenValueWith and replaceHiddenEmptyValueWith where you can supply whatever strings you love (like 🍑).

Changes to error handling

To hide the global variables from Whoops, they are hijacked/ruined just before calling your Handler::render(). If you need access to the original global at that method, you can get them in $GLOBALS['hidevara']. For example, $GLOBALS['hidevara']['_SERVER'] is what $_SERVER was.

Working with PHPUnit

Sometimes (supposedly when an exception is raised) this package crashes PHPUnit. To prevent this, we are not enabling the custom handling when the environment is testing.

If you do need to enable this while running PHPUnit, the errors can be prevented by setting processIsolation="true" on the <phpunit> tag in your phpunit.xml.

Collaboration

Pls help! Here are the open problems and questions:

Change log

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.


All versions of hidevara with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version >=7.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 glaivepro/hidevara contains the following files

Loading the files please wait ....