Skip to content

Commit

Permalink
Use heroicons v2 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
roelmagdaleno committed Dec 13, 2024
1 parent d3b4239 commit 372ff8c
Show file tree
Hide file tree
Showing 894 changed files with 1,903 additions and 1,321 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "roelmagdaleno/php-heroicons",
"description": "Render Heroicons from PHP.",
"description": "A package to easily use Heroicons in PHP projects.",
"keywords": ["Icons", "Heroicons", "PHP"],
"version": "1.0.1",
"version": "1.1.0",
"license": "MIT",
"authors": [
{
Expand All @@ -12,7 +12,7 @@
}
],
"require": {
"php": ">=7.2",
"php": "^8.0",
"meyfa/php-svg": "^0.11.2"
},
"autoload": {
Expand Down
10 changes: 5 additions & 5 deletions examples/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

$icon->render('check-circle', ['width' => 60]);
$icon->render('academic-cap', ['width' => 60]);
$icon->render('library', [
$icon->render('building-library', [
'width' => 60,
'height' => 60,
'class' => 'my-custom-css-class',
Expand All @@ -22,14 +22,14 @@

$icon->render('check-circle', ['width' => 60], 'outline');
$icon->render('academic-cap', ['width' => 60], 'outline');
$icon->render('library', ['width' => 60], 'outline');
$icon->render('building-library', ['width' => 60], 'outline');

echo '<br>';
echo '<h2>Render using helper function</h2>';

echo heroicon('check-circle', ['width' => 60]);
echo heroicon('academic-cap', ['width' => 60]);
echo heroicon('library', ['width' => 60]);
echo heroicon('building-library', ['width' => 60]);

echo '<br>';
echo '<h2>Render icon from constructor</h2>';
Expand All @@ -39,7 +39,7 @@
$new_icon = new Icon('academic-cap', ['width' => 60]);
$new_icon->render();

$new_icon_two = new Icon('library', ['width' => 60]);
$new_icon_two = new Icon('building-library', ['width' => 60]);
echo $new_icon_two->return();

echo '<br>';
Expand All @@ -49,6 +49,6 @@

$first = $icon->return('check-circle', ['width' => 60]);
$second = $icon->return('academic-cap', ['width' => 60]);
$third = $icon->return('library', ['width' => 60]);
$third = $icon->return('building-library', ['width' => 60]);

echo "My first icon is: $first then use the $second and $third";
Binary file added resources/svg/heroicons/outline/.DS_Store
Binary file not shown.
6 changes: 2 additions & 4 deletions resources/svg/heroicons/outline/academic-cap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/adjustments-horizontal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/adjustments-vertical.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions resources/svg/heroicons/outline/adjustments.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/svg/heroicons/outline/annotation.svg

This file was deleted.

3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/archive-box-arrow-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/archive-box-x-mark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/archive-box.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions resources/svg/heroicons/outline/archive.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/svg/heroicons/outline/arrow-circle-down.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/svg/heroicons/outline/arrow-circle-left.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/svg/heroicons/outline/arrow-circle-right.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/svg/heroicons/outline/arrow-circle-up.svg

This file was deleted.

3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-down-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-down-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-down-on-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-down-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-down-tray.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions resources/svg/heroicons/outline/arrow-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-left-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-left-on-rectangle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions resources/svg/heroicons/outline/arrow-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-long-down.svg
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-long-left.svg
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-long-right.svg
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-long-up.svg
3 changes: 0 additions & 3 deletions resources/svg/heroicons/outline/arrow-narrow-down.svg
Diff not rendered.
3 changes: 0 additions & 3 deletions resources/svg/heroicons/outline/arrow-narrow-left.svg
Diff not rendered.
3 changes: 0 additions & 3 deletions resources/svg/heroicons/outline/arrow-narrow-right.svg
Diff not rendered.
3 changes: 0 additions & 3 deletions resources/svg/heroicons/outline/arrow-narrow-up.svg
Diff not rendered.
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-path-rounded-square.svg
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-path.svg
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-right-circle.svg
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-right-on-rectangle.svg
4 changes: 2 additions & 2 deletions resources/svg/heroicons/outline/arrow-right.svg
3 changes: 0 additions & 3 deletions resources/svg/heroicons/outline/arrow-sm-down.svg
Diff not rendered.
3 changes: 0 additions & 3 deletions resources/svg/heroicons/outline/arrow-sm-left.svg
Diff not rendered.
3 changes: 0 additions & 3 deletions resources/svg/heroicons/outline/arrow-sm-right.svg
Diff not rendered.
3 changes: 0 additions & 3 deletions resources/svg/heroicons/outline/arrow-sm-up.svg
Diff not rendered.
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-small-down.svg
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-small-left.svg
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-small-right.svg
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-small-up.svg
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-top-right-on-square.svg
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-trending-down.svg
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-trending-up.svg
3 changes: 3 additions & 0 deletions resources/svg/heroicons/outline/arrow-turn-down-left.svg
Loading

0 comments on commit 372ff8c

Please sign in to comment.