{"id":22173464,"url":"https://github.com/codeat3/blade-icon-generation-helpers","last_synced_at":"2026-04-01T21:45:38.084Z","repository":{"id":56954867,"uuid":"381449825","full_name":"codeat3/blade-icon-generation-helpers","owner":"codeat3","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-21T11:12:54.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"0.x","last_synced_at":"2026-03-22T02:26:58.210Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeat3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"swapnilsarwe"}},"created_at":"2021-06-29T17:44:52.000Z","updated_at":"2026-03-21T11:12:36.000Z","dependencies_parsed_at":"2024-12-02T07:43:46.597Z","dependency_job_id":null,"html_url":"https://github.com/codeat3/blade-icon-generation-helpers","commit_stats":{"total_commits":33,"total_committers":1,"mean_commits":33.0,"dds":0.0,"last_synced_commit":"dd7d02821f2487ee85159a02106907db69f4efc5"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/codeat3/blade-icon-generation-helpers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeat3%2Fblade-icon-generation-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeat3%2Fblade-icon-generation-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeat3%2Fblade-icon-generation-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeat3%2Fblade-icon-generation-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeat3","download_url":"https://codeload.github.com/codeat3/blade-icon-generation-helpers/tar.gz/refs/heads/0.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeat3%2Fblade-icon-generation-helpers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T07:33:31.702Z","updated_at":"2026-04-01T21:45:38.067Z","avatar_url":"https://github.com/codeat3.png","language":"PHP","funding_links":["https://github.com/sponsors/swapnilsarwe"],"categories":[],"sub_categories":[],"readme":"## Blade Icon Generation Helpers\nA helper package to convert the icons to make it compatible to be used with the `blade-icons` package.\n\n### Installation\n```php\ncomposer require codeat3/blade-icon-generation-helpers\n```\n\n### Usage\nKindly refer the [Generating Icons](https://github.com/blade-ui-kit/blade-icons#generating-icons) section from [Blade Icons](https://github.com/blade-ui-kit/blade-icons). This Package utilizes the `after` callback to process the icons as per our need.\n\nThe `after` callback received 3 arguments `string $icon` - this is the pathname of the icon, `array $config` - the config specified in the `generation.php` \u0026 `SplFileInfo $file` - the original icon file instance.\n\nInside a callback we instantiate our Processor class \u0026 use its helper methods to our benefit.\n\n```php\n$iconProcessor = new IconProcessor($icon, $config, $sourceFile);\n```\n\nThis `IconProcessor` instance itself does some optimization on its own by default. Minimal usage would be as follows.\n```php\n$iconProcessor = new IconProcessor($icon, $config, $sourceFile);\n    $iconProcessor\n        -\u003eoptimize()\n        -\u003esave();\n```\n\nThe `optimize` method does the following things by default:\n* it removes the following attributes from the svg\n    - 'width', 'height', 'class', 'style', 'id',\n* if in the config provided `is-outline` is set as `true`\n    - if `fill` attribute exists - it will updated to `none`\n    - if `stroke` attribute exists - it will updated to `currentColor`\n* if in the config provided `is-solid` is set as `true`\n    - if `fill` attribute exists - it will updated to `currentColor`\n* if in the config provided `custom-attributes` is set`\n    - it will set the attributes to the svg\n* optionally it provides 2 callable methods `pre` \u0026 `post`\n    - both callback receives the `$svgEL` as the `DOMDocument` - its the DOMDocument instance of the current icon\n    - `pre` can be used if you have to perform some operation before Processor does the default processing\n    - `post` can be used if you have to perform some operation after Processor does the default processing\n\nThe `save` method\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeat3%2Fblade-icon-generation-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeat3%2Fblade-icon-generation-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeat3%2Fblade-icon-generation-helpers/lists"}