Skip to content

Commit e6f9355

Browse files
authored
Updated readme file.
1 parent e0ccee1 commit e6f9355

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

readme.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Following specifications are referenced:
1212

1313
[![Buy Me Coffee](images/buy-me-coffee.png)](https://www.paypal.me/DjordjeJocic)
1414

15-
**Song of the project:** [Write in C](https://www.youtube.com/watch?v=1S1fISh-pag)
15+
**Song of the project:** [Albert Veli - Write in C](https://www.youtube.com/watch?v=1S1fISh-pag)
1616

1717
**Project is still under development...slow ride...take it easy...**
1818

@@ -30,7 +30,20 @@ Complete documentation can be found by following the link above.
3030

3131
Using encoders from the library is extremely simple but, just in case you are getting started with PHP programming language, I've prepared several examples to help you on your journey. You simply need to instantiate an object of your desired encoder and use the "encode" or "decode" methods respectively.
3232

33-
### Example 1 - Base Encoding & Decoding
33+
### Base Encoding & Decoding
34+
35+
Only Base 16 and 32 are currently supported.
36+
37+
## Base 16
38+
39+
```php
40+
$encoder = new Jocic\Encoders\Base\Base16();
41+
42+
echo $encoder->encode("foo");
43+
echo $encoder->decode("666F6F");
44+
```
45+
46+
## Base 32
3447

3548
```php
3649
$encoder = new Jocic\Encoders\Base\Base32();

0 commit comments

Comments
 (0)