Članci s tagom #zero-dependency
-
Stripe integration in PHP without stripe-php: webhook verification from scratch
StripeBridge: zero-dependency Stripe HTTP client (form-encoded + JSON), Idempotency-Key on all POSTs (tenant_id+sha256(email) for customers, customer_id+price_id for checkouts), HMAC-SHA256 webhook verification with hash_equals + 5-min replay window, StripeException::redact() strips emails + digit runs, TLS pinning CURLOPT_SSL_VERIFYPEER=true.
-
Running LLMs locally with Ollama in PHP: zero API cost for classification and embeddings
Ollama integration: OLLAMA_BASE_URL env var → OpenAIAdapter (same code path as OpenAI/Groq), isConfigured() checks base_url not api_key, api_key is ceremonial ('ollama' string), default model qwen2.5:14b. Embeddings via /api/embeddings (native) not /v1/embeddings. Transcription via whisper.cpp. LAN host setup. OLLAMA_BASE_URL is operator-configured — no SSRF guard needed.
-
Why I built a zero-dependency PHP framework in 2025
Composer is the gold standard. Symfony and Laravel are mature. So why ship a custom PHP 8.3 framework with zero composer dependencies in 2025? The honest answer — and what it actually cost me.