Skip to content

Commit ed44539

Browse files
authored
Update README.md
1 parent ebf8850 commit ed44539

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,22 @@ use TBETool\PasswordGenerator;
3737
$passwordGenerator = new PasswordGenerator(16, 5, 'lower_case,numbers,special_symbols');
3838
```
3939

40+
#### Set Parameters after creating object
41+
Parameters set during object creation will be overwritten.
42+
```
43+
# Set lenght of password to 16
44+
# params: (int) length
45+
$passwordGenerator->setLength(16);
46+
47+
# Set number of passwords to generate
48+
# params: (int) count
49+
$passwordGenerator->setCount(5);
50+
51+
# Set characters to use in password
52+
# params: (string) characters
53+
$passwordGenerator->setCharacters('lower_case,numbers');
54+
```
55+
4056
### Generate Password
4157
This will return single password from all passwords generated
4258
```

0 commit comments

Comments
 (0)