Download the PHP package bhazk/icon without Composer
On this page you can find all versions of the php package bhazk/icon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package icon
Bhazk Icon
Bhazk Icon adalah package Laravel untuk menampilkan ikon dengan Blade Component. Secara default, package ini menggunakan Heroicons, namun Anda dapat menambahkan set ikon kustom sesuai kebutuhan.
📌 Instalasi
Jalankan perintah berikut untuk menginstal package ini:
🔧 Konfigurasi
Publikasikan file konfigurasi dengan perintah:
Setelah itu, file config/bhazk-icon.php
akan tersedia untuk dikustomisasi.
Secara default, set ikon yang digunakan adalah heroicons
, dan gaya ikon outline
. Anda bisa mengubahnya di file konfigurasi:
🚀 Penggunaan
Gunakan komponen Blade berikut untuk menampilkan ikon:
Opsi Tambahan
Atribut | Deskripsi |
---|---|
name |
Nama ikon yang akan ditampilkan |
style |
Gaya ikon (outline atau solid ) |
size |
Kelas Tailwind untuk ukuran ikon |
color |
Warna ikon (misal: red-500 , blue-600 , dll.) |
🎨 Menggunakan Set Ikon Kustom
Untuk menggunakan ikon dari set berbeda, Anda bisa meletakkan ikon SVG di folder:
Misalnya, untuk menambahkan ikon custom-icon.svg
dengan set myicons
dan gaya solid
, letakkan file di:
Lalu gunakan:
📜 Daftar Ikon Heroicons
Heroicons menyediakan berbagai ikon yang dapat digunakan. Beberapa contohnya:
academic-cap
adjustments
annotation
archive
arrow-circle-down
arrow-circle-up
bell
bookmark
chart-bar
check
chevron-down
chevron-left
chevron-right
chevron-up
Daftar lengkap dapat ditemukan di Heroicons Official.
Lisensi
Paket ini bersifat open-source dan dilisensikan di bawah lisensi MIT.
Pemecahan Masalah
Jika Anda mengalami masalah, pastikan Anda telah menyiapkan konfigurasi yang diperlukan dalam berkas konfigurasi bhazk-icon.php
. Periksa juga batasan API atau kesalahan dari Google Translate.
Kontribusi
Kontribusi diterima! Silakan buat masalah atau kirimkan permintaan tarik untuk bug atau permintaan fitur apa pun.
Kontak
Untuk pertanyaan atau permintaan apa pun, silakan hubungi Adi Arta Wibawa di [email protected].
Bhazk Icon is a Laravel package for displaying icons using Blade Components. By default, it uses Heroicons, but you can add custom icon sets as needed.
📌 Installation
Run the following command to install the package:
🔧 Configuration
Publish the configuration file with:
After that, the config/bhazk-icon.php
file will be available for customization.
By default, the icon set used is heroicons
, and the default style is outline
. You can change it in the config file:
🚀 Usage
Use the following Blade component to display an icon:
Additional Options
Attribute | Description |
---|---|
name |
The name of the icon to display |
style |
Icon style (outline or solid ) |
size |
Tailwind class for icon size |
color |
Icon color (e.g., red-500 , blue-600 , etc.) |
🎨 Using Custom Icon Sets
To use icons from a different set, place your SVG icons in the following folder:
For example, to add a custom-icon.svg
with the myicons
set and solid
style, place the file in:
Then use:
📜 Heroicons Icon List
Heroicons provides various icons that can be used. Some examples:
academic-cap
adjustments
annotation
archive
arrow-circle-down
arrow-circle-up
bell
bookmark
chart-bar
check
chevron-down
chevron-left
chevron-right
chevron-up
The full list can be found at Heroicons Official.
License
This package is open-source and licensed under the MIT license.
Troubleshooting
If you encounter any issues, ensure you have the necessary configurations set up in the bhazk-icon.php
configuration file. Check for any API limitations or errors from Google Translate as well.
Contributing
Contributions are welcome! Please open an issue or submit a pull request for any bugs or feature requests.
Contact
For any questions or inquiries, please contact Adi Arta Wibawa at [email protected].