You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 7, 2025. It is now read-only.
Then, don't forget to autoload your Composer packages!
24
+
18
25
```php
19
26
require 'vendor/autoload.php';
20
27
```
28
+
21
29
## Usage
30
+
22
31
### Get an icon
32
+
23
33
Icons echo by default.
34
+
24
35
```php
25
36
<?php
26
37
require 'vendor/autoload.php';
@@ -35,13 +46,17 @@ $icons = new Feather\Icons;
35
46
```
36
47
37
48
### Get an icon with modified properties
49
+
38
50
Simply pass an array with the attributes you want. This will be merged over the `Icons` class default attributes, except for `class`, which gets concatenated to the default classes.
You can also change the default attributes in the `Icons` class if you want some attributes consistent across multiple `get` calls. The passed attributes are merged over the current attributes in the class by default.
57
+
You can also change the default attributes in the `Icons` class if you want some attributes consistent across multiple `get` calls. The passed attributes are merged over the current attributes in the
Sets default attributes of the class. These are used as default attributes for the `get` method. By default, the `$attributes` argument is merged over the current attributes in the class. You can disable this by setting the `$merge` argument to false, but only do it if you know what you are doing.
122
+
123
+
Sets default attributes of the class. These are used as default attributes for the `get` method. By default, the `$attributes` argument is merged over the current attributes in the class. You can
124
+
disable this by setting the `$merge` argument to false, but only do it if you know what you are doing.
Feel free to open up issues and PRs for suggesstions.
143
178
144
179
Developing requires both nodejs and composer. The icons are included as a node module and built for use in php.
145
180
146
181
Better contributing docs are coming soon!
147
182
148
183
## License
184
+
149
185
Licensed under the [MIT License](https://github.com/Pixelrobin/php-feather/blob/master/LICENSE).
150
186
151
187
The icons in this code are from [Feather](https://github.com/feathericons/feather). It is also licensed under the [MIT License](https://github.com/feathericons/feather/blob/master/LICENSE).
0 commit comments