Download the PHP package naif/saudiaddress without Composer

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

Saudi Address - Laravel Package

Laravel wrapper for the Saudi National Address APIs.

Requirements

Installation

Laravel 5.5+ uses auto-discovery, so the service provider and facade are registered automatically.

For Laravel < 5.5, add to config/app.php:

Configuration

API Key

Get your API key from https://api.address.gov.sa/ and add it to your .env:

The default API URL is already configured. Override it only if needed:

Optional Settings

Publish Config

To customize the configuration file:

Usage

Get Regions

Get Cities

Get Districts

Reverse Geocode

Get address details from latitude/longitude coordinates:

Verify Address

Verify an address by building number, postal code, and additional number:

Free-Text Address Search

Search for addresses using free-text query:

Fixed-Parameter Address Search

Search for addresses using specific parameters:

Bulk Address Search

Search for multiple addresses at once (up to 10):

Short Address Lookup

Look up a national address by short address code (4 letters + 4 digits):

Verify Short Address

Check whether a short address code is valid:

POI Free-Text Search

Search for points of interest using free text:

POI Fixed-Parameter Search

Search for points of interest with specific parameters:

Nearest POI

Find nearest points of interest by coordinates:

Service Categories

Get service categories for POI search:

Service Sub-Categories

Get sub-categories for a given service category:

Send OTP (Address By Phone)

Send OTP to a mobile number for address lookup:

Address By Phone

Get addresses associated with a phone number after OTP verification:

Feature Extents

Get geographic extents for a feature layer:

Error Handling

All methods throw typed exceptions that extend SaudiAddressException:

Testing

Support

License

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


All versions of saudiaddress with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
guzzlehttp/guzzle Version ^6.3|^7.0
illuminate/support Version ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^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 naif/saudiaddress contains the following files

Loading the files please wait ...