Skip to content

Instantly share code, notes, and snippets.

View RobinBastiaan's full-sized avatar

Robin Bastiaan RobinBastiaan

View GitHub Profile
@RobinBastiaan
RobinBastiaan / Info for PHPStorm.md
Created November 24, 2022 20:46 — forked from Pen-y-Fan/Info for PHPStorm.md
PHPStorm Tips, Tricks and setup

PHPStorm

PhpStorm Tips, ticks and standard setup

  1. Tips and Tracks for PHPStorm (PHPStorm Tips and Tricks.md)
  2. Standard setup for PHP projects (Standard.md)
@RobinBastiaan
RobinBastiaan / config.php
Created November 8, 2022 21:56 — forked from jarektkaczyk/config.php
Laravel - tinker like a boss (with PsySH)
<?php // ~/.config/psysh/config.php
// Anything not Laravel - let's try to autoload something likely to exist
if (!defined('LARAVEL_START')) {
return [
'defaultIncludes' => [
getcwd().'/vendor/autoload.php',
getcwd().'/bootstrap/autoload.php',
],
];
@RobinBastiaan
RobinBastiaan / class-order.php
Created August 18, 2022 12:13 — forked from hkdobrev/class-order.php
PHP convention for the order in a class.
<?php namespace Vendor\Library;
use Another\Vendor\Library\ClassName;
abstract class ClassName extends AnotherClass implements Countable, Serializable
{
const CONSTANTS = 'top';
use someTrait, anotherTrait {
anotherTrait::traitMethod insteadof someTrait;