Download the PHP package koenschipper/laravel-address-parser without Composer

On this page you can find all versions of the php package koenschipper/laravel-address-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 laravel-address-parser

Laravel Dutch Address Parser

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A robust and simple Laravel package for parsing Dutch address data. This parser separates street names, house numbers, additions, postcodes, and cities from a single text string, even with complex formats.

Features

Installation

You can install the package via composer:

You can publish the config file with (optional):

Usage

You can use the parser via the Facade, the helper function, or the Artisan command.

Usage via Facade

The LaravelAddressParser::parse() method returns an Address object.

Usage via Helper

For quick access, you can use the helper function:

Street and Number Only (Array)

If you only want the street and the house number as a simple array:

Validation in Laravel

You can use the included validation rule in your Request classes or controllers:

Artisan Command

Test addresses directly from your terminal:

Address Object Properties

The Address object has the following properties:

The object can also be converted to an array or JSON (with snake_case keys):

Testing

Need a Laravel Developer?

If you're looking for a dedicated Laravel developer to help you with your project, feel free to reach out via my website: koenschipper.com.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-address-parser with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3 || ^8.4 || ^8.5
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.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 koenschipper/laravel-address-parser contains the following files

Loading the files please wait ...