Download the PHP package clntdev/scrubber-laravel without Composer

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

Scrubber (Laravel Wrapper)

Stable Build CI Status

Scrubber (Laravel Wrapper) is a simple Laravel wrapper that adds in a Facade and some useful artisan commands around a minimal PHP package called Scrubber, this allows you to define a PHP configuration file which can help update database fields with various predefined or random values.

This is perfect for when you need a copy of a production database to work on and need to erase sensitive content.

Installation

Install via composer by running: composer require clntdev/scrubber-laravel

Publish the package configuration to config/scrubber.php by running: php artisan vendor:publish --tag=scrubber

Usage

The package relies on a valid PHP configuration file to function correctly, this file returns a simple array which maps out the tables, fields and their details so it knows which handler to use.

If using the default location, create a scrubber.php file at the root of your Laravel project. If using an alternative then set the absolute path in the config/scrubber.php file.

Here is an example configuration used in the unit tests:

Facade

The scrubber package methods can be accessed through the ClntDev\LaravelScrubber\Facades\Scrubber class.

This wrapper uses the DB facade to perform any database updates and Illuminate\Log\Logger to log any error messages. These are bound to the contracts detailed in the base package documentation which can be found here.

Methods

Scrubber::run() - This is the main method and will run all of the handlers from the parsed configuration file modifying the database.

Scrubber::getFieldList(string $type = 'pid') - This method will return an array of fields for the given type, this defaults to pid.

Scrubber::getFieldListAsString(string $type = 'pid') - This method will return a comma separated string of fields for the given type, this defaults to pid.

Commands

scrubber:run - This command will run the run() scrubber method on the database.

scrubber:fields --type=pid - This command will return a comma separated string for the given type, if no type argument is specified then it will default to pid.


All versions of scrubber-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^9.0|^10.0|^11.0|^12.0
illuminate/contracts Version ^9.0|^10.0|^11.0|^12.0
clntdev/scrubber Version ^1.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 clntdev/scrubber-laravel contains the following files

Loading the files please wait ....