From 6c19b694c5ecbbd495bbcebf222438dff0bc9753 Mon Sep 17 00:00:00 2001 From: Vincent Klaiber Date: Sun, 15 Nov 2015 20:10:07 +0100 Subject: [PATCH 1/2] Add .gitattributes file Exclude non-essential files in .gitattributes - https://www.reddit.com/r/PHP/comments/2jzp6k/i_dont_need_your_tests_in_my_production --- .gitattributes | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..ea7be1e9 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,11 @@ +* text=auto + +/doc export-ignore +/tests export-ignore +/.coveralls.yml export-ignore +/.scrutinizer.yml export-ignore +/.gitattributes export-ignore +/.gitignore export-ignore +/.travis.yml export-ignore +/phpunit.xml.dist export-ignore +/README.md export-ignore From ce222cab6e88f114ccb1073e6d6ee27545dc2546 Mon Sep 17 00:00:00 2001 From: Vincent Klaiber Date: Sun, 15 Nov 2015 20:52:09 +0100 Subject: [PATCH 2/2] Add docs about excluded files --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a91926d..539b7ac0 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,13 @@ It has been successfully tested using `PHP 5.5.9`, `PHP 5.6`, `PHP 7` and `HHVM` The preferred way to install this library is to rely on Composer: ```sh -composer require "spomky-labs/otphp" "~6.0.0" +composer require spomky-labs/otphp +``` + +Install and exclude non-essential files for production: + +```sh +composer require spomky-labs/otphp --prefer-dist ``` ## TOTP or HOTP? @@ -53,7 +59,7 @@ use OTPHP\TOTP; $totp = new TOTP(); ``` -or +or ```php use OTPHP\HOTP;