Download the PHP package boeki/migration-tool without Composer
On this page you can find all versions of the php package boeki/migration-tool. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package migration-tool
MigrationTool
Name Rectifier strategy
Case one part name
Strategy
-
The given character string is compared to each first name contained in the configuration file. Each time a first name is contained within the character string, then it is saved in a table of "matches"
-
We then loop on this table, and we consider that the first name that will be used will be the match found with the most character
- Now it remains to recover the last name. We first check which side of the chosen first name has the most character left. Then associate this character string with the last name
Examples
return
return
return
Case multi-parts name
Strategy
-
The given character string is separated by spaces in an array. Each part of the table is then compared to each first name contained in the configuration file in order to determine whether some are first names.
- Then, we want to separate the different parts into two strings: the string in which we concatenate the last name and the other string the first names.
-
If there is no first name in the array, then the last index of the array is considered to be a first name.
-
If there are only first names, then the first index of the array is considered to be a family name and the others are first names.
- Otherwise, we separate in this way: we increment the array by separating the first and last names. If a family name is crossed, and a first name has already been concatenated then all subsequent parts are considered to be family names. Same thing if a compound first name is concatenated.
Examples
return
return
return