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/ */
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;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.