PHP code example of kunstmaan / seo-bundle
1. Go to this page and download the library: Download kunstmaan/seo-bundle 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/ */
kunstmaan / seo-bundle example snippets
public function service(ContainerInterface $container, Request $request, RenderContext $renderContext)
{
$order = (new Order())
->setShippingTotal(5)
->setTransactionID('ORD2013-00231');
$order->orderItems[] = (new OrderItem())
->setName('ACME 3000 Starter Kit')
->setQuantity(20)
->setUnitPrice(13.5)
->setTaxes((20 * 13.5) * 0.21)
->setCategoryorVariation('World Domination')
->setSKU('ACM300-SK');
$order->orderItems[] = (new OrderItem())
->setName('Super Duper Kit')
->setQuantity(1)
->setUnitPrice(3000)
->setTaxes((3000) * 0.21)
->setCategoryorVariation('Fun')
->setSKU('SDK-3000');
$renderContext['order'] = $order;
}