moltaqa/wasl 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

moltaqa/wasl

最新稳定版本:v1.0.11

Composer 安装命令:

composer require moltaqa/wasl

包简介

Package to assest our team handling the wasl integration

README 文档

README

Latest Version on Packagist Total Downloads

moltaqa/wasl works for Laravel 8 , 9 and 10 applications running on PHP 8.0 and above.

Based On

Integration Guide for Dispatching Companies

  • Version v2.24
  • Version date 22/05/2023

Official Package Documentation

The official documentation for moltaqa wasl can be found on the Moltaqa Packages website.

Installing

The recommended way to install WASL is through Composer.

composer require moltaqa/wasl

Publishing Service Provider

Supports auto discovery

php artisan vendor:publish --provider="Moltaqa\Wasl\WaslServiceProvider"

Publishing Assets

to publish WASL config and lang

php artisan vendor:publish --tag=moltaqa-wasl

Basic Usage

Use Wasl::getInstance() to create and initialize a WASL instance.

# List Supported Vehicle Plate Letters
echo Wasl::getInstance()->getVehiclePlateLetters();

# Register a driver and his vehicle
# has an option to calculate the value of "dateOfBirthHijri" 
echo Wasl::getInstance()->registerDriverAndVehicle(
         driverData: [
             "driver" => [
                 "identityNumber" => "1234567890",
                 "dateOfBirthHijri" => "1411/01/01",
                 "dateOfBirthGregorian" => "1990-01-01",
                 "emailAddress" => "address@email.com",
                 "mobileNumber" => "+966512345678",
             ]
         ],
         vehicleData: [
             "vehicle" => [
                 "sequenceNumber" => "123456879",
                 "plateLetterRight" => "ا",
                 "plateLetterMiddle" => "ا",
                 "plateLetterLeft" => "ا",
                 "plateNumber" => "1234",
                 "plateType" => "1"
             ]
         ],
         calcHijriDate: false
     );

# check if a driver registration is still valid at WASL
echo Wasl::getInstance()->driverCheckEligibility(identityNumbers: '1234567890');

# check if list of drivers registrations is still valid at WASL
echo Wasl::getInstance()->driverCheckEligibility(identityNumbers: ['1234567890','1234567891']);

Credits

License

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

统计信息

  • 总下载量: 79
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-22