{"id":18553708,"url":"https://github.com/websemantics/file-icons","last_synced_at":"2025-04-09T23:30:48.918Z","repository":{"id":57079129,"uuid":"86259539","full_name":"websemantics/file-icons","owner":"websemantics","description":"File specific icons for PHP. A port of Atom File-icons, https://github.com/file-icons/atom","archived":false,"fork":false,"pushed_at":"2020-01-01T05:15:56.000Z","size":292,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T13:21:23.228Z","etag":null,"topics":["devicons","fontawesome","icons","mfizz","octicons","php"],"latest_commit_sha":null,"homepage":"","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/websemantics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-26T19:36:58.000Z","updated_at":"2022-09-29T15:46:18.000Z","dependencies_parsed_at":"2022-08-24T14:56:23.530Z","dependency_job_id":null,"html_url":"https://github.com/websemantics/file-icons","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Ffile-icons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Ffile-icons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Ffile-icons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Ffile-icons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/websemantics","download_url":"https://codeload.github.com/websemantics/file-icons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248129534,"owners_count":21052589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["devicons","fontawesome","icons","mfizz","octicons","php"],"created_at":"2024-11-06T21:18:02.778Z","updated_at":"2025-04-09T23:30:48.339Z","avatar_url":"https://github.com/websemantics.png","language":"PHP","readme":"```\n╭──────┬─╮                       ╭─────╮\n│        │                       │     │\n│      ╭─╯╭───╮╭───╮ ╭──────╮    ├─────┤╭──────╮╭──────╮╭────┬─╮╭──────╮\n│      ╰─╮├───┤│   │ │  ──  │    │     ││   ╭──╯│   ╭╮ ││      ││  ────┤\n│      ╭─╯│   ││   │ │      │    │     ││   ╰──╮│   ││ ││   ╭╮ ││      │\n│      │  │   ││   │ │  ────┤    │     ││      ││   ╰╯ ││   ││ │├────  │\n╰──────╯  ╰───╯╰───╯ ╰──────╯    ╰─────╯╰──────╯╰──────╯╰───╯╰─╯╰──────╯\n╭─╮ ╭─╮ ┬─╮    ╭─╮ ┬ ┬ ╭─╮   ╭─╮ ╭─╮ ╭─╮ ┬   ┬ ╭─╮ ╭─╮ ╭┬╮ ┬ ╭─╮ ╭╮╭ ╭─╮\n├┤  │ │ ├┬╯    ├─╯ ├─┤ ├─╯   ├─┤ ├─╯ ├─╯ │   │ │   ├─┤  │  │ │ │ │││ ╰─╮\n┴   ╰─╯ ┴╰─    ┴   ┴ ┴ ┴     ┴ ┴ ┴   ┴   ┴─╯ ┴ ╰─╯ ┴ ┴  ┴  ┴ ╰─╯ ╯╰╯ ╰─╯\n```\n\u003e File specific icons for PHP. A port of Atom File-icons, https://github.com/file-icons/atom\n\n\u003cimg alt=\"Icon previews\" width=\"850\" src=\"https://raw.githubusercontent.com/file-icons/atom/6714706f268e257100e03c9eb52819cb97ad570b/preview.png\" /\u003e\n\n## Install\n\n1- Use `Composer` to install as follows, \n\n```bash\ncomposer require websemantics/file-icons\n```\n\n## Getting Started\n\nCreate an instance of `FileIcons` class.\n\n```php\nuse Websemantics\\FileIcons\\FileIcons;\n\n$icons = new FileIcons();\n```\n\nInclude `css` styles in the header of an html document. This will generate a `link` tag that points to the package stylesheet.\n\n```php\nFileIcons::includeCss();\n```\n\nGet the class name of the icon that represent a filename, for example `text-icon`.\n\n```php\n$filename = 'src/index.php';\n$class_name = $icons-\u003egetClass($filename);\n```\n\nYou can also get a class name of the associated icon color.\n\n```php\n$filename = 'README.md';\n$class_name = $icons-\u003egetClassWithColor($filename);\n```\n\nUse the class name to generate html, for example\n\n```php\necho \"\u003ca\u003e\u003ci class='$class_name'\u003e\u003c/i\u003e$filename\u003c/a\u003e\";\n```\n\nCheck out - [Markdown Browser Plus](https://github.com/websemantics/markdown-browser-plus) to see implementation details.\n\n## Resources\n\n- [Atom File Icons](https://github.com/file-icons/atom), file specific icons for improved visual grepping.\n- [Markdown Browser Plus](https://github.com/websemantics/markdown-browser-plus), Github flavoured, local file browser for viewing markdown documentation files.\n\n## Support\n\nNeed help or have a question? post at [StackOverflow](https://stackoverflow.com/questions/tagged/file-icons+websemantics).\n\n*Please don't use the issue trackers for support/questions.*\n\n*Star if you find this project useful, to show support or simply for being awesome :)*\n\n## Contribution\n\nContributions to this project are accepted in the form of feedback, bugs reports and even better - pull requests.\n\n## License\n\n[MIT license](http://opensource.org/licenses/mit-license.php) Copyright (c) Web Semantics, Inc.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebsemantics%2Ffile-icons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebsemantics%2Ffile-icons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebsemantics%2Ffile-icons/lists"}