Skip to content

Instantly share code, notes, and snippets.

View rieschl's full-sized avatar

Thomas Rieschl rieschl

View GitHub Profile
@rieschl
rieschl / AbstractFunctionalTest.php
Created October 26, 2019 19:03 — forked from marcguyer/AbstractFunctionalTest.php
Functional test abstract using phpunit, Expressive, Doctrine ORM, OAuth2, PSR7, PSR15
<?php
declare(strict_types=1);
namespace FunctionalTest;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Tools\SchemaTool;
use PHPUnit\Framework\TestCase;
use Psr\Container\ContainerInterface;
@rieschl
rieschl / update-secrets.php
Created February 19, 2020 19:23
Update Github Secrets on all Repos
<?php
declare(strict_types=1);
use GuzzleHttp\Client;
use Psr\Http\Message\ResponseInterface;
use function GuzzleHttp\Psr7\parse_header;
require 'vendor/autoload.php';
@rieschl
rieschl / ConfigInterface.php
Created November 3, 2020 20:05
MVC Configuration classes
<?php
declare(strict_types=1);
namespace Eventjet\Config;
interface ConfigInterface
{
public function string(string $key): string;
@rieschl
rieschl / README.md
Created March 6, 2022 14:00
PHP version based on composer.json

Use correct PHP version based on composer.json

Installation

Copy both files to /usr/local/bin or ~/bin and make the php file executable.

Usage

The php script will read the contents of composer.json (if any) and delegate to the correct php version.

@rieschl
rieschl / disney.md
Last active March 3, 2024 08:08
Disney Pickerl

Disney fehlende Pickerl

  • 01
  • 03
  • 06
  • 12
  • 18
  • 29
  • 31
  • 33