Skip to content

Commit

Permalink
Fork updated:
Browse files Browse the repository at this point in the history
* Documentation: doc updated (work in progress)
* Code Quality: 100% test coverage, code Quality informations
* Better namespace usage
* Supports all parameters in provisioning URIs
* Getters and Setters added.
  • Loading branch information
Florent Morselli committed Feb 25, 2014
1 parent 620398a commit 0eba50a
Show file tree
Hide file tree
Showing 28 changed files with 1,835 additions and 717 deletions.
3 changes: 3 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
service_name: travis-ci
src_dir: ./
coverage_clover: build/logs/clover.xml
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.bak
vendor/
14 changes: 14 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
before_commands:
- "composer install --prefer-dist"

tools:
php_mess_detector: true
php_code_sniffer: true
php_analyzer: true
sensiolabs_security_checker: true
php_code_coverage: true
php_cpd: true
php_pdepend:
excluded_dirs: [vendor/*, doc/*, tests/*]
filter:
excluded_paths: [vendor/*, doc/*]
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ language: php
php:
- 5.3
- 5.4
- 5.5

before_script:
- curl -s http://getcomposer.org/installer | php
- php composer.phar --dev install
- php composer.phar update --dev --no-interaction

phpunit: phpunit --dev

script:
- mkdir -p build/logs
- php vendor/bin/phpunit -c phpunit.xml.dist

after_script:
- php vendor/bin/coveralls -v
32 changes: 16 additions & 16 deletions LICENCE
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
Copyright (c) 2011 Le Lag
The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Copyright (c) 2014 Florent Morselli

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
73 changes: 0 additions & 73 deletions README.markdown

This file was deleted.

34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# OTPHP - PHP One Time Password Library

[![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/)

[![Build Status](https://travis-ci.org/Spomky-Labs/otphp.png?branch=master)](https://travis-ci.org/Spomky-Labs/otphp)

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/49e5925d-0dd8-4b89-a215-5eb33b4d96d9/big.png)](https://insight.sensiolabs.com/projects/49e5925d-0dd8-4b89-a215-5eb33b4d96d9)

[![Dependency Status](https://www.versioneye.com/user/projects/530b3bc9ec13750905000014/badge.png)](https://www.versioneye.com/user/projects/530b3bc9ec13750905000014)

A php library for generating one time passwords according to [ RFC 4226 ](http://tools.ietf.org/html/rfc4226) (HOTP Algorithm) and the [ RFC 6238 ](http://tools.ietf.org/html/rfc6238) (TOTP Algorithm)

This is compatible with Google Authenticator apps available for Android and iPhone, and now in use on GMail

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

* Unit et Functional continuous tests using Travis-CI
* Code Quality information
* Better namespace usage
* Test coverage information
* 100% test coverage
* Issuer support

## Documentation

* [Quick Overview](doc/Overview.md)
* [Installation](doc/Installation.md)
* [How to use](doc/Use.md)
* [To Do](doc/ToDo.md)

## Licence

This software is release under MIT licence.
29 changes: 24 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
{
"name": "lelag/otphp",
"name": "spomky-labs/otphp",
"type": "library",
"description": "PHP OTP Library compatible with Google Authenticator",
"license": "MIT",
"keywords": ["otp", "hotp", "totp"],
"homepage": "https://github.com/lelag/otphp",
"homepage": "https://github.com/Spomky-Labs/otphp",
"authors": [
{
"name": "Spomky-Labs",
"homepage": "https://github.com/Spomky-Labs/otphp/contributors"
}
],
"require": {
"php": ">=5.3.2"
"php": ">=5.3.2",
"christian-riesen/base32": "~1.1"
},
"require-dev": {
"phpunit/phpunit": "3.7.*",
"satooshi/php-coveralls": "dev-master"
},
"suggest": {
},
"autoload": {
"psr-0": { "OTP": "lib/" }
}
"psr-0": { "OTPHP": "lib/" }
},
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"target-dir": "Spomky/OTPHP"
}
Loading

0 comments on commit 0eba50a

Please sign in to comment.