Skip to content

Instantly share code, notes, and snippets.

View dawidgora-old-account's full-sized avatar

Dawid Góra dawidgora-old-account

View GitHub Profile
<?php
namespace App\Helper;
/**
* @author Dawid Góra <[email protected]>
*/
class ZipHelper
{
/**
@dawidgora-old-account
dawidgora-old-account / Base64Service.php
Last active October 14, 2020 09:52
base64 converter for Symfony
<?php
namespace AppBundle\Service;
use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesser;
use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser;
/**
* @author Dawid Góra
*/
@dawidgora-old-account
dawidgora-old-account / phpbrew-install.sh
Created September 2, 2017 09:01 — forked from piotrplenik/phpbrew-install.sh
PHPBrew for Symfony 3 on Ubuntu and Debian
# Install Requrements
apt-get install curl libxslt1-dev libreadline6-dev libmcrypt-dev libicu-dev g++ \
libcurl4-openssl-dev libssl-dev clibcurl4-openssl-dev pkg-config libssl-dev libsslcommon2-dev \
pkg-config libcurl3 autoconf libmagickwand-dev libmagickcore-dev
# Install PHPBrew (https://github.com/phpbrew/phpbrew)
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew; chmod +x phpbrew
sudo mv phpbrew /usr/local/bin/phpbrew
########################
<?php
/**
* @author Dawid Góra <[email protected]>
*/
class TaxCalculator
{
const TYPE_NET = 1;
const TYPE_GROSS = 2;