Skip to content

Commit

Permalink
Prepared for v6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent Morselli committed Sep 21, 2015
1 parent 9604ac2 commit 11ffbd7
Show file tree
Hide file tree
Showing 20 changed files with 331 additions and 832 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src_dir: lib
5 changes: 1 addition & 4 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ before_commands:
- "composer install --prefer-dist"

tools:
external_code_coverage: true
external_code_coverage: false
php_mess_detector: true
php_code_sniffer: true
php_analyzer: true
Expand All @@ -11,8 +11,5 @@ tools:
php_cpd: true
php_pdepend:
excluded_dirs: [vendor/*, doc/*, tests/*]
external_code_coverage:
timeout: 7200
runs: 5
filter:
excluded_paths: [vendor/*, doc/*, tests/*]
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7
- hhvm

before_script:
- composer install --no-interaction
- mkdir -p build/logs

script:
- php vendor/bin/phpunit --coverage-clover ./clover.xml
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_success:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover ./clover.xml
- vendor/bin/coveralls --no-interaction
24 changes: 4 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# TOTP / HOTP library in PHP #

[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/Spomky-Labs/otphp/badges/quality-score.png?s=a184d180414b30764d19b421a12d6cf7e9e5e7c2)](https://scrutinizer-ci.com/g/Spomky-Labs/otphp/)
[![Code Coverage](https://scrutinizer-ci.com/g/Spomky-Labs/otphp/badges/coverage.png?s=d1bd1b26b56e581d6a4d1deb87eaadc51a05f31d)](https://scrutinizer-ci.com/g/Spomky-Labs/otphp/)
[![Coverage Status](https://coveralls.io/repos/Spomky-Labs/otphp/badge.svg?branch=master&service=github)](https://coveralls.io/github/Spomky-Labs/otphp?branch=master)

[![Build Status](https://travis-ci.org/Spomky-Labs/otphp.svg?branch=master)](https://travis-ci.org/Spomky-Labs/otphp)
[![HHVM Status](http://hhvm.h4cc.de/badge/Spomky-Labs/otphp.png)](http://hhvm.h4cc.de/package/Spomky-Labs/otphp)
Expand All @@ -15,39 +15,23 @@ A php library for generating one time passwords according to [ RFC 4226 ](http:/

This library is compatible with Google Authenticator apps available for Android and iPhone. It is also compatible with other applications such as [FreeOTP](https://play.google.com/store/apps/details?id=org.fedorahosted.freeotp) for example.

This is a fork of https://github.com/lelag/otphp with the following changes:

* Continuous unit and functional tests using Travis-CI
* 100% test coverage
* Code Quality improvement
* Better namespace usage
* Issuer support
* Window support
* Completely abstract objects

## The Release Process

The release process [is described here](doc/Release.md).

## Prerequisites

This library needs at least `PHP 5.3`.
It has been successfully tested using `PHP 5.3` to `PHP 5.6`, `PHP 7` and `HHVM`
This library needs at least `PHP 5.6`.
It has been successfully tested using `PHP 5.6`, `PHP 7` and `HHVM`

## Installation

The preferred way to install this library is to rely on Composer:

```sh
composer require "spomky-labs/otphp" "~5.0.0"
composer require "spomky-labs/otphp" "~6.0.0"
```

## Extend the library

This library only contains the logic. You must extend all classes to define setters and getters.

Look at [Extend classes](doc/Extend.md) for more information and examples.

## How to use

Your classes are ready to use? Have a look at [How to use](doc/Use.md) to generate your first OTP.
Expand Down
7 changes: 2 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
],
"require": {
"php": ">=5.3.2",
"php": ">=5.6",
"christian-riesen/base32": "~1.1"
},
"require-dev": {
Expand All @@ -27,12 +27,9 @@
"autoload": {
"psr-4": { "OTPHP\\": "lib/" }
},
"autoload-dev": {
"psr-4": { "MyProject\\": "examples/" }
},
"extra": {
"branch-alias": {
"dev-master": "5.0.x-dev"
"dev-master": "6.0.x-dev"
}
}
}
Loading

0 comments on commit 11ffbd7

Please sign in to comment.