From 1dc5c8a4436c34a7b6ab7fb29c5e6171e0065e4e Mon Sep 17 00:00:00 2001 From: Asif Nawaz Date: Fri, 22 Mar 2024 13:12:52 +0000 Subject: [PATCH] fix(composer.json): archive unnecessary files from package --- .gitattributes | 19 +++++++++++++++++++ README.md | 2 +- composer.json | 20 +++++++++++++++++++- package.json | 7 +++---- phpdoc.xml => phpdoc.dist.xml | 0 5 files changed, 42 insertions(+), 6 deletions(-) create mode 100644 .gitattributes rename phpdoc.xml => phpdoc.dist.xml (100%) diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..a54a56d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,19 @@ +# The ! character is not supported in .gitattributes so we have to include all the files or directories here to exclude from composer archive +# If a file or directory is not excluded using the export-ignore attribute, it will be included in the archive by default. + +# directories to exclude +.devcontainer export-ignore +.github export-ignore +reports export-ignore +docs export-ignore +tests export-ignore + +# files to exclude +.releaserc.json export-ignore +composer.json export-ignore +phpdoc.dist.xml export-ignore +phpunit.xml.dist export-ignore +*.sh export-ignore +.gitattributes export-ignore +.gitignore export-ignore +gulpfile.js export-ignore \ No newline at end of file diff --git a/README.md b/README.md index 6649449..4a28996 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ConverterFactory +# IDN Converter - Convert IDN to Punycode or Punycode to IDN - PHP Library The `ConverterFactory` class provides functionality for converting domain strings between Unicode and Punycode formats. diff --git a/composer.json b/composer.json index 5190c4d..6db171c 100644 --- a/composer.json +++ b/composer.json @@ -3,6 +3,24 @@ "description": "PHP library to convert Domain Names correctly from IDN to Punycode, and vice-versa also offers TR46 processing.", "type": "library", "license": "MIT", + "keywords": [ + "php idn converter", + "php idna", + "php idna", + "domains", + "convert", + "to", + "punycode", + "covert", + "to", + "idna", + "php", + "library" + ], + "homepage": "https://github.com/centralnicgroup-opensource/rtldev-middleware-php-idna-translator", + "require": { + "php": ">=7.4.0" + }, "require-dev": { "phpunit/phpunit": "^10.0", "squizlabs/php_codesniffer": "^3.9" @@ -34,4 +52,4 @@ }, "minimum-stability": "stable", "prefer-stable": true -} +} \ No newline at end of file diff --git a/package.json b/package.json index 9e90a75..166c5a5 100644 --- a/package.json +++ b/package.json @@ -7,9 +7,9 @@ "node": ">=20.6.1" }, "keywords": [ - "idna", - "converter", - "idna", + "php idn converter", + "php idna", + "php idna", "domains", "convert", "to", @@ -17,7 +17,6 @@ "covert", "to", "idna", - "idna", "php", "library" ], diff --git a/phpdoc.xml b/phpdoc.dist.xml similarity index 100% rename from phpdoc.xml rename to phpdoc.dist.xml