Looking to hire Laravel developers? Try LaraJobs

laravel-dellin maintained by sergeevpasha

Description
Dellin API wrapper for Laravel
Author
Last update
2026/02/05 05:32 (dev-master)
License
Links
Downloads
1 879
Tags

Comments
comments powered by Disqus

Maintainability Test Coverage CodeFactor Generic badge Generic badge

Laravel Dellin API Wrapper

Allows you to:

  • Find a City by query string
  • Find a Street by City ID and query string
  • Find Terminals in the City by City ID
  • Calculate a delivery

Pre-requirements

You need to get Dellin API key, login and password. Key can be obtained at https://dev.dellin.ru/registration

Installation

Configuration

This package has a few configuration values:

If you only need to use DellinClient, you may completely skip this configuration. Otherwise, you can use default options and specify some data in .env file:

  • DELLIN_KEY
  • DELLIN_LOGIN
  • DELLIN_PASSWORD

To make full use of predefined routes, you will need to publish config:

Now you can change routes prefix and middleware to whatever you need

Use Case #1

After installing you may just import the client

Firstly let's initialize our client

Now we can use these methods:

Delivery Object

To build a Delivery object you will need to pass an array to fromArray() method just like that:

Available Delivery Types

Available Payment Types

Available Requester Roles

Available Shipping Types

Use Case #2

There are some predefined routes, that will be merged with your routes as well. You may check it by using php artisan routes:list It actually exposes the same methods to the routes, so it should be pretty clear on how to use it. For more information on how to use it, please check out src/ folder.