PHPackages                             yasser-elgammal/laravel-wasl-erental - 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. yasser-elgammal/laravel-wasl-erental

ActiveLibrary

yasser-elgammal/laravel-wasl-erental
====================================

Laravel integration for Saudi TGA and Elm Rabet WASL eRental APIs for rental companies, vehicle eligibility, location updates, and rental operations.

v1.0.0(1mo ago)15MITPHPPHP ^8.0

Since Jul 13Pushed 1mo agoCompare

[ Source](https://github.com/YasserElgammal/laravel-wasl-erental)[ Packagist](https://packagist.org/packages/yasser-elgammal/laravel-wasl-erental)[ RSS](/packages/yasser-elgammal-laravel-wasl-erental/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Laravel WASL eRental
====================

[](#laravel-wasl-erental)

Laravel API client for Rabet WASL eRental / Rental Companies integrations in Saudi Arabia.

Package: `yasser-elgammal/laravel-wasl-erental`

About WASL Platform
-------------------

[](#about-wasl-platform)

WASL is an advanced digital platform launched by Saudi Arabia's Transport General Authority (TGA) in cooperation with Elm. It connects land-transport establishments with regulatory authorities to support vehicle tracking and the monitoring of transportation activities, including taxis, freight trucks, and freight brokers, helping improve safety, operational efficiency, and regulatory compliance across Saudi Arabia's transportation sector.

This Laravel package focuses specifically on integration with the **Rabet WASL eRental API for rental companies**. It provides fluent builders and raw service methods for vehicle registration, vehicle eligibility inquiry, current-location updates, and rental-operation registration. All operations return a `WaslResponse` DTO.

It does not create database tables, jobs, routes, scheduled tasks, or application-specific model updates.

Requirements
------------

[](#requirements)

- PHP 8.0+
- Laravel 13 requires PHP 8.3+
- Laravel 9, 10, 11, 12, or 13

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

[](#installation)

```
composer require yasser-elgammal/laravel-wasl-erental
```

Publish and check the configuration:

```
php artisan vendor:publish --tag=wasl-erental-config
php artisan wasl-erental:check-config
```

Configuration
-------------

[](#configuration)

```
WASL_ERENTAL_BASE_URL=https://rabet-wasl.api.elm.sa
WASL_ERENTAL_CLIENT_ID=
WASL_ERENTAL_APP_ID=
WASL_ERENTAL_APP_KEY=
WASL_ERENTAL_TIMEOUT=30
WASL_ERENTAL_RETRY_TIMES=1
WASL_ERENTAL_RETRY_SLEEP=200
WASL_ERENTAL_THROW=false
WASL_ERENTAL_LOG_REQUESTS=false
WASL_ERENTAL_LOG_CHANNEL=null
```

Never expose `app-key` in frontend or mobile applications. Send all WASL requests from your backend.

Quick Start
-----------

[](#quick-start)

```
use YasserElgammal\WaslErental\Facades\Wasl;

$response = Wasl::vehicleInquiry()
    ->plateLetters(right: 'ا', middle: 'ب', left: 'ح')
    ->plateNumber('1234')
    ->sequenceNumber('123456879')
    ->send();

if ($response->isVehicleValid()) {
    // Allow the vehicle to be rented.
}
```

Vehicle inquiry also accepts the complete plate:

```
$response = Wasl::vehicleInquiry()
    ->plate('ا ب ح 1234')
    ->sequenceNumber('123456879')
    ->send();
```

Use one plate-input style per inquiry. In `plateLetters()`, the arguments are ordered from the right side of the plate to the left: `right`, `middle`, then `left`.

Complete Guide
--------------

[](#complete-guide)

The [Complete Guide](docs/complete-guide.md) is the full package reference. It covers:

- [Package scope](docs/complete-guide.md#what-this-package-does) and [requirements](docs/complete-guide.md#requirements)
- [Installation](docs/complete-guide.md#installation), [publishing configuration](docs/complete-guide.md#publish-configuration), and [configuration](docs/complete-guide.md#configuration)
- [Security](docs/complete-guide.md#security), [authentication headers](docs/complete-guide.md#headers), and [base URL](docs/complete-guide.md#base-url-and-endpoints)
- [Available endpoints](docs/complete-guide.md#base-url-and-endpoints) and [facade entry points](docs/complete-guide.md#facade-entry-points)
- [Fluent builder and raw-array usage](docs/complete-guide.md#facade-entry-points)
- [`WaslResponse` methods](docs/complete-guide.md#response-object)
- [Technical success versus business success](docs/complete-guide.md#technical-success-vs-business-success)
- [Vehicle registration](docs/complete-guide.md#vehicle-registration)
- [Arabic plate letters and their right-to-left order](docs/complete-guide.md#arabic-plate-letters)
- [Vehicle eligibility inquiry using either plate-input style](docs/complete-guide.md#vehicle-eligibility-inquiry)
- [Current-location updates and partial failures](docs/complete-guide.md#update-current-location)
- [Rental-operation registration](docs/complete-guide.md#rental-operation-registration)
- [Date formatting](docs/complete-guide.md#date-formatting)
- [Validation](docs/complete-guide.md#validation-exceptions), [connection, and configuration exceptions](docs/complete-guide.md#connection-and-config-exceptions)
- [Optional request logging](docs/complete-guide.md#logging)
- [Suggested application workflow](docs/complete-guide.md#suggested-application-workflow)
- [Troubleshooting](docs/complete-guide.md#troubleshooting)

Supported Services
------------------

[](#supported-services)

ServiceEndpointVehicle registration`POST /api/eRental/v1/vehicles`Vehicle eligibility inquiry`GET /api/eRental/v1/inquiry/vehicles`Current-location update`POST /api/eRental/v1/locations`Rental-operation registration`POST /api/eRental/v1/rental-operation`License
-------

[](#license)

MIT.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance90

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

48d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/35766609?v=4)[Yasser Elgammal](/maintainers/YasserElgammal)[@YasserElgammal](https://github.com/YasserElgammal)

---

Top Contributors

[![YasserElgammal](https://avatars.githubusercontent.com/u/35766609?v=4)](https://github.com/YasserElgammal "YasserElgammal (1 commits)")

---

Tags

laravelsaudi-arabiaelmwaslcar-rentalTgawasl-erentalrabetrental-companiesvehicle-eligibilityvehicle-tracking

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yasser-elgammal-laravel-wasl-erental/health.svg)

```
[![Health](https://phpackages.com/badges/yasser-elgammal-laravel-wasl-erental/health.svg)](https://phpackages.com/packages/yasser-elgammal-laravel-wasl-erental)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3365.5M359](/packages/psalm-plugin-laravel)[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k118.2M1.0k](/packages/laravel-socialite)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

80732.6M270](/packages/laravel-mcp)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

818355.4k3](/packages/defstudio-telegraph)[api-platform/laravel

API Platform support for Laravel

58190.1k22](/packages/api-platform-laravel)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.5k](/packages/forjedio-inertia-table)

PHPackages © 2026

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