View install-phps.sh
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
#!/usr/bin/env bash | |
# https://computingforgeeks.com/how-to-install-php-on-ubuntu/ | |
phpVersions=('7.2' '7.3' '7.4') | |
modules=('cli' 'fpm' 'bcmath' 'gd' 'xml' 'mbstring' 'xml' 'curl' 'pgsql' 'imagick' 'intl' 'amqp' 'intl' 'imap' 'opcache') | |
sudo apt-get update | |
sudo apt -y install software-properties-common | |
sudo add-apt-repository -y ppa:ondrej/php |
View Query.php
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
public function applyOptions(array $options) | |
{ | |
$valid = [ | |
'fields' => 'select', | |
'conditions' => 'where', | |
'join' => 'join', | |
'order' => 'order', | |
'limit' => 'limit', | |
'offset' => 'offset', | |
'group' => 'group', |
View eventstore-v8.php
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 | |
use GuzzleHttp\Client as GuzzleClient; | |
use Http\Adapter\Guzzle6\Client; | |
use Prooph\EventStore\ExpectedVersion; | |
use Prooph\EventStore\EventData; | |
use Prooph\EventStore\UserCredentials; | |
use Prooph\EventStoreHttpClient\ConnectionSettings; | |
use Prooph\EventStoreHttpClient\EventStoreConnectionFactory; | |
$userCredentials = new UserCredentials('admin', 'changeit'); |
View test.php
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 Authentication\Test\TestCase\Identifier\Resolver; | |
use Authentication\Identifier\Resolver\EloquentResolver; | |
use Authentication\Test\TestCase\AuthenticationTestCase; | |
use Illuminate\Database\Capsule\Manager as Capsule; | |
use Illuminate\Database\Connection; | |
use Illuminate\Database\ConnectionResolverInterface; | |
use Illuminate\Database\Eloquent\Model; |
View ElasticPaginator.php
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 | |
declare(strict_types=1); | |
namespace App\Datasource; | |
use Cake\Datasource\Paginator; | |
use Cake\Datasource\RepositoryInterface; | |
use Cake\ElasticSearch\Query; | |
use Cake\Network\Exception\NotFoundException; |
View phpcs.xml
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
<?xml version="1.0"?> | |
<ruleset name="PSR2-Fuck-Spaces"> | |
<rule ref=".\vendor\cakephp\cakephp-codesniffer\CakePHP\ruleset.xml"/> | |
<file>./src</file> | |
<file>./tests</file> | |
<rule ref="PSR2"> | |
<exclude name="PSR2.Classes.ClassDeclaration"></exclude> | |
<exclude name="Generic.WhiteSpace.DisallowTabIndent"/> | |
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine" /> | |
</rule> |
View src\Pdf\Engine\TexToPdfEngine.php
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\Pdf\Engine; | |
use CakePdf\Pdf\CakePdf; | |
use CakePdf\Pdf\Engine\AbstractPdfEngine; | |
use Cake\Core\Exception\Exception; | |
use Cake\Utility\Text; | |
/** | |
* TexToPdfEngine for the CakePdf Plugin |
View Table\TablePrefixTrait.php
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\Model\Table; | |
use Cake\Core\Configure; | |
/** | |
* Database Prefix Trait for CakePHP 3.0 | |
* | |
* @author Florian Krämer | |
* @license MIT |
View DbPrefixTrait.php
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\Model\Table; | |
use Cake\Core\Configure; | |
/** | |
* Database Prefix Trait for CakePHP 3.0 | |
* | |
* @author Florian Krämer | |
* @license MIT |