Skip to content

Commit

Permalink
Merge pull request #25 from ElForastero/chore/update-dependencies
Browse files Browse the repository at this point in the history
chore(deps): update dependencies and bump new version
  • Loading branch information
ElForastero authored Aug 16, 2022
2 parents b302b84 + cb5ca78 commit c14e51d
Show file tree
Hide file tree
Showing 6 changed files with 1,115 additions and 612 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest, macOS-latest]
php-versions: ['7.3', '7.4', '8.0']
php-versions: ['8.0', '8.1']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
## Release notes

## [v5.0.0](https://github.com/elforastero/transliterate/releases/tag/v5.0.0)
## [v6.0.0](https://github.com/elforastero/transliterate/releases/tag/v5.0.0-RC1)
- Minimal PHP version is now php8.0
- Support for Laravel 9
- Update dependencies
- Update Dockerfile to use [email protected]

## [v5.0.0-RC1](https://github.com/elforastero/transliterate/releases/tag/v5.0.0-RC1)
- Support for Laravel 8
- Drop support of php7.2
- Require phpunit >= 9
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM php:7.2
FROM php:8.0

RUN apt-get update && \
apt-get install -y git zip unzip && \
apt-get install -y git zip unzip libicu-dev && \
docker-php-ext-configure intl && \
docker-php-ext-install intl && \
php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer && \
apt-get -y autoremove && \
apt-get clean && \
Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,21 @@ ElForastero\Transliterate\Transformer::register(\Closure::fromCallable('strtolow
```

> Будьте внимательны, поскольку трансформеры применяются при каждом вызове `Transliterator::make`.
### Разработка

Для прогона PHPUnit тестов можно воспользоваться лежащим в корне Dockerfile:

```bash
docker-compose up --build

...
php_1 | Runtime: PHP 8.0.22
php_1 | Configuration: /srv/app/phpunit.xml
php_1 |
php_1 | ..... 5 / 5 (100%)
php_1 |
php_1 | Time: 00:00.959, Memory: 14.00 MB
php_1 |
php_1 | OK (5 tests, 6 assertions)
```
10 changes: 6 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"name": "elforastero/transliterate",
"description": "Transliteration package for laravel",
"version": "5.0.0-RC1",
"version": "6.0.0",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Eugene Dzhumak",
"email": "[email protected]"
"email": "[email protected]",
"homepage": "https://elforastero.dev",
"role": "Developer"
}
],
"autoload": {
Expand All @@ -21,14 +23,14 @@
}
},
"require": {
"php": ">=7.3",
"php": ">=8.0",
"ext-intl": "*",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0"
},
"require-dev": {
"phpunit/phpunit": ">=9.0",
"orchestra/testbench": ">=6.0",
"friendsofphp/php-cs-fixer": "^2.18",
"friendsofphp/php-cs-fixer": "^3.9",
"brainmaestro/composer-git-hooks": "^2.8"
},
"extra": {
Expand Down
Loading

0 comments on commit c14e51d

Please sign in to comment.