定制 yasserbelhimer/laravel-yalidine-dz-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

yasserbelhimer/laravel-yalidine-dz-api

Composer 安装命令:

composer require yasserbelhimer/laravel-yalidine-dz-api

包简介

Yalidine API

README 文档

README

Simple laravel package to use Yalidine dz API

Installation, and Usage Instructions

This package allows you to consume Yalidine dz Api using laravel.

composer require yasserbelhimer/laravel-yalidine-dz-api

First at all generate your api and token in yalidine website https://www.yalidine.com/

Set API ID and API TOKEN in the .env

YALIDINE_API_ID= your yalidine api id
YALIDINE_API_TOKEN= your yalidine api token

Once installed you can do stuff like this:

To know more about arguments and parametres check yalidine API documentation.

Get your parcels:

To get all your parcels pass an empty array to getParcels([]) function.

    $parcels = Yalidine::getParcels([]);

To get some specific parcels pass an array of tracking parcels getParcels($trackings) function.

    $trackings = ['YAL-PAR1','YAL-PAR2'....]; // list of your parcels tracking 
    $parcels = Yalidine::getParcels($trackings);

Create one or many new parcels:

To create new parcels pass an array of parcels to createParcels($parcels) function.

    $parcels = array( // the array that contains all the parcels
        array ( // first parcel
            "order_id"=>"MyFirstOrder",
            "firstname"=>"Brahim",
            "familyname"=>"Mohamed",
            "contact_phone"=>"0123456789,",
            "address"=>"Cité Kaidi",
            "to_commune_name"=>"Bordj El Kiffan",
            "to_wilaya_name"=>"Alger",
            "product_list"=>"Presse à café",
            "price"=>3000,
            "freeshipping"=> true,
            "is_stopdesk"=> false,
            "has_exchange"=> 0,
            "product_to_collect" => null
        ),
        array ( // second parcel
            "order_id" =>"MySecondOrder",
            "firstname"=>"رفيدة",
            "familyname"=>"بن مهيدي",
            "contact_phone"=>"0123456789",
            "address"=>"حي الياسمين",
            "to_commune_name"=>"Ouled Fayet",
            "to_wilaya_name"=>"Alger",
            "product_list"=>"كتب الطبخ",
            "price"=>2400,
            "freeshipping"=>0,
            "is_stopdesk"=>0,
            "has_exchange"=> false,
        ),
        array ( // third parcel
            ...
        ),
        array( // etc
            ...
        )
    );
    $response = Yalidine::createParcels($parcels );

This function will return an array of object:

    {
    "MyFirstOrder": {
        "success": true,
        "order_id": "MyFirstOrder",
        "tracking": "yal-12345A",
        "import_id": 234
    },
    "MySecondOrder": {
        "success": true,
        "order_id": "MySecondOrder",
        "tracking": "yal-67891B",
        "import_id": 234
    }
}

Delete one or many parcels

To delete parcels pass an array of tracking parcels to deleteParcels($trackings) function.

    $trackings = ['YAL-PAR1','YAL-PAR2'....]; // list of your parcels tracking 
    $deliveryFees = Yalidine::deleteParcels($trackings);

Get the delivery fees

    $deliveryFees = Yalidine::getDeliveryFees();

yasserbelhimer/laravel-yalidine-dz-api 适用场景与选型建议

yasserbelhimer/laravel-yalidine-dz-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 61 次下载、GitHub Stars 达 14, 最近一次更新时间为 2021 年 10 月 07 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 yasserbelhimer/laravel-yalidine-dz-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 yasserbelhimer/laravel-yalidine-dz-api 我们能提供哪些服务?
定制开发 / 二次开发

基于 yasserbelhimer/laravel-yalidine-dz-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 14
  • Watchers: 1
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-07