PHP code example of mpstenson / laravel-advanced-string
1. Go to this page and download the library: Download mpstenson/laravel-advanced-string library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mpstenson / laravel-advanced-string example snippets
Str::redactSsn('My social security number is 222-22-2222'); // My social security number is xxxxxx
AdvStr::redactSsn('My social security number is 222-22-2222'); // My social security number is xxxxxx
return [
/*
// Macro the AdvStr class to the Illuminate\Support\Str class. You can disable
// this here if you don't want the AdvStr methods available on the Str class
*/
'use_str' => true,
];