2017 © Pedro Peláez
 

symfony-bundle shipment-bundle

Web-IT Shipment Library Symfony 2 integration

image

webit/shipment-bundle

Web-IT Shipment Library Symfony 2 integration

  • Sunday, September 24, 2017
  • by dbojdo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 94 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

WebitShipmentBundle

Shipment library Symfony 2 integration, (*1)

Installation

via Composer

Add the webit/shipment-bundle into composer.json, (*2)

{
    "require": {
        "php":              ">=5.3.2",
        "webit/shipment-bundle": "dev-master"
    },
    "autoload": {
        "psr-0": {
            "Acme": "src/"
        }
    }
}

Register bundle in Kernel

Add following lines:, (*3)

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new Webit\Bundle\ShipmentBundle\WebitShipmentBundle(),
    new Doctrine\Bundle\DoctrineBundle\DoctrineBundle()
    // ...
);

Notice: Remember to add WebitShipmentBundle before DoctrineBundle (because of Target Entity Resolver), (*4)

Configuration

You can define as much accounts as you need (ADE Accounts and Track & Trace as well), (*5)

webit_shipment:
    orm:
        entities:
            sender_address: Your\SenderAddress\Entity # required
            delivery_address: Your\DeliveryAddress\Entity # required
            consignment: Webit\Bundle\ShipmentBundle\Entity\Consignment # default, can skip
            parcel: Webit\Bundle\ShipmentBundle\Entity\Parcel # default, can skip
            dispatch_confirmation: Webit\Bundle\ShipmentBundle\Entity\DispatchConfirmation # default, can skip

Mapping

If you're going to use default implementation for entities add following lines to ORM configuration:, (*6)

yaml
doctrine:
    dbal:
    # your dbal config here
    orm:
        auto_generate_proxy_classes: %kernel.debug%
        auto_mapping: true
        # only these lines are added additionally
        mappings:
            WebitShipmentBundle:
                type: xml
                prefix: Webit\Bundle\ShipmentBundle\Entity
                dir: %kernel.root_dir%/../vendor/webit/shipment-bundle/src/Resources/config/doctrine/orm

To learn more about shipment library see https://github.com/dbojdo/shipment, (*7)

The Versions

24/09 2017

dev-master

9999999-dev http://www.web-it.eu

Web-IT Shipment Library Symfony 2 integration

  Sources   Download

MIT

The Requires

 

The Development Requires

bundle shipment delivery dispatch parcel web-it

24/09 2017

2.0.0

2.0.0.0 http://www.web-it.eu

Web-IT Shipment Library Symfony 2 integration

  Sources   Download

MIT

The Requires

 

The Development Requires

bundle shipment delivery dispatch parcel web-it

06/08 2016

1.1.1

1.1.1.0 http://www.web-it.eu

Web-IT Shipment Library Symfony 2 integration

  Sources   Download

MIT

The Requires

 

The Development Requires

bundle shipment delivery dispatch parcel web-it

06/08 2016

1.x-dev

1.9999999.9999999.9999999-dev http://www.web-it.eu

Web-IT Shipment Library Symfony 2 integration

  Sources   Download

MIT

The Requires

 

The Development Requires

bundle shipment delivery dispatch parcel web-it

21/03 2016

1.1.0

1.1.0.0 http://www.web-it.eu

Web-IT Shipment Library Symfony 2 integration

  Sources   Download

MIT

The Requires

 

The Development Requires

bundle shipment delivery dispatch parcel web-it

21/03 2016

1.0.0

1.0.0.0 http://www.web-it.eu

Web-IT Shipment Library Symfony 2 integration

  Sources   Download

MIT

The Requires

 

The Development Requires

bundle shipment delivery dispatch parcel web-it