Skip to content

Commit 8ae4494

Browse files
committed
Added support for type hints
1 parent 6b52590 commit 8ae4494

File tree

6 files changed

+191
-177
lines changed

6 files changed

+191
-177
lines changed

.travis.yml

-6
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,9 @@ language: php
22

33
matrix:
44
include:
5-
- php: 5.3
6-
dist: precise
7-
- php: 5.4
8-
- php: 5.5
9-
- php: 5.6
105
- php: 7.0
116
- php: 7.1
127
- php: 7.2
13-
- php: hhvm
148
fast_finish: true
159

1610
sudo: false

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## v1.5.0 - 2018.09.04
2+
### Removed
3+
- Support for PHP 5.x
4+
5+
### Added
6+
- Type hints
7+
8+
### Changed
9+
-Targeted PHP version is ^7.0
10+
111
## v1.4.0 - 2016.08.10
212
### Added
313
- `ensurePrefix` and `ensureSuffix` methods

README.md

+20-9
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,41 @@ Opis String
88
Manipulate multibyte strings
99
----------------------------
1010

11-
This tiny library allows you to manipulate multibyte encoded strings,
12-
using an object-oriented paradigm. The library has **no dependencies** to
13-
*mbstring* or similar PHP extensions and is compatible with PHP 5.3+, PHP 7.0 and HHVM.
11+
Opis String is a tiny library that allows you to work with multibyte encoded strings in an object-oriented manner.
12+
The library has no dependencies to *mb_string* or similar PHP extensions.
1413

1514
### Documentation
1615

17-
Documentation and examples can be found [here](https://www.opis.io/string).
16+
The full documentation for this library can be found [here][documentation].
1817

1918
### License
2019

21-
**Opis String** is licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
20+
**Opis String** is licensed under the [Apache License, Version 2.0][apache_license].
2221

2322
### Requirements
2423

25-
* PHP 5.3.* or higher
24+
* PHP ^7.0
2625

27-
### Installation
26+
## Installation
2827

29-
This library is available on [Packagist](https://packagist.org/packages/opis/string) and can be installed using [Composer](http://getcomposer.org).
28+
**Opis String** is available on [Packagist] and it can be installed from a
29+
command line interface by using [Composer].
30+
31+
```bash
32+
composer require opis/string
33+
```
34+
35+
Or you could directly reference it into your `composer.json` file as a dependency
3036

3137
```json
3238
{
3339
"require": {
34-
"opis/string": "^1.4.0"
40+
"opis/string": "^1.5"
3541
}
3642
}
3743
```
44+
45+
[documentation]: https://opis.io/string
46+
[apache_license]: https://www.apache.org/licenses/LICENSE-2.0 "Apache License"
47+
[Packagist]: https://packagist.org/packages/opis/string "Packagist"
48+
[Composer]: https://getcomposer.org "Composer"

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "opis/string",
3-
"description": "A standalone library for manipulating multibyte strings",
3+
"description": "Multibyte strings as objects",
44
"keywords": ["opis", "string", "utf-8", "multi-byte", "string manipulation"],
5-
"homepage": "http://opis.io",
5+
"homepage": "https://opis.io/string",
66
"license": "Apache-2.0",
77
"authors": [
88
{
@@ -11,10 +11,10 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=5.3.0"
14+
"php": ">=7.0.0"
1515
},
1616
"require-dev": {
17-
"phpunit/phpunit": "^4.8"
17+
"phpunit/phpunit": "^6.5"
1818
},
1919
"autoload": {
2020
"psr-4": {
@@ -28,7 +28,7 @@
2828
},
2929
"extra": {
3030
"branch-alias": {
31-
"dev-master": "1.4.x-dev"
31+
"dev-master": "1.5.x-dev"
3232
}
3333
}
3434
}

0 commit comments

Comments
 (0)