This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Dawid Góra <[email protected]> | |
*/ | |
class TaxCalculator | |
{ | |
const TYPE_NET = 1; | |
const TYPE_GROSS = 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
######################## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\Service; | |
use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesser; | |
use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser; | |
/** | |
* @author Dawid Góra | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Helper; | |
/** | |
* @author Dawid Góra <[email protected]> | |
*/ | |
class ZipHelper | |
{ | |
/** |