File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
A PHP class that can be used to add [ Font Awesome 5+] ( https://fontawesome.com/ ) 's SVG icons inline without Javascript.
4
4
5
+ ## Installation
6
+
7
+ You can install it using Composer:
8
+
9
+ ```
10
+ composer require husseinalhammad/fontawesome-svg
11
+ ```
12
+
13
+ Or you can download the ` FontAwesomeSVG.php ` file and include it manually.
14
+
5
15
6
16
## Usage
7
17
@@ -56,7 +66,13 @@ echo $FA->get_svg('fas fa-file', [
56
66
]);
57
67
```
58
68
59
-
69
+ | Option | What it means |
70
+ | -----------------------| --------------------------------------------------------------------------|
71
+ | class | Adds classes to the SVG tag |
72
+ | default_class | If set to ` false ` , the default CSS class won't be added to the SVG tag. Deafult: ` true ` . |
73
+ | title | Adds a ` <title> ` inside the SVG tag for semantic icons |
74
+ | role | The value of the ` role ` attribute in the SVG tag. Default: ` img ` |
75
+ | fill | The value of the ` fill ` attribute in the ` <path> ` inside the SVG. Default: ` currentColor ` |
60
76
61
77
62
78
## Accessibility
You can’t perform that action at this time.
0 commit comments