Skip to content

Commit

Permalink
release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lichunqiang committed Feb 28, 2018
1 parent edcbf44 commit 4c7377b
Show file tree
Hide file tree
Showing 10 changed files with 1,086 additions and 329 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor
index.php
phpunit.xml
.idea
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2

# faster builds on new travis setup not using sudo
sudo: false
Expand Down
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
Yii2 Hashids
------------
<p align="center">
<a href="https://github.com/yiisoft" target="_blank">
<img src="https://avatars0.githubusercontent.com/u/993323" height="100px">
</a>
<h1 align="center">Yii2 Hashids</h1>
<br>
</p>

[![Build Status](https://img.shields.io/travis/lichunqiang/hashids.svg?style=flat-square)](http://travis-ci.org/lichunqiang/hashids)
[![version](https://img.shields.io/packagist/v/light/hashids.svg?style=flat-square)](https://packagist.org/packages/light/hashids)
[![Download](https://img.shields.io/packagist/dt/light/hashids.svg?style=flat-square)](https://packagist.org/packages/light/hashids)
[![Issues](https://img.shields.io/github/issues/lichunqiang/hashids.svg?style=flat-square)](https://github.com/lichunqiang/hashids/issues)


__NOTE__: The master branch for 2.0 version, that require mini php version is 5.6. You can require `light/hashids:^1.0`to use old version.

## Installation

Install this package via [Composer](https://getcomposer.org/):

```
$ composer require light/hashids=*
$ composer require light/hashids=^2.0
```

## Usage
Expand Down
54 changes: 32 additions & 22 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,35 @@
{
"name": "light/hashids",
"description": "Hashids for Yii2",
"keywords": ["hashids", "yii2", "hash", "hashid", "ids", "youtube", "biyly", "encrypt", "decrypt"],
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "2.0.*",
"hashids/hashids": "1.0.5"
},
"license": "MIT",
"authors": [
{
"name": "lichunqiang",
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {
"light\\hashids\\": "src/"
}
},
"require-dev": {
"phpunit/phpunit": "^4.7"
"name": "light/hashids",
"description": "Hashids for Yii2",
"keywords": ["hashids", "yii2", "hash", "hashid", "ids", "youtube", "biyly", "encrypt", "decrypt"],
"require": {
"php": "^5.6.4 || ^7.0",
"yiisoft/yii2": "~2.0.14",
"hashids/hashids": "^2.0"
},
"license": "MIT",
"authors": [
{
"name": "lichunqiang",
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {
"light\\hashids\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"light\\tests\\": "tests/"
}
},
"require-dev": {
"phpunit/phpunit": "^6.0"
},
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
}
}
}
Loading

0 comments on commit 4c7377b

Please sign in to comment.