PHPackages                             ehsan\_coder/neshan-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ehsan\_coder/neshan-laravel

ActiveLibrary[API Development](/categories/api)

ehsan\_coder/neshan-laravel
===========================

Easy-to-use SDK for implementing Neshan RestFull web APIs in your Laravel projects.

v1.1.2(3y ago)2974MITPHPPHP ^7.2|^8.0

Since Sep 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ehsan-coder/neshan-laravel)[ Packagist](https://packagist.org/packages/ehsan_coder/neshan-laravel)[ RSS](/packages/ehsan-coder-neshan-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (7)Used By (0)

 [ ![Logo](neshan.png) ](https://github.com/ehsan-coder/neshan-laravel)

### Neshan Laravel SDK

[](#neshan-laravel-sdk)

 Easy-to-use SDK for implementing Neshan APIs in your Laravel projects.

Install
-------

[](#install)

> The easiest way to install is by using Composer:

```
composer require ehsan_coder/neshan-laravel
```

---

> Composer is a dependency manager for PHP which allows you to declare the libraries your project depends on, and it will manage (install/update) them for you. If you are not familiar with Composer, you can read its documentations and download it via [getcomposer.org](https://getcomposer.org/).

configuration `.env` file
-------------------------

[](#configuration-env-file)

> add account information into `.env` file

```
NESHAN_API_KEY=your neshan api key
```

---

usage
-----

[](#usage)

To use the package, you need an API key. To get that you should have a [Neshan](https://neshan.org/) account. Register and get your API key.
Use `NeshanFacade` on top of your controller or wherever you want:

```
use EhsanCoder\NeshanLaravel\NeshanFacade;
```

> all APIs of Neshan exist in this Facade! for example to use `distanceMatrix` API we can use:

```
$response = EhsanCoder\NeshanLaravel\NeshanFacade::distanceMatrix($origins, $destinations, $type, $timeout = 10);
```

### for Example

[](#for-example)

```
$response = EhsanCoder\NeshanLaravel\NeshanFacade::distanceMatrix('36.279589071020425,50.00901454609652','38.279589071020425,51.00901454609652', EhsanCoder\NeshanLaravel\NeshanAPI::DISTANCE_MATRIX_CAR_TYPE);
```

Parameters
----------

[](#parameters)

ParameterRequiredDescriptionTypeExample$originsYesall origins! every origin must separated by pipe characterstring36.279589071020425,50.00901454609652$destinationsYessame of origins parameterstring38.279589071020425,51.00901454609652$typeNodefault value is carstringcar$timeoutNodefault value of timeout is 5 secint10

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Total

6

Last Release

1286d ago

PHP version history (2 changes)V1.0.0PHP &gt;=7.2.5,&lt;8.2

v1.1.2PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/e33c60e75be155de4b37b0ba04642de57bd71bb33b0ba13a5427093bfe12b966?d=identicon)[ehsan-coder](/maintainers/ehsan-coder)

---

Top Contributors

[![ehsan-coder](https://avatars.githubusercontent.com/u/52177938?v=4)](https://github.com/ehsan-coder "ehsan-coder (9 commits)")[![hopeofiran](https://avatars.githubusercontent.com/u/91685701?v=4)](https://github.com/hopeofiran "hopeofiran (3 commits)")[![ehsan-shafieinejad](https://avatars.githubusercontent.com/u/112774967?v=4)](https://github.com/ehsan-shafieinejad "ehsan-shafieinejad (1 commits)")

---

Tags

neshanneshan laravelneshan APImap laravel

### Embed Badge

![Health badge](/badges/ehsan-coder-neshan-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/ehsan-coder-neshan-laravel/health.svg)](https://phpackages.com/packages/ehsan-coder-neshan-laravel)
```

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[echolabsdev/prism

A powerful Laravel package for integrating Large Language Models (LLMs) into your applications.

2.3k388.3k10](/packages/echolabsdev-prism)[sburina/laravel-whmcs-up

WHMCS API client and user provider for Laravel

271.3k](/packages/sburina-laravel-whmcs-up)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
