PHP code example of jongoly / str-utils

1. Go to this page and download the library: Download jongoly/str-utils 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/ */

    

jongoly / str-utils example snippets


use Jongoly\StrUtils\Str;

// Case conversions
Str::camel('user_profile'); // userProfile
Str::snake('PascalCase');   // pascal_case

// Safe PII Obfuscation
Str::maskEmail('[email protected]'); // s****[email protected]

// Cryptographic Assertions
Str::uuid(); // Outputs robust v4 UUID pattern layout