PHP code example of 3brs / sylius-packeta-plugin

1. Go to this page and download the library: Download 3brs/sylius-packeta-plugin library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

3brs / sylius-packeta-plugin example snippets


   return [
      ...
      ThreeBRS\SyliusShipmentExportPlugin\ThreeBRSSyliusShipmentExportPlugin::class => ['all' => true],
      ThreeBRS\SyliusPacketaPlugin\ThreeBRSSyliusPacketaPlugin::class => ['all' => true],
   ];
   

    
   
   declare(strict_types=1);
   
   namespace App\Entity\Shipping;
   
   use Doctrine\ORM\Mapping as ORM;
   use ThreeBRS\SyliusPacketaPlugin\Model\PacketaShipmentInterface;
   use ThreeBRS\SyliusPacketaPlugin\Model\PacketaShipmentTrait;
   use Sylius\Component\Core\Model\Shipment as BaseShipment;
   
   #[ORM\Entity]
   #[ORM\Table(name: 'sylius_shipment')]
   class Shipment extends BaseShipment implements PacketaShipmentInterface
   {
       use PacketaShipmentTrait;
   }
   

    
   
   declare(strict_types=1);
   
   namespace App\Entity\Shipping;
   
   use Doctrine\ORM\Mapping as ORM;
   use ThreeBRS\SyliusPacketaPlugin\Model\PacketaShippingMethodInterface;
   use ThreeBRS\SyliusPacketaPlugin\Model\PacketaShippingMethodTrait;
   use Sylius\Component\Core\Model\ShippingMethod as BaseShippingMethod;
   
   #[ORM\Entity]
   #[ORM\Table(name: 'sylius_shipping_method')]
   class ShippingMethod extends BaseShippingMethod implements PacketaShippingMethodInterface
   {
       use PacketaShippingMethodTrait;
   }