mirror of
				https://github.com/Mibew/simple-icons.git
				synced 2025-11-04 04:15:17 +03:00 
			
		
		
		
	Add composer.json (#1611)
* Add composer.json * Update issue template to include Packagist * Update README.md
This commit is contained in:
		
							parent
							
								
									fa27e1138d
								
							
						
					
					
						commit
						3129166158
					
				@ -1,5 +1,5 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
name: Website & NPM Package
 | 
					name: Website & Packages
 | 
				
			||||||
about: For general issues and improvements
 | 
					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]`  -->
 | 
					### This issue concerns <!-- Change the one that applies to `[x]`  -->
 | 
				
			||||||
  - [ ] The NPM Package
 | 
					  - [ ] The NPM Package
 | 
				
			||||||
 | 
					  - [ ] The Packagist Package
 | 
				
			||||||
  - [ ] The website
 | 
					  - [ ] The website
 | 
				
			||||||
  - [ ] Other, namely: 
 | 
					  - [ ] Other, namely: 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -23,7 +24,9 @@ about: For general issues and improvements
 | 
				
			|||||||
Anything relevant, for example:
 | 
					Anything relevant, for example:
 | 
				
			||||||
  - For bugs: "Steps to reproduce" and "Expected behavior"
 | 
					  - For bugs: "Steps to reproduce" and "Expected behavior"
 | 
				
			||||||
  - For improvements: An example of a use case
 | 
					  - 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
 | 
					  - Website issues: What browser do you use
 | 
				
			||||||
  - etc.
 | 
					  - etc.
 | 
				
			||||||
-->
 | 
					-->
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										19
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								README.md
									
									
									
									
									
								
							@ -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
 | 
					## Third Party Extensions
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### WordPress
 | 
					### WordPress
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										13
									
								
								composer.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								composer.json
									
									
									
									
									
										Normal 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"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user