Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Commit

Permalink
Merge branch 'php7.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
corpsee committed Sep 1, 2018
2 parents adca74e + cf717bd commit a4721d9
Show file tree
Hide file tree
Showing 19 changed files with 619 additions and 603 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ cache:
- $HOME/.composer/cache

php:
- 5.6
- 7.0
- 7.1
- 7.2

Expand All @@ -20,7 +18,7 @@ install:
- composer install

script:
- vendor/bin/phpunit --coverage-clover=coverage.xml
- vendor/bin/phpunit --configuration=phpunit.xml --coverage-clover=coverage.xml

after_success:
- bash <(curl -s https://codecov.io/bash)
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,15 @@ var_dump(StringHelper::contains('example', 'xampl')); // Prints true
echo StringHelper::cut('example', 6); // Prints 'exampl...', '...' is default suffix
echo StringHelper::cutWords('simple example', 1); // Prints 'example...', '...' is default suffix

echo StringHelper::transliterate('очень простой пример'); // Prints transliterated 'ochen prostoj primer'
echo StringHelper::standardize('очень простой Пример'); // Prints standardizated 'ochen_prostoj_primer', '_' is default words separator
echo StringHelper::standardize('очень простой Пример', '-'); // Prints 'ochen-prostoj-primer', use '-' for slugify string
echo StringHelper::transliterate('очень простой пример', 'Russian-Latin/BGN'); // Prints transliterated 'ochen prostoj primer'
echo StringHelper::standardize('очень простой Пример', 'Russian-Latin/BGN'); // Prints standardizated 'ochen_prostoj_primer', '_' is default words separator
echo StringHelper::standardize('очень простой Пример', 'Russian-Latin/BGN', '-'); // Prints 'ochen-prostoj-primer', use '-' for slugify string

var_dump(StringHelper::toArray('1,2,3,')); // Prints Array ['1', '2', '3'], ',' is default separator

echo StringHelper::snakecaseToCamelcase('snake_case'); // Prints 'SnakeCase'
echo StringHelper::snakecaseToCamelcase('snake_case', true); // Prints 'snakeCase'
echo StringHelper::camelcaseToSnakecase('CamelCase'); // Prints 'camel_case'
```

### UrlHelper
Expand Down
14 changes: 5 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,17 @@
}
},
"require": {
"php": ">=5.6.0",
"php": ">=7.1.0",
"ext-mbstring": "*",
"ext-bcmath": "*"
"ext-bcmath": "*",
"ext-intl": "*"
},
"require-dev": {
"phpunit/phpunit": "~5.7",
"symfony/yaml": "~3.4",
"doctrine/instantiator": "1.0.*",
"phpunit/php-token-stream": "~1.0",
"phpdocumentor/reflection-docblock": "~2.0",
"myclabs/deep-copy": "~1.7.0"
"phpunit/phpunit": "~7.0"
},
"extra": {
"platform": {
"php": "5.6.*"
"php": "7.1.*"
}
}
}
Loading

0 comments on commit a4721d9

Please sign in to comment.