Skip to content

Instantly share code, notes, and snippets.

View kbzone's full-sized avatar
🖱️

Cabello, Hector Guillermo kbzone

🖱️
View GitHub Profile
@Pen-y-Fan
Pen-y-Fan / Test Driven Development (TDD) Learning Plan.md
Last active October 29, 2025 03:59
Test Driven Development (TDD)

Learning Plan for Test Driven Development (TDD)

These learning resources primarily focus on Test Driven Development (TDD).

  • There is an emphasis on learning using PHP, Laravel and PHPUnit.
  • All these resources are free (at the time of writing)
@BenCavens
BenCavens / DatabaseQueueMonitorCommand.php
Created August 2, 2021 08:28
Laravel queue monitoring on shared hosting
<?php
namespace App\Queue;
use Carbon\Carbon;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
class DatabaseQueueMonitorCommand extends Command
{
@ksassnowski
ksassnowski / useDatepicker.ts
Created January 15, 2022 16:09
Datepicker Framework, I guess
import {computed, ref} from "vue";
import {
addMonths, addYears,
eachDayOfInterval,
endOfISOWeek,
getYear,
getDate,
isSameMonth,
startOfISOWeek,
startOfMonth,
<?php
//Enums/ContactType.php
namespace App\Enums;
use App\Enums\Traits\LocalizedEnum;
enum ContactType: string
{
use LocalizedEnum;
@hotsaucejake
hotsaucejake / FasterRefreshDatabase.php
Created June 17, 2023 12:05
Checksum Faster Refresh Database Trait for Laravel Tests
<?php
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\RefreshDatabaseState;
use Symfony\Component\Finder\Finder;
/**
@MrPunyapal
MrPunyapal / 1 Types.md
Last active March 22, 2025 23:42
Types In PHP

Atomic Types (Built-in and Scalar)

// Built-in types
$variable = null;             // null type

// Scalar types
$boolVar = true;              // bool type
$intVar = 42;                 // int type
$floatVar = 3.14;             // float type