JuGid / Julis

String modification made easy inspired by string.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Julis

String manipulation made easy, inspired by string.js

How to use Julis ?

$julis = new Julis('A string');
$julis->dasherize()->right(3)->equals('ing'); //Should return true
$julis->reset()->dasherize(); //Should return 'a-string'

//You can use __toString() method at any moment to access the string value
$julis->__toString();

Methods

public function between(int $i_left, int $i_right);
public function camelize();
public function capitalize();
public function charAt($index);
public function concat(Julis $julis);
public function contains(string $search);
public function count();
public function dasherize();
public function delete(string $search);
public function endsWith(string $search);
public function equals(string $compare);
public function equalsIgnoreCare(string $compare);
public function firstIndexOf(string $search);
public function indexesOf(string $search);
public function lastIndexOf(string $search);
public function left(int $length);
public function lowercase();
public function multiply(int $times);
public function pad();
public function prefix(string $prefix);
public function replace(string $search, string $by);
public function replaceVariables(array $values);
public function reset();
public function reverse();
public function right(int $length);
public function splitLeft(string $separator, int $maxSplit);
public function splitRight(string $separator, int $maxSplit);
public function startsWith(string $search);
public function strip(string $allow = '');
public function suffix(string $suffix);
public function trim();
public function uppercase();
public function __toString();

About

String modification made easy inspired by string.js

License:Apache License 2.0


Languages

Language:PHP 100.0%