Download the PHP package adci/full-name-parser without Composer

On this page you can find all versions of the php package adci/full-name-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package full-name-parser

full-name-parser

Latest Stable Version License Build Status Test Coverage Maintainability

Description

FullNameParser is designed to parse large batches of full names in multiple inconsistent formats, as from a database, and continue processing without error, even if given some unparsable garbage entries.

FullNameParser::parse():

  1. accepts a string containing a person's full name, in any format,
  2. analyzes and attempts to detect the format of that name,
  3. (if possible) parses the name into its component parts, and
  4. (by default) returns an object containing all individual parts of the name:
    • title (string): title(s) (e.g. "Ms." or "Dr.")
    • first (string): first name or initial
    • middle (string): middle name(s) or initial(s)
    • last (string): last name or initial
    • nick (string): nickname(s)
    • suffix (string): suffix(es) (e.g. "Jr.", "II", or "Esq.")
    • error (array of strings): any parsing error messages

Optionally, FullNameParser can also:

Now FullNameParser cannot:

If this is not what you're looking for, is overkill for your application, or is in the wrong language, check the "Credits" section at the end of this file for links to other parsers which may suit your needs better.

Use

Basic Use

Advanced options

suffixes(array of string, optional): Override list of suffixes to search. These suffixes can end with dot in source name string. Though you must not include dots in these suffixes, dots are handled automatically on parsing.

numeral_suffixes(array of string, optional): Override list of numeral suffixes to search. Do not contain trailing dots.

prefixes(array of string, optional): Override list of prefixes to search.

academic_titles(array of string, optional): Override list of academic titles to search.

part(string, optional): The name of a single part to return.

fix_case (bool|integer, optional): Fix case of output name.

throws (bool|integer, optional): Makes parsing errors throw PHP errors.

mandatory_first_name(bool|integer, optional): Throw error if first name not found.

mandatory_last_name(bool|integer, optional): Throw error if last name not found.

mandatory_middle_name(bool|integer, optional): Throw warning if a lot of middle names.

Advanced Use

Reporting Bugs

If you find a name this function does not parse correctly, or any other bug, please report it here: https://github.com/adci/full-name-parser/issues

Credits and precursors

This parser is based on and compatible with davidgorges/human-name-parser.

It also implements all tests and most of additional functionality from dschnelldavis/parse-full-name.


All versions of full-name-parser with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
ext-mbstring Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package adci/full-name-parser contains the following files

Loading the files please wait ....