PHPackages                             mecxer713/wialon-package - 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. mecxer713/wialon-package

ActiveLibrary[API Development](/categories/api)

mecxer713/wialon-package
========================

Laravel and Symfony SDK for the Wialon (Gurtam) API: auto authentication, facade, simplified calls, and local SSL handling.

02PHPCI failing

Since Feb 5Pushed 3mo agoCompare

[ Source](https://github.com/Mecxer713/wialon-package)[ Packagist](https://packagist.org/packages/mecxer713/wialon-package)[ RSS](/packages/mecxer713-wialon-package/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Wialon SDK for Laravel &amp; Symfony
====================================

[](#wialon-sdk-for-laravel--symfony)

> 🚀 A **developer-first**, production-ready SDK to integrate the **Wialon (Gurtam) API** into Laravel &amp; Symfony — with zero-auth pain, zero-SSL pain, and a clean architecture you’ll actually enjoy using.

---

📚 Table of Contents
-------------------

[](#-table-of-contents)

- [Wialon SDK for Laravel &amp; Symfony](#wialon-sdk-for-laravel--symfony)
    - [📚 Table of Contents](#-table-of-contents)
    - [Overview](#overview)
    - [✨ Key Highlights](#-key-highlights)
    - [📦 Package Identity](#-package-identity)
        - [2️⃣ Laravel Integration Layer](#2%EF%B8%8F%E2%83%A3-laravel-integration-layer)
        - [3️⃣ Symfony Integration Layer](#3%EF%B8%8F%E2%83%A3-symfony-integration-layer)
    - [📥 Installation](#-installation)
        - [Laravel](#laravel)
        - [Symfony](#symfony)
    - [⚙️ Configuration](#%EF%B8%8F-configuration)
        - [Environment variables](#environment-variables)
    - [🚀 Quick Usage](#-quick-usage)
        - [Laravel (Facade)](#laravel-facade)
        - [Symfony (Dependency Injection)](#symfony-dependency-injection)
    - [🌐 Generic API Calls](#-generic-api-calls)
    - [🔁 GET vs POST](#-get-vs-post)
    - [🔐 SSL &amp; Certificate Handling (Killer Feature)](#-ssl--certificate-handling-killer-feature)
        - [Automatic Fix](#automatic-fix)
    - [🧪 Error Handling](#-error-handling)
    - [✅ Tests](#-tests)
    - [📌 Why This Package?](#-why-this-package)
    - [📜 License](#-license)

---

Overview
--------

[](#overview)

**Wialon SDK for Laravel &amp; Symfony** is a modern, open-source PHP SDK designed to make Wialon API integration **simple, reliable, and enjoyable**.

It abstracts away the two biggest pain points developers face when working with Wialon:

- 🔐 **Session management (SID)** — handled automatically, transparently, and safely
- 🔒 **SSL &amp; cURL certificate errors** — fixed out of the box, even on Windows

Built around a **pure PHP core** and wrapped with **native Laravel &amp; Symfony integrations**, this package lets you focus on business logic instead of boilerplate, edge cases, and environment issues.

Whether you are building a **fleet management system**, an **internal dashboard**, or a **production SaaS**, this SDK is designed to scale with confidence.

---

✨ Key Highlights
----------------

[](#-key-highlights)

- 🔐 **Zero-config authentication**: automatic session (`sid`) lifecycle management
- 🧠 **Pure PHP core**: reusable, testable, framework-independent logic
- 🧩 **Native integrations**:

    - Laravel Facade &amp; Artisan command
    - Symfony Bundle, DI &amp; Console command
- 🛠 **Built-in SSL fixer**: automatic CA certificate download (cURL 60/77)
- 🚀 **Developer Experience (DX) focused**

---

📦 Package Identity
------------------

[](#-package-identity)

- **Name**: `mecxer713/wialon-package`
- **Type**: Hybrid SDK (Laravel &amp; Symfony)
- **Core dependencies**:

    - `guzzlehttp/guzzle`
    - `illuminate/support` (Laravel)
    - `symfony/http-kernel` (Symfony)
- **Compatibility**:

    - Laravel **10, 11, 12**
    - Symfony **6, 7**

---

### 2️⃣ Laravel Integration Layer

[](#2️⃣-laravel-integration-layer)

Designed to feel 100% native to Laravel developers.

Components:

- `WialonServiceProvider` – container binding &amp; config publishing
- `Facades/Wialon.php` – static access (`Wialon::call()`)
- `Commands/TestWialonConnection.php` – Artisan diagnostic command
- `config/wialon.php` – Laravel configuration

---

### 3️⃣ Symfony Integration Layer

[](#3️⃣-symfony-integration-layer)

Delivered as a standard Symfony Bundle.

Components:

- `WialonBundle.php` – bundle entry point
- `DependencyInjection/WialonExtension.php` – service injection
- `DependencyInjection/Configuration.php` – YAML config validation
- `Commands/WialonCheckCommand.php` – Console diagnostic command

---

📥 Installation
--------------

[](#-installation)

```
composer require mecxer713/wialon-package
```

### Laravel

[](#laravel)

```
php artisan vendor:publish --tag=wialon-config
```

### Symfony

[](#symfony)

Enable the bundle (if not using Flex auto-discovery):

```
// config/bundles.php
Mecxer\WialonPackage\WialonBundle::class => ['all' => true],
```

---

⚙️ Configuration
----------------

[](#️-configuration)

### Environment variables

[](#environment-variables)

```
WIALON_TOKEN=your_token_here
WIALON_BASE_URL=https://hst-api.wialon.com/wialon/ajax.html
WIALON_DEFAULT_METHOD=POST
```

- Laravel: `config/wialon.php`
- Symfony: `config/packages/wialon.yaml`

---

🚀 Quick Usage
-------------

[](#-quick-usage)

### Laravel (Facade)

[](#laravel-facade)

```
use Mecxer\WialonPackage\Facades\Wialon;

Wialon::login();

$units = Wialon::getUnits();
```

### Symfony (Dependency Injection)

[](#symfony-dependency-injection)

```
use Mecxer\WialonPackage\WialonClient;

public function index(WialonClient $wialon)
{
    $units = $wialon->getUnits();
}
```

---

🌐 Generic API Calls
-------------------

[](#-generic-api-calls)

```
Wialon::call('core/search_items', [
    'spec' => [
        'itemsType' => 'avl_unit',
        'propName' => 'sys_name',
        'propValueMask' => '*',
        'sortType' => 'sys_name'
    ],
    'force' => 1,
    'flags' => 1,
    'from' => 0,
    'to' => 0
]);
```

---

🔁 GET vs POST
-------------

[](#-get-vs-post)

```
// POST (default & recommended)
Wialon::callPost('core/search_items', [...]);

// GET (optional)
Wialon::callGet('core/get_statistics', [...]);
```

---

🔐 SSL &amp; Certificate Handling (Killer Feature)
-------------------------------------------------

[](#-ssl--certificate-handling-killer-feature)

### Automatic Fix

[](#automatic-fix)

```
php artisan wialon:check --download
# or
php bin/console wialon:check --download
```

✔ Downloads a valid Mozilla CA bundle ✔ Fixes cURL error 60 / 77 (Windows) ✔ Tests API connectivity

Certificate location:

```
storage/certif/cacert.pem

```

---

🧪 Error Handling
----------------

[](#-error-handling)

```
try {
    $data = Wialon::getUnits();
} catch (\RuntimeException $e) {
    // Handle HTTP or API errors
}
```

---

✅ Tests
-------

[](#-tests)

```
vendor/bin/phpunit
```

---

📌 Why This Package?
-------------------

[](#-why-this-package)

✔ One SDK for **Laravel &amp; Symfony**✔ No SID headaches ✔ No SSL headaches ✔ Clean architecture ✔ Production-ready

---

📜 License
---------

[](#-license)

MIT

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance55

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

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/f3dddf9cef45710139b1ed66eb603104ce8634288b699bbe98e234129bc311b6?d=identicon)[Mecxer713](/maintainers/Mecxer713)

---

Top Contributors

[![Mecxer713](https://avatars.githubusercontent.com/u/28055700?v=4)](https://github.com/Mecxer713 "Mecxer713 (10 commits)")

### Embed Badge

![Health badge](/badges/mecxer713-wialon-package/health.svg)

```
[![Health](https://phpackages.com/badges/mecxer713-wialon-package/health.svg)](https://phpackages.com/packages/mecxer713-wialon-package)
```

###  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.9M272](/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)
