1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2025-01-05 01:20:39 +02:00

Add composer.json (#1611)

* Add composer.json

* Update issue template to include Packagist

* Update README.md
This commit is contained in:
Eric Cornelissen 2019-09-26 09:04:33 +03:00 committed by GitHub
parent fa27e1138d
commit 3129166158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 2 deletions

View File

@ -1,5 +1,5 @@
---
name: Website & NPM Package
name: Website & Packages
about: For general issues and improvements
---
@ -13,6 +13,7 @@ about: For general issues and improvements
### This issue concerns <!-- Change the one that applies to `[x]` -->
- [ ] The NPM Package
- [ ] The Packagist Package
- [ ] The website
- [ ] Other, namely:
@ -23,7 +24,9 @@ about: For general issues and improvements
Anything relevant, for example:
- For bugs: "Steps to reproduce" and "Expected behavior"
- For improvements: An example of a use case
- Package issues: What is your node version ($ node --version)
- Package issues: Version information
- For JavaScript/NodeJS: $ node --version
- For PHP/Packagist: $ composer --version
- Website issues: What browser do you use
- etc.
-->

View File

@ -76,6 +76,25 @@ console.log(icon);
*/
```
### PHP usage
The icons are also available through our Packagist package. To install, simply run:
```
$ composer require simple-icons/simple-icons
```
The package can then be used as follows:
```php
<?php
echo file_get_contents('path/to/package/icons/simple-icons.svg');
// <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">...</svg>
?>
```
## Third Party Extensions
### WordPress

13
composer.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "simple-icons/simple-icons",
"description": "SVG icons for popular brands",
"homepage": "https://simpleicons.org/",
"keywords": [
"svg",
"icons"
],
"support": {
"issues": "https://github.com/simple-icons/simple-icons/issues"
},
"license": "CC0-1.0"
}