Skip to content

Commit 604c273

Browse files
Md. Touhidur RahmanMd. Touhidur Rahman
Md. Touhidur Rahman
authored and
Md. Touhidur Rahman
committed
wip
1 parent 2a850d8 commit 604c273

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ All notable changes to this project will be documented in this file.
88

99
## [1.0.1] - 2021-09-08
1010
- bug fix on file full path generation
11+
12+
## [1.0.2] - 2021-09-11
13+
- Added support to handle boolean type value as replacer
14+
- Updated README

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,15 @@ StubGenerator::from('some/path/to/stub/file.stub') // the stub file path
6565
->replace(true) // instruct to replace if already exists at the give path
6666
->save(); // save the file
6767
```
68+
One important thing to note that this package can handle not just **string** type values to but also hanlde **array** and **boolean** type also. So basically it can do as :
6869

70+
```php
71+
->withReplacers([
72+
'replacer_1' = 'some value',
73+
'replacer_2' = ['some', 'more', 'values'],
74+
'replacer_3' = true,
75+
])
76+
```
6977
## Example
7078

7179
Considering the following stub file

0 commit comments

Comments
 (0)