Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jugid/julis
String modification made easy inspired by string.js
https://github.com/jugid/julis
Last synced: about 1 month ago
JSON representation
String modification made easy inspired by string.js
- Host: GitHub
- URL: https://github.com/jugid/julis
- Owner: JuGid
- License: apache-2.0
- Created: 2022-06-27T00:47:12.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-16T13:33:40.000Z (about 2 years ago)
- Last Synced: 2023-03-10T10:14:11.151Z (over 1 year ago)
- Language: PHP
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Julis
String manipulation made easy, inspired by string.js
## How to use Julis ?
```php
$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
```php
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();
```