PHP code example of filafly / phosphor-icon-replacement
1. Go to this page and download the library: Download filafly/phosphor-icon-replacement library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
filafly / phosphor-icon-replacement example snippets
// Override a single icon key
PhosphorIconReplacement::overrideStyleForAlias('tables::actions.filter', 'thin');
// Override multiple icon keys at once
PhosphorIconReplacement::overrideStyleForAlias([
'tables::actions.filter',
'actions::delete-action',
], 'thin');
// Override a single icon
PhosphorIconReplacement::overrideStyleForIcon('phosphor-user', 'thin');
// Override multiple icons at once
PhosphorIconReplacement::overrideStyleForIcon([
'phosphor-user',
'phosphor-caret-up',
'phosphor-bell',
], 'thin');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.