All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Package
avto-dev/extended-laravel-validator
up to^4.0
- Laravel
11.x
support
- Minimal Laravel version now is
10.0
- Version of
composer
in docker container updated up to2.7.6
- Updated dev dependencies
- Support Laravel
10.x
- Support PHPUnit
v10
- Minimal require PHP version now is
8.0.2
- Composer version up to
2.6.5
- Package
phpstan/phpstan
up to^1.10
- Package
avto-dev/static-references-laravel
up to^4.5
- Package
avto-dev/extended-laravel-validator
up to^3.7
- Support Laravel
9.x
- Minimal required PHP version now is
7.3
- Wrong behavior in
IDEntityCadastralNumber
#20
- Validation Region data in
IDEntityDriverLicenseNumber
- Dependency
tarampampam/wrappers-php
because this package was deprecated and removed
- Support PHP
8.x
- Composer
2.x
is supported now
- Laravel
8.x
is supported now - Minimal Laravel version now is
6.0
(Laravel5.5
LTS got last security update August 30th, 2020) - CI completely moved from "Travis CI" to "Github Actions" (travis builds disabled)
- Minimal required PHP version now is
7.2
- Maximal
illuminate/*
packages version now is7.*
- Method
Transliterator::transliterateString()
usesStringy\Stringy::toAscii()
insteadIlluminate\Support\Str::ascii()
for backward compatibility with previous versions - Classes
Transliterator
andNormalizer
marked as internal
- Package
danielstjules/stringy
for strings transliteration
- Maximal
illuminate/*
packages version now is~6.0
- Minimal
illuminate/*
packages version now is^5.5
- Minimal version of
avto-dev/extended-laravel-validator
package now^3.2
- Minimal version of
avto-dev/static-references-laravel
package now^4.0
- Typed IDEntities validation depends on
avto-dev/static-references-laravel
package service-provider loading styleci.io
rules- Config file location
./src/config/identity.php
→./config/identity.php
- Method signatures in
AvtoDev\IDEntity\IDEntity
class:::typeIsSupported($type): bool
→::typeIsSupported(string $type): bool
::is(string $value, $type): bool
→::is(string $value, string $type): bool
- Method signatures in
AvtoDev\IDEntity\IDEntityInterface
interface:::is(string $value, $type): bool
→::is(string $value, string $type): bool
- Constructor in
AvtoDev\IDEntity\Types\AbstractTypedIDEntity
finalized - Method signatures in
AvtoDev\IDEntity\HasCadastralNumberInterface
interface:->getRegionData(): ?\AvtoDev\StaticReferences\References\CadastralDistricts\CadastralRegionEntry
→->getDistrictData(): ?\AvtoDev\StaticReferences\References\Entities\CadastralDistrict
- Method signatures in
AvtoDev\IDEntity\HasRegionDataInterface
interface:->getRegionData(): ?\AvtoDev\StaticReferences\References\AutoRegions\AutoRegionEntry
→->getRegionData(): ?\AvtoDev\StaticReferences\References\Entities\SubjectCodesInfo
- Typed IDEntity classes now contains finalized static method
::make(string $value, ?string $type = null): self
- Validation logic in
AvtoDev\IDEntity\Types\IDEntityCadastralNumber
now more strict - Dev-dependencies
phpstan/phpstan
andphpunit/phpunit
updated - Unit-tests re-wrote
- GitHub Actions for a tests running
- PHP 7.4 support
tarampampam/wrappers-php
dependency- Class
AvtoDev\IDEntity\Types\IDEntityCadastralNumber
now contains new methods:->getDistrictCode(): ?int
->getAreaCode(): ?int
->getSectionCode(): ?int
->getParcelCode(): ?int
- Dev-dependency
mockery/mockery
IDEntityCadastralNumber
for cadastral number
- Docker-based environment for development
- Project
Makefile
- VIN code checksum validation method (
isChecksumValidated
) forIDEntityVin
declare(strict_types = 1)
into each class
AvtoDev\IDEntity\Helpers\Normalizer::normalizeDashChar
now always returns empty stringAvtoDev\IDEntity\IDEntitiesServiceProvider
→AvtoDev\IDEntity\ServiceProvider
- Dependency
laravel/framework
changed toilluminate/*
- Composer scripts
- Method signatures in classes now type-hinted (where it possible)
- Constants
ID_TYPE_AUTO
,ID_TYPE_UNKNOWN
,ID_TYPE_VIN
,ID_TYPE_GRZ
,ID_TYPE_STS
,ID_TYPE_PTS
,ID_TYPE_CHASSIS
,ID_TYPE_BODY
,ID_TYPE_DRIVER_LICENSE_NUMBER
moved into interfaceIDEntityInterface
(fromIDEntity
class) - Constructor in class
IDEntity
now protected (not available outside class) - Method
getExtendedTypesMap
inIDEntity
now uses direct call to theIlluminate\Container\Container
instance instead callingresolve
laravel helper - Validation using
avto-dev/extended-laravel-validator
now works without laravel validator - Accessing to the data from
avto-dev/static-references-laravel
package now works without laravel dependency
- Auto-registering service-providers from packages
avto-dev/extended-laravel-validator
andavto-dev/static-references-laravel
- Maximal PHP version now is undefined
- Maximal
laravel/framework
version now is5.7.*
- CI changed to Travis CI
- CodeCov integrated
- Issue templates updated
- Replacement
space
todash
between words was removed in normalize method forCHASSIS
identifier. #4
- Minimal
avto-dev/extended-laravel-validator
package version now2.0
IDEntityGrz
now now followsГОСТ Р 50577-93
excepts "transit" and "diplomatic" numbers formats (be careful - this changes can break your previous code)
IDEntityGrz
- constants with patters formats, GOST typesIDEntityGrz
- methodgetFormatPatternByGostType()
IDEntityGrz
- methodgetGostTypesByPattern()
IDEntityGrz
- methodgetFormatPattern()
- Package config file. That can extends package types map. #2
- Property
can_be_auto_detected
to theAbstractTypedIDEntity
- Method
canBeAutoDetected
to theAbstractTypedIDEntity
andTypedIDEntityInterface
#3
- CI config updated
- Package PHPUnit minimal version now is
5.7.10
- Unimportant PHPDoc blocks removed
- Code a little bit refactored
- Region detection method for
GRZ
identifier
DLN
identifier now works only with Russian identifier number formats
- Transliterate method for
GRZ
identifier - Transliterate method for
DLN
identifier
- Method for extracting region code from
GRZ
identifier refactored
- Supports for
GRZ
"taxi" format
- Supports for "Driver License Number" (
DLN
)
- Migrated to the
v2.0
of packageavto-dev/static-references-laravel
::is()
method now supports array of types
- Fix body number normalization method (now spaces inside number does not replaced with single dash char)
- Composer dependencies versions updated