承接 zangra/geodis-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

zangra/geodis-bundle

最新稳定版本:3.0.5

Composer 安装命令:

composer require zangra/geodis-bundle

包简介

Geodis REST/JSON integration for Sylius / Symfony projects

README 文档

README

Latest Stable Version Build Status Scrutinizer Code Quality PHP Version Require License

About

GeodisBundle is a Symfony bundle for generating and managing Geodis shipping labels.
It provides a simple and efficient integration of the Geodis API into Symfony projects.

What's new in 3.0

  • ✅ Full compatibility with modern Symfony versions
  • ✅ Improved service configuration with autowire & autoconfigure support
  • ✅ Cleaner error handling with a new ExceptionListener
  • ✅ Lazy-loading for the GeodisJsonApi service
  • ✅ Refactored code for better maintainability

Installation

Install the bundle via Composer:

composer require zangra/geodis-bundle:^3.0

Requirements

  • PHP ^8.1
  • Symfony Framework Bundle >= 6.4
  • Doctrine Bundle
  • Guzzle HTTP Client ^6.5.8 || ^7.8

Configuration

Enable the bundle in config/bundles.php:

return [
    // Other bundles...
    GeodisBundle\GeodisBundle::class => ['all' => true],
];

Usage

Once configured, you can use the provided services to create and manage Geodis shipments. Example service configuration:

services:
  GeodisBundle\Manager\GeodisJsonApi:
    lazy: true

Then inject GeodisJsonApi into your services or controllers:

use GeodisBundle\Manager\GeodisJsonApi;

class ShippingController
{
    public function __construct(private GeodisJsonApi $geodisApi) {}

    public function createLabel(): void
    {
        // Your logic to create a label
    }
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-25