Skip to content

Commit

Permalink
Merge branch 'release/2.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlatz committed Apr 11, 2016
2 parents 02b2163 + a472964 commit 325d68d
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 5 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: php

php:
- '5.6'
- '7.0'

before_script: composer install

script: composer test
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2016 Clément Bourgoin

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 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.
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "biblys/isbn",
"description": "A PHP library to convert and validate ISBN & EAN",
"time": "2016-03-01",
"time": "2016-04-11",
"keywords": ["ISBN", "Ean", "Book"],
"license": "MIT",
"homepage": "https://github.com/biblys/isbn",
Expand All @@ -24,5 +24,8 @@
"psr-0": {
"Biblys": "src/"
}
},
"scripts": {
"test": "vendor/bin/phpunit tests"
}
}
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
biblys/isbn
===========
# biblys/isbn

[![Build Status](https://travis-ci.org/biblys/isbn.svg?branch=master)](https://travis-ci.org/biblys/isbn)

This package can be used to :
* validate an ISBN code
Expand All @@ -20,7 +21,7 @@ Install with composer:
Run tests with PHPUnit:

* `composer install`
* `phpunit tests/`
* `composer test`


## Usage
Expand Down Expand Up @@ -58,6 +59,10 @@ if ($isbn->isValid()) {

## Changelog

2.0.1 (2016-03-01)
* Added LICENSE file and copyright information
* Added Travis configuration file

2.0.0 (2016-03-01)
* Revamped library as a Composer package

Expand Down
10 changes: 10 additions & 0 deletions src/Biblys/Isbn/Isbn.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
<?php

/*
* This file is part of the biblys/isbn package.
*
* (c) Clément Bourgoin
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file which was distributed with this
* source code.
*/

namespace Biblys\Isbn;

class Isbn
Expand Down
10 changes: 10 additions & 0 deletions src/Biblys/Isbn/Ranges.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
<?php

/*
* This file is part of the biblys/isbn package.
*
* (c) Clément Bourgoin
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file which was distributed with this
* source code.
*/

namespace Biblys\Isbn;

class Ranges
Expand Down
10 changes: 10 additions & 0 deletions tests/IsbnTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
<?php

/*
* This file is part of the biblys/isbn package.
*
* (c) Clément Bourgoin
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file which was distributed with this
* source code.
*/

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
Expand Down

0 comments on commit 325d68d

Please sign in to comment.