PHPackages                             maree/elm-wasl - 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. maree/elm-wasl

ActiveLibrary[API Development](/categories/api)

maree/elm-wasl
==============

package to use elm wasl api to register and tracking cars and deivers الربط مع خدمات شركة علم خدمة وصل من هيئة النقل السعودية

1151PHP

Since Jul 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mohamedmaree/elm-wasl)[ Packagist](https://packagist.org/packages/maree/elm-wasl)[ RSS](/packages/maree-elm-wasl/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

elm-wasl
========

[](#elm-wasl)

- note: that package created with wasl IG for dispatching Companies v2.18 maybe in future need some updates.

Installation
------------

[](#installation)

You can install the package via [Composer](https://getcomposer.org).

```
composer require maree/elm-wasl
```

Publish your sms config file with

```
php artisan vendor:publish --provider="maree\elmWasl\ElmWaslServiceProvider" --tag="elm-wasl"
```

then change your elm-wasl config from config/elm-wasl.php file

```
    "client-id" => "",//example ACD7A113-XXXX-4B68-B125-xxxxxxxxxx
    "app-id"    => "", //example xd8e9xxx
    "app-key"   => "", //example xx5784489c7147220924b4abb8xxxxxx
```

Usage
-----

[](#usage)

waslRegisterDriverAndCar
------------------------

[](#waslregisterdriverandcar)

- to send driver and car to elm

```
use maree\elmWasl\elmWasl;

elmWasl::waslRegisterDriverAndCar($identityNumber='',$dateOfBirthGregorian='',$emailAddress='',$mobileNumber='',$sequenceNumber='',$plateLetters='',$plateNumbers='',$plateType='');
```

- note : dateOfBirthGregorian in that format 'Y-m-d'
- note : add mobile with country code ex: +9665000000000
- note : leave space between plateLetters ex: 'a b c'
- note : car plate Types exists in api documentation sent to you

```
$plateTypes = ['1' => 'خصوصي' ,'2' => 'نقل عام' ,'3' => 'نقل خاص' ,'4' => 'حافلة صغيرة عامة', '5' => 'حافلة صغيرة خاصة', '6' => 'اجرة' ,'7' => 'معدات ثقيلة', '8' => 'تصدير' ,'9' =>'دبلوماسي' ,'10' =>'دراجة نارية', '11' => 'مؤقت'];
```

waslCheckEligibility
--------------------

[](#waslcheckeligibility)

- to check if driver and car info that i sent to wasl accepted or refused or waiting

```
use maree\elmWasl\elmWasl;

elmWasl::waslCheckEligibility($identityNumber = '');
```

- note : you run this service by cron job every day or 12 hour to check if driver accepted or refused and update his status in your app

registerTrip
------------

[](#registertrip)

- to send trips that finished to wasl check first you sent that trip or no

```
use maree\elmWasl\elmWasl;

elmWasl::registerTrip($sequenceNumber ='',$driverId='',$tripId='',$distanceInMeters=0,$durationInSeconds=0,$customerRating=0.0,$customerWaitingTimeInSeconds=0,$originCityNameInArabic='',$destinationCityNameInArabic='',$originLatitude=0.0,$originLongitude=0.0,$destinationLatitude=0.0,$destinationLongitude=0.0,$pickupTimestamp='',$dropoffTimestamp='',$startedWhen='',$tripCost=0.0);
```

- note : $sequenceNumber is car sequence number 'الرقم التسلسلي'

registerCaptainsLocations
-------------------------

[](#registercaptainslocations)

- send moving captains updated locations

```
use maree\elmWasl\elmWasl;

elmWasl::registerCaptainsLocations($driverIdentityNumber='',$vehicleSequenceNumber='',$latitude=0.0,$longitude=0.0,$hasCustomer=true,$updatedWhen='');
```

- note : you can use cron job to run that service every minute or you can execute that service inside update your driver locations api 'tracking drivers' to run every time driver location changes

note
----

[](#note)

if you have problem with dates you can convert them like that

```
    $pickupTimestamp = new DateTime($trip->pickupTimestamp, new DateTimeZone('Asia/Riyadh'));
    $pickupTimestamp = $pickupTimestamp->format(DateTime::ISO8601);
```

current elm wasl services :
---------------------------

[](#current-elm-wasl-services-)

- waslRegisterDriverAndCar
- waslCheckEligibility
- registerTrip
- registerCaptainsLocations

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e88e6da55b1e4b359544c3e94fab80c6f73b3ce7ac82afd1d872a41aeb349fa?d=identicon)[mohamedmaree](/maintainers/mohamedmaree)

---

Top Contributors

[![mohamedmaree](https://avatars.githubusercontent.com/u/12659069?v=4)](https://github.com/mohamedmaree "mohamedmaree (11 commits)")

### Embed Badge

![Health badge](/badges/maree-elm-wasl/health.svg)

```
[![Health](https://phpackages.com/badges/maree-elm-wasl/health.svg)](https://phpackages.com/packages/maree-elm-wasl)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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