Skip to content

Commit 0b7b3ad

Browse files
committed
feat: update readme
1 parent 4c23a4c commit 0b7b3ad

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- markdownlint-disable no-inline-html -->
22
<p align="center">
33
<br><br>
4-
<img src="https://leafphp.netlify.app/assets/img/leaf3-logo.png" height="100"/>
4+
<img src="https://leafphp.dev/logo-circle.png" height="100"/>
55
<h1 align="center">Leaf Session Module</h1>
66
<br><br>
77
</p>
@@ -16,12 +16,23 @@ Leaf's core session functionality packaged as a serve-yourself module.
1616

1717
## Installation
1818

19-
You can easily install Leaf using [Composer](https://getcomposer.org/).
19+
You can easily install Leaf using the [Leaf CLI](https://cli.leafphp.dev):
20+
21+
```bash
22+
leaf install session
23+
```
24+
25+
Or with [Composer](https://getcomposer.org/).
2026

2127
```bash
2228
composer require leafs/session
2329
```
2430

25-
## View Leaf's docs [here](https://leafphp.netlify.app/#/)
31+
## Usage
32+
33+
```php
34+
session()->set('name', 'Leaf PHP');
35+
session()->get('name');
36+
```
2637

27-
Built with ❤ by [**Mychi Darko**](https://mychi.netlify.app)
38+
Check the full documentation [here](https://leafphp.dev/modules/session/).

0 commit comments

Comments
 (0)