1. Go to this page and download the library: Download revoltify/pixelify 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/ */
revoltify / pixelify example snippets
use Revoltify\Pixelify\Contracts\PixelifyUserInterface;
use Revoltify\Pixelify\Traits\HasPixelifyUser;
class User extends Model implements PixelifyUserInterface
{
use HasPixelifyUser;
// overwrite methods if needed
public function getPixelFirstName(): ?string
{
return $this->name;
}
}
use Revoltify\Pixelify\Contracts\PixelifyProductInterface;
use Revoltify\Pixelify\Traits\HasPixelifyProduct;
class Product extends Model implements PixelifyProductInterface
{
use HasPixelifyProduct;
// overwrite methods if needed
public function getPixelProductCurrency(): string
{
return $this->product_currency;
}
}