Skip to content

Instantly share code, notes, and snippets.

@axitdev
axitdev / .diagrams.yaml
Created April 3, 2026 21:38
php-diagrams-v2 skill
# =============================================================================
# PHP Diagrams Skill Configuration
# =============================================================================
#
# Place this file in your project root as `.diagrams.yaml` or `.diagrams.yml`.
# All fields are optional — defaults are shown below.
# Delete or comment out anything you don't need to customize.
#
# -----------------------------------------------------------------------------
@axitdev
axitdev / php-diagrams-v1-SKILL.md
Last active April 3, 2026 21:33
php-diagrams skill v1

name: php-diagrams description: > Generate Mermaid diagrams from PHP codebases by researching actual project code. Use this skill whenever the user asks to create, generate, or update diagrams, flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, or any visual documentation for their PHP project. Also trigger when the user says things like "diagram the payment flow", "show me how registration works", "visualize the database schema", "map out the Stripe integration", "document the architecture", or any request to understand or document code visually. Trigger even if the user doesn't explicitly say "diagram" — phrases like "how does X flow work" or "show me the

@axitdev
axitdev / outbound-email-with-cloudflare.md
Created March 14, 2026 21:58 — forked from irazasyed/outbound-email-with-cloudflare.md
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail

@axitdev
axitdev / ExempleBuilder.php
Created August 4, 2022 23:14
Laravel HasBuilder Trait with ExempleBuilder and ExempleModel
<?php
namespace App\Builders;
use Illuminate\Database\Eloquent\Builder;
class ExempleBuilder extends Builder
{
/**
* @param string name