<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nickolay Harin</title>
    <description>The latest articles on DEV Community by Nickolay Harin (@k2gl).</description>
    <link>https://dev.to/k2gl</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3981443%2F101c460d-91af-441e-abea-de27955e2dc0.jpeg</url>
      <title>DEV Community: Nickolay Harin</title>
      <link>https://dev.to/k2gl</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/k2gl"/>
    <language>en</language>
    <item>
      <title>A PHP starter where the promises are CI jobs, not README adjectives</title>
      <dc:creator>Nickolay Harin</dc:creator>
      <pubDate>Fri, 12 Jun 2026 14:40:08 +0000</pubDate>
      <link>https://dev.to/k2gl/a-php-starter-where-the-promises-are-ci-jobs-not-readme-adjectives-4820</link>
      <guid>https://dev.to/k2gl/a-php-starter-where-the-promises-are-ci-jobs-not-readme-adjectives-4820</guid>
      <description>&lt;p&gt;Most project skeletons are demos: they run &lt;code&gt;composer install&lt;/code&gt;, serve a hello&lt;br&gt;
page, and stop where your actual work begins. We took the opposite route —&lt;br&gt;
&lt;strong&gt;Pragmatic FrankenPHP&lt;/strong&gt; is the template real production projects actually&lt;br&gt;
grew out of, with the lessons ported back. About 25 of the first 40 commits&lt;br&gt;
of the first product built on it were infrastructure repair; every one of&lt;br&gt;
those commits is now pre-paid in the template.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/k2gl/pragmatic-franken" rel="noopener noreferrer"&gt;github.com/k2gl/pragmatic-franken&lt;/a&gt;&lt;/strong&gt; — PHP 8.5, Symfony 8, FrankenPHP worker&lt;br&gt;
mode, PostgreSQL 17, Vertical Slices + CQRS over Messenger, MIT.&lt;/p&gt;

&lt;h2&gt;
  
  
  Claims you can check, not believe
&lt;/h2&gt;

&lt;p&gt;Every marketing sentence in the README is backed by a required CI job:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;"The production image boots."&lt;/strong&gt; The &lt;code&gt;prod-image&lt;/code&gt; job builds the real
&lt;code&gt;php_prod&lt;/code&gt; target on every PR, runs it against Postgres+Redis and asserts
&lt;code&gt;/ready&lt;/code&gt; returns &lt;code&gt;{"ok":true,"db":true,"redis":true}&lt;/code&gt;. (When we added this
job, it immediately found three independent reasons the previous image
could never start. That's the point.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"AI agents land green here."&lt;/strong&gt; The &lt;code&gt;agent-smoke&lt;/code&gt; job scaffolds a vertical
slice with the same generator agents use (&lt;code&gt;make slice&lt;/code&gt;) and requires it to
pass Pint + PHPStan level 10 + tests with zero manual edits. On its very
first run it caught a code-style drift in the scaffolder.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"You can verify what you deploy."&lt;/strong&gt; Release images carry SLSA build
provenance (GitHub Artifact Attestations, keyless). The deploy script can
refuse unverified images, and &lt;code&gt;bin/console app:verify-attestation&lt;/code&gt; verifies
any artifact &lt;strong&gt;offline in pure PHP&lt;/strong&gt; (k2gl/sigstore-verify — passes the
official sigstore-conformance suite). The test suite commits a real signed
artifact and proves fail-closed behavior: one tampered byte → rejected.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"Docs don't lie."&lt;/strong&gt; &lt;code&gt;make docs-check&lt;/code&gt; is a CI gate that greps every
claimed route, make target and ADR reference against the codebase. The
agent-facing context file (AGENTS.md, ≤2000 tokens, budget-linted) cannot
silently drift from reality.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What's actually inside
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;real example vertical&lt;/strong&gt;: Task entity → migration → typed repository →
Foundry factory → validated 422 problem+json → e2e tests → async
&lt;code&gt;TaskCompleted&lt;/code&gt; event → Mercure publish to the &lt;code&gt;/tasks&lt;/code&gt; topic. Delete it with one
flag when you start your own domain (&lt;code&gt;make init name=my-app prune=1&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SharedKernel&lt;/strong&gt; ported from production: typed &lt;code&gt;DoctrineRepository&amp;lt;T&amp;gt;&lt;/code&gt;
(PHPStan level 10, zero magic), RFC 9457 problem+json listeners, worker
heartbeat for container healthchecks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A deploy story that ends in production&lt;/strong&gt;: blue-green rollout gated on
&lt;code&gt;/ready&lt;/code&gt; (a failing container never replaces the old one), pre-migration
dumps, encrypted off-site backups with a documented restore drill, front
Caddy with dynamic upstreams — all on one cheap VDS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parallel agent sessions&lt;/strong&gt;: &lt;code&gt;dev/worktree.sh&lt;/code&gt; spins isolated stacks (own
branch, own docker project, own port slot) so several Claude/Codex sessions
work without colliding.&lt;/li&gt;
&lt;li&gt;Opt-in recipes instead of bloat: JWT auth (production-proven configs),
feature flags, SPA frontend, PR preview environments.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Non-goals (on purpose)
&lt;/h2&gt;

&lt;p&gt;No auth in core (it's a product decision — recipe included), no bundled SPA,&lt;br&gt;
no Kubernetes, no multi-DB. A template that won't say "no" accretes&lt;br&gt;
everything and dies.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gh repo create my-app &lt;span class="nt"&gt;--template&lt;/span&gt; k2gl/pragmatic-franken &lt;span class="nt"&gt;--clone&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd &lt;/span&gt;my-app
make &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; make init &lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;my-app &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; make smoke
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# or straight from Packagist:&lt;/span&gt;
composer create-project k2gl/pragmatic-franken my-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Feedback welcome — especially the critical kind. All 17 architecture&lt;br&gt;
decision records are in the repo.&lt;/p&gt;

</description>
      <category>php</category>
      <category>symfony</category>
      <category>devops</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
