Download the PHP package noxxienl/nladdresslexer without Composer

On this page you can find all versions of the php package noxxienl/nladdresslexer. 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 nladdresslexer

Dutch address parser

Dutch address parser is a library to parse address lines into the segments street, number and suffix.

packagist version

Example: Plein 1926 12 A

Will be parsed to:

Street Number Suffix
Plein 1926 12 A

Installation

Composer is used to install this package

Upgrade from 1.x

2.x requires a minimum of php 8.1 to run. Support for php 8 and lower has been dropped.

To upgrade from 1.x simply update your composer file with

and run:

Usage

Usage with splitting address

Sometimes you may have address that does not have the format street, number & suffix. To let the parser correctly do its work you need to split the string on your own before the parser can do its work.

For example: 50 A, Ringweg Zuid / Rijksweg A20

Usage for splitting only numbers

Sometimes you may wish to split only the number and suffix. You can do so by setting the formatting of the parser to the following before executing the parsing:

Be carefull: When setting the address format, it is changed for every parsing to beyond that point. Reset the format to its original state when you want to parse a full address:

Testing

Testing is done using pestphp. (https://pestphp.com/)

To run the tests.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Bugs

Submit a issue to the github repository and if you can find the fix be sure to also submit a pull request!

License

MIT


All versions of nladdresslexer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
doctrine/lexer Version ^3.0
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 noxxienl/nladdresslexer contains the following files

Loading the files please wait ....