diff --git a/.github/ISSUE_TEMPLATE/website_and_package.md b/.github/ISSUE_TEMPLATE/website_and_package.md index e4b022b98..8c97ef385 100644 --- a/.github/ISSUE_TEMPLATE/website_and_package.md +++ b/.github/ISSUE_TEMPLATE/website_and_package.md @@ -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 - [ ] 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. --> diff --git a/README.md b/README.md index 5e973f0f6..0b7358795 100644 --- a/README.md +++ b/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 +... +?> +``` + ## Third Party Extensions ### WordPress diff --git a/composer.json b/composer.json new file mode 100644 index 000000000..2d6071c3e --- /dev/null +++ b/composer.json @@ -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" +}