PHP code example of rodion-arr / php-string-helpers

1. Go to this page and download the library: Download rodion-arr/php-string-helpers 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/ */

    

rodion-arr / php-string-helpers example snippets


namespace Doorway;

ngHelpers\StringHelper;

class MyClass
{
    use StringHelper;

    public function __construct(array $keywords)
    {
        $this->toUpperCase('some string');
        $this->cleanUpString('some string');
        $this->addTrailingDot('some string');
        $this->sanitizeBladeString('some string');
        
        // more examples in unit test file
    }
}