Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
forecho committed Jul 18, 2020
1 parent 43ea0e4 commit 3d0766b
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,28 +245,36 @@ class m170810_084615_create_post extends Migration
### String Helper

```php
String::after('@', '[email protected]'); // 'online.ge'
yiier\helpers\String::after('@', '[email protected]'); // 'online.ge'

String::afterLast('[', 'sin[90]*cos[180]');// '180]'
yiier\helpers\String::afterLast('[', 'sin[90]*cos[180]');// '180]'

String::before('@', '[email protected]'); // 'biohazard'
yiier\helpers\String::before('@', '[email protected]'); // 'biohazard'

String::beforeLast('[', 'sin[90]*cos[180]'); // 'sin[90]*cos'
yiier\helpers\String::beforeLast('[', 'sin[90]*cos[180]'); // 'sin[90]*cos'

String::between('@', '.', '[email protected]'); // 'online'
yiier\helpers\String::between('@', '.', '[email protected]'); // 'online'

String::betweenLast('[', ']', 'sin[90]*cos[180]'); // '180'
yiier\helpers\String::betweenLast('[', ']', 'sin[90]*cos[180]'); // '180'
```

### Setup Helper

```php
yiier\helpers\Setup::toFen(100); // 10000
yiier\helpers\Setup::toYuan(100); // 1

Setup::toFen(100); // 10000
Setup::toYuan(100); // 1
\yiier\helpers\Setup::errorMessage($model->firstErrors);
```

### Date Helper

```php
\yiier\helpers\DateHelper::convert('1454214981');
\yiier\helpers\DateHelper::convert('1454214981','date');
\yiier\helpers\DateHelper::convert('1454214981','time');

Setup::errorMessage($model->firstErrors);
//……
```


Expand Down

0 comments on commit 3d0766b

Please sign in to comment.