# liquidlab-agency/magento2-urgent-cargus

> Community-maintained Cargus shipping integration for Magento 2 (metapackage). Fork of the original Cargus/Tremend module, updated for Magento 2.4.x and PHP 8.2/8.3.

`composer require liquidlab-agency/magento2-urgent-cargus`

Canonical URL: https://packagento.com/liquidlab-agency/magento2-urgent-cargus

## At a glance

- **Vendor**: liquidlab-agency (https://packagento.com/liquidlab-agency.md)
- **Latest version**: 1.0.8 — released 2026-07-13
- **Pricing**: Free
- **Package type**: Magento 2 component
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/liquidlab-agency/magento2-urgent-cargus and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require liquidlab-agency/magento2-urgent-cargus:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Community-maintained Cargus shipping integration for Magento 2 (metapackage). Fork of the original Cargus/Tremend module, updated for Magento 2.4.x and PHP 8.2/8.3.

## README

A comprehensive Magento 2 shipping integration suite for Cargus shipping services, designed for private repository distribution.

### 📦 Package Structure

```
Urgent/
├── composer.json                    # Main metapackage
├── README.md                       # This documentation
├── Base/                          # Foundation module
│   ├── composer.json
│   ├── registration.php
│   ├── etc/module.xml
│   └── ... (module files)
├── Cargus/                        # Basic Cargus shipping
│   ├── composer.json
│   ├── registration.php
│   ├── etc/module.xml
│   └── ... (module files)
├── CargusOldAwb/                  # Old AWB functionality
│   ├── composer.json
│   ├── registration.php
│   ├── etc/module.xml
│   └── ... (module files)
└── CargusShipGo/                  # Advanced Ship & Go
    ├── composer.json
    ├── registration.php
    ├── etc/module.xml
    └── ... (module files)
```

### 🏗️ Module Dependencies

```
Base (Foundation)
├── Cargus (depends on Base)
├── CargusOldAwb (depends on Base)
└── CargusShipGo (depends on Base)
```

### 📋 Individual Modules

#### 1. liquidlab-agency/module-base
**Foundation module providing core functionality for all Urgent shipping integrations.**

- **Package Name**: `liquidlab-agency/module-base`
- **Dependencies**: Magento core modules, Laminas components
- **Purpose**: Base classes, utilities, and shared functionality

#### 2. liquidlab-agency/module-cargus
**Basic Cargus shipping method integration.**

- **Package Name**: `liquidlab-agency/module-cargus`
- **Dependencies**: `liquidlab-agency/module-base`, Magento shipping modules
- **Purpose**: Core Cargus shipping functionality

#### 3. liquidlab-agency/module-cargus-old-awb
**Legacy AWB (Air Waybill) management functionality.**

- **Package Name**: `liquidlab-agency/module-cargus-old-awb`
- **Dependencies**: `liquidlab-agency/module-base`, Magento sales/UI modules
- **Purpose**: Display and manage historical AWB data

#### 4. liquidlab-agency/module-cargusshipgo
**Advanced Cargus shipping with Ship & Go functionality.**

- **Package Name**: `liquidlab-agency/module-cargusshipgo`
- **Dependencies**: `liquidlab-agency/module-base`, Magento checkout modules
- **Purpose**: Enhanced shipping options with pickup point selection

### 🚀 Installation Options

#### Install Complete Suite (Recommended)
```bash
composer require liquidlab-agency/magento2-urgent-cargus
```

### ⚙️ Configuration Requirements

#### PHP Requirements
- **PHP**: ^8.2|^8.3
- **Magento**: 2.4.x compatible

#### Magento Module Dependencies
- `magento/framework`: ^103.0
- `magento/module-backend`: ^102.0
- `magento/module-shipping`: ^100.4
- `magento/module-sales`: ^103.0
- Additional modules as specified in individual composer.json files

### 🔧 Post-Installation Steps

#### 1. Enable Modules
```bash
bin/magento module:enable Urgent_Base
bin/magento module:enable Urgent_Cargus
bin/magento module:enable Urgent_CargusOldAwb 
bin/magento module:enable Urgent_CargusShipGo
```

#### 2. Run Setup
```bash
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
bin/magento cache:flush
```

#### 3. Configure Shipping Methods
Navigate to **Stores > Configuration > Sales > Shipping Methods** and configure the Cargus shipping options.

### 📝 Version Management

#### Semantic Versioning
- **Major** (1.x.x): Breaking changes
- **Minor** (x.1.x): New features, backward compatible
- **Patch** (x.x.1): Bug fixes, backward compatible

#### Release Process
1. Update version in all `composer.json` files
2. Tag release in repository
3. Update `packages.json` with new version
4. Test installation in clean environment

### 🐛 Troubleshooting

#### Common Issues

##### Dependency Resolution
```bash
## Clear composer cache
composer clear-cache

## Update dependencies
composer update liquidlab-agency/magento2-urgent-cargus
```

##### Module Not Found
```bash
## Verify repository configuration
composer config repositories

## Check authentication
composer config --list --global
```

##### Installation Conflicts
```bash
## Check for conflicts
composer why-not liquidlab-agency/magento2-urgent-cargus

## Force reinstall
composer reinstall liquidlab-agency/magento2-urgent-cargus
```

### 📞 Support

For issues related to:
- **Installation**: Check composer configuration and authentication
- **Dependencies**: Verify Magento version compatibility
- **Functionality**: Refer to individual module documentation

### 📄 License

**Proprietary** - All rights reserved. This package is for private use only.

---

**Author**: Alexandru Marinescu (alexandru.marinescu@tremend.com)  
**Version**: 1.0.0  
**Last Updated**: 2025-01-05

## Recent Versions

| Version | Released |
|---|---|
| 1.0.8 | 2026-07-13 |
| 1.0.7 | 2025-10-14 |
| 1.0.6 | 2025-09-12 |
| 1.0.5 | 2025-09-11 |
| 1.0.4 | 2025-09-11 |
| 1.0.3 | 2025-09-10 |
| 1.0.2 | 2025-09-10 |
| 1.0.1 | 2025-08-06 |
| 1.0.0 | 2025-08-05 |

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | ^103.0 |
| php | ^8.2\|^8.3 |

### Replace

| Package | Constraint |
|---|---|
| liquidlab-agency/module-base | * |
| liquidlab-agency/module-cargus | * |
| liquidlab-agency/module-cargus-old-awb | * |
| liquidlab-agency/module-cargusshipgo | * |

## Quality

Latest release (1.0.8) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | 1 | – |
| 2.4.9 | – | – | 1 | 1 |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 56 | 2 errors, 54 warnings (ruleset: Magento2), 19 auto-fixable with phpcbf |
| PHPMD | Warning | 75 | 75 rule violations (UnusedPrivateField:75) |
| Cpd | Warning | 1 | 1 duplicated chunk spanning 21 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Pass | 0 |  |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 47 | 47 | – | – |
| 2.4.8 | – | 58 | 61 | – |
| 2.4.9 | – | – | 61 | 61 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["liquidlab-agency/magento2-urgent-cargus"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

liquidlab-agency is a Magento 2 vendor on Packagento. See https://packagento.com/liquidlab-agency.md for their full catalogue.

