<?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: Mahmut Gündüzalp</title>
    <description>The latest articles on DEV Community by Mahmut Gündüzalp (@mahmut_gndzalp_c736ac4b).</description>
    <link>https://dev.to/mahmut_gndzalp_c736ac4b</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%2F2031144%2F507c6d99-33de-4ad3-b203-16e7eba3fc01.png</url>
      <title>DEV Community: Mahmut Gündüzalp</title>
      <link>https://dev.to/mahmut_gndzalp_c736ac4b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mahmut_gndzalp_c736ac4b"/>
    <language>en</language>
    <item>
      <title>Schema.org NewsArticle: A Complete Implementation Guide for Google News in 2026</title>
      <dc:creator>Mahmut Gündüzalp</dc:creator>
      <pubDate>Sun, 31 May 2026 23:00:47 +0000</pubDate>
      <link>https://dev.to/mahmut_gndzalp_c736ac4b/schemaorg-newsarticle-a-complete-implementation-guide-for-google-news-in-2026-5e7g</link>
      <guid>https://dev.to/mahmut_gndzalp_c736ac4b/schemaorg-newsarticle-a-complete-implementation-guide-for-google-news-in-2026-5e7g</guid>
      <description>&lt;h1&gt;
  
  
  Schema.org NewsArticle: A Complete Implementation Guide for Google News in 2026
&lt;/h1&gt;

&lt;p&gt;Most news sites that fail to get into Google News don't fail because of their content. They fail because their structured data is wrong, incomplete, or missing — and nobody told them, because the failure is silent. No error, no email, just no traffic.&lt;/p&gt;

&lt;p&gt;This is a field guide to getting &lt;code&gt;NewsArticle&lt;/code&gt; structured data right. It comes from running it across 200+ production news portals over the last 18 months at Alesta WEB, where a single malformed &lt;code&gt;datePublished&lt;/code&gt; field can quietly drop a story out of the news index for a publisher who has no idea why.&lt;/p&gt;

&lt;p&gt;I'll cover every field that matters, the publisher markup that ties it together, the news sitemap's brutal 48-hour window, how AMP and canonical interact in 2026, IndexNow for instant Bing/Yandex pickup, and the validation pipeline we run before anything ships.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Why Structured Data Matters Beyond Google
&lt;/h2&gt;

&lt;p&gt;It's tempting to think of &lt;code&gt;NewsArticle&lt;/code&gt; JSON-LD as "the thing Google wants." It is, but that framing undersells it.&lt;/p&gt;

&lt;p&gt;Structured data is now the machine-readable contract for your content across the entire discovery layer: Google News and Top Stories, Bing News, the knowledge graphs that feed voice assistants, and — increasingly — the LLMs that summarize current events. When a model is asked "what happened in city X today," it leans on sources whose articles are cleanly typed, dated, and attributed. Ambiguous HTML doesn't get parsed reliably. Clean JSON-LD does.&lt;/p&gt;

&lt;p&gt;So the payoff isn't one channel. Getting &lt;code&gt;NewsArticle&lt;/code&gt; right is the cheapest single thing you can do to make a story legible to every automated consumer at once.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. NewsArticle: Every Field That Matters
&lt;/h2&gt;

&lt;p&gt;Here is a complete, valid &lt;code&gt;NewsArticle&lt;/code&gt; block. I'll annotate the fields that people get wrong.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"application/ld+json"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@context&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://schema.org&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@type&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;NewsArticle&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;mainEntityOfPage&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@type&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;WebPage&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@id&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://example.com/news/city-council-approves-budget&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;headline&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;City Council Approves 2026 Budget After Three-Hour Debate&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;image&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://example.com/img/budget-16x9.jpg&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://example.com/img/budget-4x3.jpg&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://example.com/img/budget-1x1.jpg&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
  &lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;datePublished&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;2026-06-01T08:30:00+03:00&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;dateModified&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;2026-06-01T09:15:00+03:00&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;author&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@type&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Person&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;name&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Ayşe Yılmaz&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;url&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://example.com/author/ayse-yilmaz&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;publisher&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@type&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;NewsMediaOrganization&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;name&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Example Daily&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;logo&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@type&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;ImageObject&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;url&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://example.com/logo-600x60.png&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;width&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;600&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;height&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;description&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;The council passed the budget 7-4 after debate over transit funding.&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;articleSection&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Local&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;inLanguage&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;en&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The fields people break, in order of how often I see them broken:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;datePublished&lt;/code&gt; without a timezone.&lt;/strong&gt; This is the number one cause of silent failure. &lt;code&gt;"2026-06-01T08:30:00"&lt;/code&gt; is ambiguous. Google may interpret it as UTC, your server may mean local time, and the gap can push a story outside the freshness window or make it look hours old at publication. Always include the offset: &lt;code&gt;+03:00&lt;/code&gt;, &lt;code&gt;Z&lt;/code&gt;, whatever is correct — but never omit it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;dateModified&lt;/code&gt; going backwards or matching publish exactly forever.&lt;/strong&gt; If you genuinely edit an article, update &lt;code&gt;dateModified&lt;/code&gt;. But don't fake it by bumping it on every page load — Google notices articles whose modification date changes without content changing, and it erodes trust. Set it when the content actually changes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;headline&lt;/code&gt; over 110 characters.&lt;/strong&gt; Google truncates and may ignore long headlines for Top Stories. Keep it under 110 characters. This is a hard, documented limit, not a suggestion.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;image&lt;/code&gt; with a single small image.&lt;/strong&gt; Provide multiple aspect ratios (16x9, 4x3, 1x1) at a minimum width of 1200px. A 600px-wide thumbnail disqualifies you from large image treatment in Top Stories.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;author.url&lt;/code&gt; missing.&lt;/strong&gt; An author object with just a &lt;code&gt;name&lt;/code&gt; is weak. Give every author a real, crawlable profile page and link it via &lt;code&gt;url&lt;/code&gt;. This is also an E-E-A-T signal — the author needs to be a verifiable entity, not a string.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. NewsMediaOrganization: The Publisher Half
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;publisher&lt;/code&gt; inside each article should be a &lt;code&gt;NewsMediaOrganization&lt;/code&gt;, and that organization should also exist as a standalone entity on your home page or a dedicated &lt;code&gt;/about&lt;/code&gt; page. The two reinforce each other.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"application/ld+json"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@context&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://schema.org&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@type&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;NewsMediaOrganization&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;name&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Example Daily&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;url&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://example.com&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;logo&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@type&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;ImageObject&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;url&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://example.com/logo-600x60.png&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;width&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;600&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;height&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;sameAs&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://twitter.com/exampledaily&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://www.facebook.com/exampledaily&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
  &lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;diversityPolicy&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://example.com/diversity-policy&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;ethicsPolicy&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://example.com/ethics-policy&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;masthead&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://example.com/masthead&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;logo&lt;/code&gt; constraints trip people up: it must be a raster format (PNG/JPG, not SVG), no wider than 600px, and no taller than 60px. The &lt;code&gt;ethicsPolicy&lt;/code&gt;, &lt;code&gt;diversityPolicy&lt;/code&gt;, and &lt;code&gt;masthead&lt;/code&gt; properties are optional but they are genuine trust signals for news specifically — having real pages behind them helps with Google News eligibility reviews.&lt;/p&gt;

&lt;p&gt;One rule we enforce in production: the publisher &lt;code&gt;name&lt;/code&gt; and &lt;code&gt;logo&lt;/code&gt; must be byte-identical across every article and the organization entity. Inconsistency here — "Example Daily" in one place, "ExampleDaily" in another — is read as two different publishers.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Sitemap-news.xml: The 48-Hour Window
&lt;/h2&gt;

&lt;p&gt;A news sitemap is not a regular sitemap. It only lists articles published in the &lt;strong&gt;last 48 hours&lt;/strong&gt;, and it carries extra &lt;code&gt;&amp;lt;news:news&amp;gt;&lt;/code&gt; metadata.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;urlset&lt;/span&gt; &lt;span class="na"&gt;xmlns=&lt;/span&gt;&lt;span class="s"&gt;"http://www.sitemaps.org/schemas/sitemap/0.9"&lt;/span&gt;
        &lt;span class="na"&gt;xmlns:news=&lt;/span&gt;&lt;span class="s"&gt;"http://www.google.com/schemas/sitemap-news/0.9"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;url&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;loc&amp;gt;&lt;/span&gt;https://example.com/news/city-council-approves-budget&lt;span class="nt"&gt;&amp;lt;/loc&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;news:news&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;news:publication&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;news:name&amp;gt;&lt;/span&gt;Example Daily&lt;span class="nt"&gt;&amp;lt;/news:name&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;news:language&amp;gt;&lt;/span&gt;en&lt;span class="nt"&gt;&amp;lt;/news:language&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/news:publication&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;news:publication_date&amp;gt;&lt;/span&gt;2026-06-01T08:30:00+03:00&lt;span class="nt"&gt;&amp;lt;/news:publication_date&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;news:title&amp;gt;&lt;/span&gt;City Council Approves 2026 Budget After Three-Hour Debate&lt;span class="nt"&gt;&amp;lt;/news:title&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/news:news&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/url&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/urlset&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two things make or break this:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Drop articles older than 48 hours.&lt;/strong&gt; Leaving stale URLs in the news sitemap is a quality signal against you. The sitemap must be generated dynamically and prune itself. We regenerate ours on publish and on a short cron, never as a static file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;news:publication_date&lt;/code&gt; must match &lt;code&gt;datePublished&lt;/code&gt;.&lt;/strong&gt; Same timezone, same value. If your JSON-LD says one time and your sitemap says another, you've told Google two contradictory things about the same article.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. AMP vs Canonical in 2026
&lt;/h2&gt;

&lt;p&gt;This used to be a real decision. In 2026 it mostly isn't.&lt;/p&gt;

&lt;p&gt;Google dropped the AMP requirement for Top Stories back in 2021, and Core Web Vitals became the actual gate. If your canonical pages are fast — good LCP, low CLS, responsive — you do &lt;strong&gt;not&lt;/strong&gt; need AMP to appear in Top Stories. We removed AMP from most sites and saw no ranking loss, plus we deleted an entire parallel rendering path and its bugs.&lt;/p&gt;

&lt;p&gt;The honest guidance:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Default: ship fast canonical HTML, no AMP.&lt;/strong&gt; One source of truth, less to maintain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep AMP only if&lt;/strong&gt; you have a specific downstream consumer that still requires it, or your canonical pages genuinely can't hit good Core Web Vitals and you can't fix the root cause.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you do serve both, the canonical page must point to itself with &lt;code&gt;rel="canonical"&lt;/code&gt;, and the AMP page must point back to the canonical with &lt;code&gt;rel="canonical"&lt;/code&gt;. Getting that backwards is a common way to deindex your real pages.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. IndexNow: Instant Pickup on Bing and Yandex
&lt;/h2&gt;

&lt;p&gt;Google still crawls on its own schedule. Bing and Yandex, however, accept a push: IndexNow lets you notify them the instant an article goes live, instead of waiting for a crawl.&lt;/p&gt;

&lt;p&gt;The setup is trivial. Host a key file at your root, then POST URLs on publish:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1. Host the key at https://example.com/&amp;lt;key&amp;gt;.txt containing just the key&lt;/span&gt;
&lt;span class="c"&gt;# 2. On every publish, ping:&lt;/span&gt;
curl &lt;span class="s2"&gt;"https://api.indexnow.org/indexnow?url=https://example.com/news/city-council-approves-budget&amp;amp;key=&amp;lt;key&amp;gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or submit a batch as JSON:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"host"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"your-key-here"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"urlList"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"https://example.com/news/article-1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"https://example.com/news/article-2"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a news site where being first matters, the minutes you save on Bing/Yandex indexing are real. We wire IndexNow into the same publish hook that regenerates the news sitemap — one event, both actions.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. A Validation Pipeline That Catches Errors Before Deploy
&lt;/h2&gt;

&lt;p&gt;Hand-checking structured data doesn't scale past a few articles. Across hundreds of sites it has to be automated, and it has to run &lt;strong&gt;before&lt;/strong&gt; content reaches users.&lt;/p&gt;

&lt;p&gt;What our pipeline checks on every article render in staging:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;JSON-LD parses.&lt;/strong&gt; A trailing comma silently disables the whole block. Parse it as JSON; fail the build if it throws.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Required fields present.&lt;/strong&gt; &lt;code&gt;headline&lt;/code&gt;, &lt;code&gt;image&lt;/code&gt;, &lt;code&gt;datePublished&lt;/code&gt;, &lt;code&gt;author&lt;/code&gt;, &lt;code&gt;publisher&lt;/code&gt; — assert each exists and is non-empty.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;datePublished&lt;/code&gt; has a timezone offset.&lt;/strong&gt; Regex-reject any ISO timestamp without &lt;code&gt;Z&lt;/code&gt; or &lt;code&gt;±HH:MM&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;headline&lt;/code&gt; ≤ 110 characters.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;image&lt;/code&gt; width ≥ 1200px&lt;/strong&gt; (check the actual asset, not just the URL).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Publisher name/logo match&lt;/strong&gt; the canonical organization entity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sitemap date == JSON-LD date&lt;/strong&gt; for the same URL.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A minimal version of check 3, the highest-value one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;assertHasTimezone&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="nv"&gt;$iso&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;preg_match&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'/(Z|[+\-]\d{2}:\d{2})$/'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$iso&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;RuntimeException&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"datePublished missing timezone: &lt;/span&gt;&lt;span class="nv"&gt;$iso&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Beyond the build, use Google's Rich Results Test and the schema.org validator on a sample of live URLs weekly. The build catches structural errors; the external validators catch the rules Google changes without announcing.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Passing vs Failing: A Side-by-Side
&lt;/h2&gt;

&lt;p&gt;Failing markup — and why:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"@type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"NewsArticle"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"headline"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"City Council Approves The 2026 Municipal Budget After A Long And Contentious Three-Hour Public Debate Session"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"datePublished"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2026-06-01 08:30:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"author"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Ayşe Yılmaz"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"image"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://example.com/thumb.jpg"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Four problems: headline over 110 chars, &lt;code&gt;datePublished&lt;/code&gt; with no timezone and a space instead of &lt;code&gt;T&lt;/code&gt;, &lt;code&gt;author&lt;/code&gt; as a bare string instead of a &lt;code&gt;Person&lt;/code&gt; object with a URL, and a single thumbnail-sized image. Each one individually can keep this out of Top Stories.&lt;/p&gt;

&lt;p&gt;Passing markup is the full block from section 2: typed author with a profile URL, ISO-8601 date with offset, headline under the limit, and multiple large images. The difference between these two blocks is the difference between being indexed and being invisible.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping Up
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;NewsArticle&lt;/code&gt; structured data isn't glamorous, but for a news publisher it's the highest-leverage SEO work there is. The content is yours to write; the markup is what makes machines trust it.&lt;/p&gt;

&lt;p&gt;Get the five required fields right, give every date a timezone, keep your news sitemap pruned to 48 hours, push to IndexNow on publish, and validate before you deploy. Do that consistently and the silent failures stop being silent — they stop happening.&lt;/p&gt;

&lt;p&gt;If you run a single site, do this by hand once and template it. If you run many, build the validation pipeline first. We learned the hard way that across 200+ portals, the cost of one wrong &lt;code&gt;datePublished&lt;/code&gt; format multiplied by every article is a traffic problem you'll spend weeks tracing back to one missing &lt;code&gt;+03:00&lt;/code&gt;.&lt;/p&gt;

</description>
      <category>seo</category>
      <category>schema</category>
      <category>webdev</category>
      <category>news</category>
    </item>
    <item>
      <title>Haber yazilimi, haber scripti, haber sistemi: ayni urun, uc ayri arama niyeti</title>
      <dc:creator>Mahmut Gündüzalp</dc:creator>
      <pubDate>Tue, 26 May 2026 00:50:55 +0000</pubDate>
      <link>https://dev.to/mahmut_gndzalp_c736ac4b/haber-yazilimi-haber-scripti-haber-sistemi-ayni-urun-uc-ayri-arama-niyeti-24l7</link>
      <guid>https://dev.to/mahmut_gndzalp_c736ac4b/haber-yazilimi-haber-scripti-haber-sistemi-ayni-urun-uc-ayri-arama-niyeti-24l7</guid>
      <description>&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;Turkce yazilim pazarinda &lt;strong&gt;haber yazilimi&lt;/strong&gt;, &lt;strong&gt;haber scripti&lt;/strong&gt; ve &lt;strong&gt;haber sistemi&lt;/strong&gt; terimleri cogunlukla ayni urunu tanimlar: bir haber portalini yoneten icerik yonetim sistemi. Vurgu farklidir, paket icerik ayni olabilir. Bu yazi uc terim arasindaki ince farki, yayincilarin hangisini ne zaman aradigini ve modern bir haber CMS'inde olmasi gereken ozellikleri anlatir.&lt;/p&gt;

&lt;h2&gt;
  
  
  Neden bu kadar cok terim?
&lt;/h2&gt;

&lt;p&gt;Turkce arama davranisi yabanci dillerden farklidir. Ingilizcede "news CMS" veya "news publishing platform" dominanttir. Turkcede ayni urun icin uc ayri Google sorgusu yapilir:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Sorgu&lt;/th&gt;
&lt;th&gt;Aylik Trafik (kabaca)&lt;/th&gt;
&lt;th&gt;Niyet&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;haber scripti&lt;/td&gt;
&lt;td&gt;~2.000&lt;/td&gt;
&lt;td&gt;Kod tabanli paket arayan&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;haber yazilimi&lt;/td&gt;
&lt;td&gt;~1.500&lt;/td&gt;
&lt;td&gt;Butuncul cozumu arayan&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;haber sistemi&lt;/td&gt;
&lt;td&gt;~700&lt;/td&gt;
&lt;td&gt;Kurumsal yayin sistemi arayan&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Uc terim de pratikte ayni tedarikciye yonelir, ama yayincilar urunu farkli adlandirir.&lt;/p&gt;

&lt;h2&gt;
  
  
  Uc terim arasindaki ince fark
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Haber scripti
&lt;/h3&gt;

&lt;p&gt;Mevcut bir altyapidan baska bir altyapiya gecmek isteyen yayincilarin terimidir. "X haber scripti satin aldim, ozellestirdim, sunucuya yukledim" tarzi kullanim. PHP/MySQL ile yazilmis, kod tabanini gormek, ozellestirmek isteyen IT departmanlarinin/teknik sahiplerin tercihi.&lt;/p&gt;

&lt;h3&gt;
  
  
  Haber yazilimi
&lt;/h3&gt;

&lt;p&gt;Yeni bir haber portali kurmak isteyen yayincilarin terimidir. Sadece kod degil, paket (mobil uygulama, sunucu, kurulum, destek, egitim) dahil. Genelde son musteri (yayinci) terminolojisi.&lt;/p&gt;

&lt;h3&gt;
  
  
  Haber sistemi
&lt;/h3&gt;

&lt;p&gt;Cok yazarli, cok rolu, surec yonetimi gerektiren kurumsal yayinlarin terimidir. Editor onayi, yetkilendirme matrisi, raporlama, istatistik bekleyen yayinlar "haber sistemi" der. Buyuk yayin kuruluslari ve kurumsal sirketler bu terimi tercih eder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hangisini ne zaman aramaliyiz?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Yeni bir yayin acacaksam        -&amp;gt; haber yazilimi (butuncul paket)
Mevcut yayinda kod degistirecegim -&amp;gt; haber scripti (kod tabani)
Kurumsal yayin yonetecegim      -&amp;gt; haber sistemi (operasyonel iskelet)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Uc senaryoda da musterinin aradigi ozelliklerin %90'i ayni tedarikci tarafindan ayni paketle saglanir.&lt;/p&gt;

&lt;h2&gt;
  
  
  Modern bir haber CMS'inde olmasi beklenen ozellikler
&lt;/h2&gt;

&lt;p&gt;Yayincilarin 2026 sonrasinda bekledigi temel modullerin listesi:&lt;/p&gt;

&lt;h3&gt;
  
  
  Icerik
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cok tipli icerik&lt;/strong&gt;: haber, video, galeri, makale, etkinlik, podcast, biyografi, vefat ilani&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ajans entegrasyonu&lt;/strong&gt;: AA, DHA, IHA, ANKA, THA, HIBYA, IGFA, BHA gibi haber ajanslarindan otomatik haber cekme&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI ile icerik uretimi&lt;/strong&gt;: GPT, Gemini, Claude, DeepSeek, Groq gibi modeller ile haber yazma, baslik onerme, ozetleme&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  SEO ve gorunurluk
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Google News uyumu&lt;/strong&gt;: sitemap-news.xml, NewsArticle Schema&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AMP destegi&lt;/strong&gt;: Hizli mobil gorunum&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI Overview optimizasyonu&lt;/strong&gt;: FAQPage Schema, llms.txt, ai-sitemap.xml&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IndexNow API&lt;/strong&gt;: Anlik indeksleme (Bing + Yandex)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Mobil
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Native uygulama&lt;/strong&gt;: iOS + Android (kurulum + uygulama magazasi yayini dahil)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PWA destegi&lt;/strong&gt;: Offline okuma&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Push bildirim&lt;/strong&gt;: OneSignal veya benzeri&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Operasyonel
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cok yazarli panel&lt;/strong&gt;: Editor, yazar, yonetici rolleri&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Abonelik / Paywall&lt;/strong&gt;: Premium icerik kapatma (iyzico, PayTR vb. odeme)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reklam yonetimi&lt;/strong&gt;: AdSense, banner pozisyonlari&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Newsletter / E-bulten&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Performans ve guvenlik
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cache katmanli&lt;/strong&gt;: Redis + dosya cache + CDN&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gorsel optimizasyon&lt;/strong&gt;: WebP otomatik donusum, lazy loading&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Guvenlik&lt;/strong&gt;: CSRF, XSS, IP banlama, rate limiting&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SSL/TLS&lt;/strong&gt;: Let's Encrypt veya benzeri&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Karar matrisi
&lt;/h2&gt;

&lt;p&gt;Yayinciliga baslayacak biri tedarikci sectiginde bakmasi gerekenler:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Ihtiyac&lt;/th&gt;
&lt;th&gt;Bakilacak ozellik&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Yerel haber portali&lt;/td&gt;
&lt;td&gt;Haber ajansi entegrasyonu + reklam&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kurumsal yayin&lt;/td&gt;
&lt;td&gt;Cok yazar yonetimi + raporlama&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Yuksek trafik&lt;/td&gt;
&lt;td&gt;Cache + CDN + mobil&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Premium icerik&lt;/td&gt;
&lt;td&gt;Abonelik / Paywall modulu&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google News basvurusu&lt;/td&gt;
&lt;td&gt;NewsArticle Schema + sitemap-news&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI ile icerik uretimi&lt;/td&gt;
&lt;td&gt;Coklu AI saglayici destegi&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Lisans modelleri
&lt;/h2&gt;

&lt;p&gt;Pazarda iki ana lisans modeli vardir:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tek seferlik lisans&lt;/strong&gt;: Bir kerelik odeme, kaynak kod erisimi, surekli kullanim hakki. Uzun vadede daha ekonomik.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Aylik abonelik (SaaS)&lt;/strong&gt;: Sunucu + yazilim + destek paket halinde aylik odeme. Daha az baslangic maliyeti.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Buyuk yayinlar genelde tek seferlik lisansi tercih eder cunku ozellestirme ve kontrol istemektedir. Kucuk/orta yayinlar baslangic maliyeti dusuk oldugu icin SaaS modellerini secebilir.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sik sorulan sorular
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;S: Ucretsiz haber scripti var mi?&lt;/strong&gt;&lt;br&gt;
C: Acik kaynak haber scriptleri vardir ama kurumsal yayinlar lisansli paketi tercih eder cunku haber ajansi entegrasyonu, AI modulleri ve uzun vadeli destek gerekir.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;S: Hangi sirket en iyi haber yazilimini sunar?&lt;/strong&gt;&lt;br&gt;
C: Yayinin buyuklugune ve ozelliklerine gore degisir. Onemli olan tedarikcinin ozellestirme yapabilmesi, ajans entegrasyonuna sahip olmasi ve uzun vadeli destek vermesidir. Alesta WEB 2005ten beri bu pazarda hizmet veren bagimsiz tedarikcilerden biridir.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;S: Mobil uygulama haber yaziliminin parcasi mi?&lt;/strong&gt;&lt;br&gt;
C: Modern haber yazilimlari iOS/Android native uygulama veya en az PWA olarak gelir.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;S: Haber sitesi acmak icin SEO ne kadar onemli?&lt;/strong&gt;&lt;br&gt;
C: Hayati. Yayinin %60+ trafigi organik aramadan gelir. NewsArticle Schema, sitemap-news, AMP ve Google News uyumu olmazsa olmaz.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sonuc
&lt;/h2&gt;

&lt;p&gt;Turkcede "haber yazilimi", "haber scripti" ve "haber sistemi" terimleri ayni urunu uc ayri arama niyetiyle tanimlar. Yayincinin niyeti farkli olsa da tedarikci genelde ayni paketi sunar. Tedarikci secerken paketin sundugu modullerin (haber ajansi entegrasyonu, AI ile icerik, mobil uygulama, SEO, paywall) ihtiyaca uygunluguna bakmak gerekir.&lt;/p&gt;

&lt;p&gt;Detayli karsilastirma ve canli demo icin: &lt;a href="https://alestaweb.com/haber-scripti-yazilimi" rel="noopener noreferrer"&gt;Alesta WEB Haber Scripti&lt;/a&gt; veya &lt;a href="https://alestaweb.com/haber-yazilimi" rel="noopener noreferrer"&gt;Haber Yazilimi Pillar Sayfa&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Kaynak&lt;/strong&gt;: &lt;a href="https://alestaweb.com" rel="noopener noreferrer"&gt;Alesta WEB&lt;/a&gt; - 2005ten beri haber yazilimi, e-ticaret yazilimi ve kurumsal web cozumleri.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>php</category>
      <category>cms</category>
      <category>seo</category>
    </item>
    <item>
      <title>Turkish E-commerce: Why Local POS Integration Beats Stripe (Most of the Time)</title>
      <dc:creator>Mahmut Gündüzalp</dc:creator>
      <pubDate>Sun, 24 May 2026 11:33:36 +0000</pubDate>
      <link>https://dev.to/mahmut_gndzalp_c736ac4b/turkish-e-commerce-why-local-pos-integration-beats-stripe-most-of-the-time-e60</link>
      <guid>https://dev.to/mahmut_gndzalp_c736ac4b/turkish-e-commerce-why-local-pos-integration-beats-stripe-most-of-the-time-e60</guid>
      <description>&lt;h1&gt;
  
  
  Turkish E-commerce: Why Local POS Integration Beats Stripe (Most of the Time)
&lt;/h1&gt;

&lt;p&gt;If you're an English-speaking developer building e-commerce in any market, your default payment integration is Stripe. It's a great default. It's documented, it's fast to integrate, it has SDKs for every language, and the API surface is among the cleanest in the industry.&lt;/p&gt;

&lt;p&gt;It's also the wrong default if your customers live in Turkey.&lt;/p&gt;

&lt;p&gt;This is a write-up of what we learned running 200+ production e-commerce sites in Turkey over the last 18 months: why Stripe alone doesn't cut it, what the local payment landscape actually looks like, the unified interface pattern we use to manage 15+ bank gateways from a single PHP codebase, and the cost numbers that justify all the extra engineering work.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The Stripe Assumption (And Why It Breaks Here)
&lt;/h2&gt;

&lt;p&gt;Stripe operates in Turkey. You can technically take TRY payments through Stripe. So why isn't that the end of the story?&lt;/p&gt;

&lt;p&gt;Three reasons, in order of weight:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reason 1: Transaction fees compound.&lt;/strong&gt; Stripe charges around 1.4% + ₺1.40 per successful card transaction in TRY, with currency conversion and cross-border markups stacking on top in some flows. A native bank virtual POS gateway typically charges 0% transaction fee — the bank takes its cut from the merchant agreement at the bank level, not per-transaction. For a store doing ₺2M/year in volume, that's roughly ₺28,000/year that doesn't have to leave the merchant.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reason 2: Installments (&lt;code&gt;taksit&lt;/code&gt;) are a feature, not a payment method.&lt;/strong&gt; Turkish consumers expect to see "3 ay taksit ile ₺X" alongside every product price. Installment plans are negotiated between the merchant and the issuing bank — each bank has its own installment rules, its own commission tiers, and its own "premium" cards that get extended installments. Stripe has no equivalent surface for this. You can simulate installments with a recurring subscription, but that's not what customers see at checkout, and conversion drops accordingly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reason 3: TRY-native ledger.&lt;/strong&gt; Stripe settles internationally; even when collecting in TRY, the reconciliation layer is built around a multi-currency model that assumes you'll eventually want to convert. Most Turkish merchants want a Turkish lira ledger that matches their &lt;code&gt;e-fatura&lt;/code&gt; (e-invoice) records line-for-line, with VAT broken out the way GİB (Turkish tax authority) expects it. Native bank POS does this natively.&lt;/p&gt;

&lt;p&gt;The combined effect: Stripe works, but it bleeds money on transaction fees, kills your installment funnel, and adds a reconciliation step that your accountant doesn't want.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The Local Payment Landscape
&lt;/h2&gt;

&lt;p&gt;Here's the actual list of payment surfaces a serious Turkish e-commerce store needs to support, at minimum:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tier-1 bank virtual POS (direct integration with the issuing bank):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Garanti BBVA&lt;/li&gt;
&lt;li&gt;İş Bankası&lt;/li&gt;
&lt;li&gt;Akbank&lt;/li&gt;
&lt;li&gt;Ziraat Bankası&lt;/li&gt;
&lt;li&gt;Halkbank&lt;/li&gt;
&lt;li&gt;VakıfBank&lt;/li&gt;
&lt;li&gt;Yapı Kredi&lt;/li&gt;
&lt;li&gt;TEB&lt;/li&gt;
&lt;li&gt;DenizBank&lt;/li&gt;
&lt;li&gt;QNB Finansbank&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Tier-2 payment aggregators (one integration, many banks underneath):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;iyzico (Visa-owned, biggest player)&lt;/li&gt;
&lt;li&gt;PayTR&lt;/li&gt;
&lt;li&gt;Param&lt;/li&gt;
&lt;li&gt;Moka&lt;/li&gt;
&lt;li&gt;Paycell (Turkcell)&lt;/li&gt;
&lt;li&gt;Sipay&lt;/li&gt;
&lt;li&gt;Hepsipay (Hepsiburada-owned)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Tier-3 alternative methods:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Papara (Turkish digital wallet)&lt;/li&gt;
&lt;li&gt;BKM Express (interbank wallet)&lt;/li&gt;
&lt;li&gt;Apple Pay / Google Pay (over local processors)&lt;/li&gt;
&lt;li&gt;Cash on delivery (still ~15% of orders in some categories)&lt;/li&gt;
&lt;li&gt;Bank transfer with auto-matching (&lt;code&gt;havale eşleştirme&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's 15+ direct gateways and at least 5 alternative payment surfaces. Realistically, a mature Turkish store integrates 5-8 of these — but the &lt;em&gt;engineering&lt;/em&gt; problem is that any one of them might be the cheapest path on a given transaction, depending on the buyer's card BIN and the merchant's bank agreement.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The Interface That Unifies Them All
&lt;/h2&gt;

&lt;p&gt;The architectural problem looks scary the first time you face it: 15 different APIs, 15 different XML/JSON formats, 15 different 3-D Secure callback patterns, 15 different error code sets, 15 different "test card" lists.&lt;/p&gt;

&lt;p&gt;The solution we converged on (and which I'd recommend to anyone hitting this problem) is the classic adapter pattern: one interface, one set of value objects, one error taxonomy. Each gateway gets an adapter class.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;PaymentGatewayInterface&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;getCode&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;getDisplayName&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;preparePayment&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;PaymentRequest&lt;/span&gt; &lt;span class="nv"&gt;$req&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;PaymentPrepared&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;handleThreeDSCallback&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;array&lt;/span&gt; &lt;span class="nv"&gt;$callback&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;ThreeDSResult&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;captureAuthorized&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="nv"&gt;$txRef&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;Money&lt;/span&gt; &lt;span class="nv"&gt;$amount&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;CaptureResult&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;refund&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="nv"&gt;$txRef&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;Money&lt;/span&gt; &lt;span class="nv"&gt;$amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;?string&lt;/span&gt; &lt;span class="nv"&gt;$reason&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;RefundResult&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;getInstallmentOptions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="nv"&gt;$cardBin&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;Money&lt;/span&gt; &lt;span class="nv"&gt;$amount&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;array&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;PaymentRequest&lt;/code&gt; value object normalizes the input across all gateways: card BIN, amount in TRY minor units, installment count, merchant order reference, return URLs, customer billing address. Same call signature, regardless of which bank is on the other end.&lt;/p&gt;

&lt;p&gt;Each adapter implementation translates this normalized request into whatever the bank expects — usually XML over HTTPS for tier-1 banks, JSON for aggregators, sometimes WSDL/SOAP for legacy stacks. The translation layer is the boring part. The interesting part is the next section.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. 3-D Secure Callback: Handling 15 Different Protocols
&lt;/h2&gt;

&lt;p&gt;3-D Secure is a regulatory requirement on most card transactions in Turkey since 2020. The flow looks the same from the customer side — you redirect to the bank, the customer enters an SMS code, they redirect back — but the &lt;em&gt;integration&lt;/em&gt; side varies wildly.&lt;/p&gt;

&lt;p&gt;Concrete differences across providers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Callback method:&lt;/strong&gt; POST vs GET vs both. iyzico does POST. Some legacy banks do GET. Some do POST but expect you to verify a hash on the &lt;em&gt;next&lt;/em&gt; page load.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HMAC verification:&lt;/strong&gt; SHA1, SHA256, SHA512, sometimes a custom hash with secret prefix. Order of fields in the hash payload matters and isn't always documented.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Status field naming:&lt;/strong&gt; &lt;code&gt;mdStatus&lt;/code&gt;, &lt;code&gt;status&lt;/code&gt;, &lt;code&gt;result&lt;/code&gt;, &lt;code&gt;tdStatus&lt;/code&gt;, &lt;code&gt;auth_result&lt;/code&gt; — different vocabulary, sometimes different value sets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Status semantics:&lt;/strong&gt; "1" can mean "3-D Secure success, proceed to auth" on one gateway and "fully authorized, capture done" on another. Confusing the two will silently capture funds without finishing 3-D, which is a compliance violation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The pattern that saved us was a per-gateway &lt;code&gt;ThreeDSValidator&lt;/code&gt; class that returns a normalized &lt;code&gt;ThreeDSResult&lt;/code&gt; enum:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;enum&lt;/span&gt; &lt;span class="n"&gt;ThreeDSOutcome&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="n"&gt;AUTHORIZED&lt;/span&gt;            &lt;span class="c1"&gt;// captured, money on its way&lt;/span&gt;
  &lt;span class="n"&gt;AUTHENTICATED_ONLY&lt;/span&gt;    &lt;span class="c1"&gt;// 3-D passed, auth still pending&lt;/span&gt;
  &lt;span class="n"&gt;CHALLENGE_REQUIRED&lt;/span&gt;    &lt;span class="c1"&gt;// friction beyond 3-D (rare)&lt;/span&gt;
  &lt;span class="n"&gt;REJECTED&lt;/span&gt;              &lt;span class="c1"&gt;// explicit fail&lt;/span&gt;
  &lt;span class="n"&gt;TIMEOUT&lt;/span&gt;               &lt;span class="c1"&gt;// no response, treat as fail&lt;/span&gt;
  &lt;span class="n"&gt;TAMPER_DETECTED&lt;/span&gt;       &lt;span class="c1"&gt;// HMAC failed, log + alert&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The order routing layer doesn't care which bank just called us back. It cares only about which of those six outcomes happened. That decoupling is the single most valuable thing in the whole stack — it means adding a new gateway is a 200-line adapter and a test fixture, not a redesign.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Real Cost Comparison: Stripe vs Native (3-Year Data)
&lt;/h2&gt;

&lt;p&gt;Numbers from a representative mid-sized merchant in our portfolio. Online fashion, ~₺3.2M annual volume, average basket ₺240, ~13,300 orders/year. Card mix: 78% Turkish-issued credit, 18% Turkish debit, 4% international.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scenario A — Stripe-only:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Transaction fee: 1.4% + ₺1.40 on Turkish cards (after volume discount). Roughly ₺44,800 + ₺18,620 = ₺63,420/year in transaction fees.&lt;/li&gt;
&lt;li&gt;Foreign cards (4%, ~₺128k volume): 2.9% + ₺2 = ₺3,712 + ₺1,064 = ₺4,776&lt;/li&gt;
&lt;li&gt;Installment funnel: not available natively. Either skipped (conversion drops ~12-18% on baskets over ₺1,000) or hacked via off-platform subscription (compliance grey area).&lt;/li&gt;
&lt;li&gt;Reconciliation: TRY/USD ledger split, manual e-invoice mapping.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Scenario B — iyzico + 4 direct bank gateways (Garanti, İş, Akbank, Ziraat):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Aggregator fee on iyzico-routed transactions (~30% of volume): 2.4% blended ≈ ₺23,040/year&lt;/li&gt;
&lt;li&gt;Direct bank fees on routed transactions (~70% of volume): 0% transaction, bank takes monthly fixed fee ≈ ₺18,000/year total across 4 banks&lt;/li&gt;
&lt;li&gt;Installment funnel: full native, all banks expose their installment offers&lt;/li&gt;
&lt;li&gt;Reconciliation: TRY-native, line-for-line with e-arşiv records&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Total: ₺41,040/year&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Difference: ₺27,156/year&lt;/strong&gt; in direct fees, plus the conversion lift from installments — which on this volume mix is worth roughly another ₺180-220k in additional revenue.&lt;/p&gt;

&lt;p&gt;The catch is the engineering investment. Building and maintaining the gateway layer is real work — call it 60-80 engineering days for the first build, plus 10-15 days/year of maintenance as banks shuffle their APIs. For merchants under ~₺1M annual volume, Stripe is genuinely the right call: the savings don't outrun the engineering cost. Above that line, native wins, every time.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. When Stripe Still Wins
&lt;/h2&gt;

&lt;p&gt;Honest take: there are still cases where Stripe is the right answer even in Turkey.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You sell mostly to non-Turkish customers in TRY&lt;/strong&gt; (export-heavy stores, language schools selling to expats). Stripe's multi-currency surface is genuinely useful, and you don't need installments.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You're pre-product-market-fit.&lt;/strong&gt; Don't sink 60 days into a payment layer when you're not sure anyone wants to buy. Ship with iyzico (one integration, decent coverage) and migrate later if volume justifies it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You operate B2B with invoice-based settlement.&lt;/strong&gt; Card transactions are a tiny fraction of revenue; the payment gateway is not your bottleneck.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You're on a serverless/SaaS PHP-incompatible stack&lt;/strong&gt; where the maintenance overhead of bank adapters falls on a team that doesn't have Turkish-language docs comprehension. Hiring local engineers for that is more expensive than the fees.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For everyone else — every Turkish-market store with national reach and &amp;gt;₺1M volume — local POS is not optional. It's table stakes.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Conclusion: Local Fintech Isn't Optional
&lt;/h2&gt;

&lt;p&gt;The mistake we made early on was treating Turkish payments as "Stripe with a TRY currency code." That mental model produces a working store and a slowly bleeding P&amp;amp;L. The right mental model is: this is a market with its own payment culture, its own regulatory frame, and its own gateway ecosystem, and the engineering effort to plug into it is one of the highest-ROI investments a Turkish e-commerce engineering team can make.&lt;/p&gt;

&lt;p&gt;If you're starting fresh, build the adapter layer from day one even if you only ship with one gateway initially. The interface costs almost nothing to write up front. Retrofitting it later — when your order layer has direct calls to &lt;code&gt;iyzico_client-&amp;gt;charge()&lt;/code&gt; scattered across 40 files — is the part that's painful.&lt;/p&gt;

&lt;p&gt;For more on the broader Turkish e-commerce engineering stack (CMS, bot integrations, AI cost optimization), see my earlier post on &lt;a href="https://dev.to/mahmut_gndzalp_c736ac4b/building-a-multi-llm-news-cms-with-php-82-lessons-from-200-production-sites-48dd"&gt;building a multi-LLM news CMS&lt;/a&gt; and the &lt;a href="https://dev.to/mahmut_gndzalp_c736ac4b/why-we-switched-from-react-to-htmx-in-production-a-200-site-case-study-5hgk"&gt;React-to-HTMX migration writeup&lt;/a&gt;. Same production stack, different surface.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Working on Turkish e-commerce or news CMS infrastructure? I run &lt;a href="https://alestaweb.com" rel="noopener noreferrer"&gt;Alesta WEB&lt;/a&gt;, an Şanlıurfa-based software shop building this kind of platform for the Turkish market since 2005. Happy to compare notes.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ecommerce</category>
      <category>php</category>
      <category>payments</category>
      <category>fintech</category>
    </item>
    <item>
      <title>Why We Switched from React to HTMX in Production: A 200-Site Case Study</title>
      <dc:creator>Mahmut Gündüzalp</dc:creator>
      <pubDate>Sat, 23 May 2026 09:19:58 +0000</pubDate>
      <link>https://dev.to/mahmut_gndzalp_c736ac4b/why-we-switched-from-react-to-htmx-in-production-a-200-site-case-study-5hgk</link>
      <guid>https://dev.to/mahmut_gndzalp_c736ac4b/why-we-switched-from-react-to-htmx-in-production-a-200-site-case-study-5hgk</guid>
      <description>&lt;p&gt;We ran a React SPA admin panel for almost three years. It worked. Customers logged in, edited content, published articles. Bundle size kept creeping up. Build times kept creeping up. A new dev needed two weeks to be productive. We started skipping minor features because "the diff is too risky."&lt;/p&gt;

&lt;p&gt;In Q3 2025 we migrated that panel to HTMX over six months, route by route. This post is the honest version of how it went — what worked, what we didn't see coming, and the numbers from running both stacks side by side across more than 200 production deployments.&lt;/p&gt;

&lt;h2&gt;
  
  
  The React tax in 2026
&lt;/h2&gt;

&lt;p&gt;Let me get one thing out of the way: React isn't broken. It's a fine tool for the workloads it was designed for. Our admin panel was not one of those workloads. Most of our screens are forms, lists, and modal dialogs. The fanciest interaction is drag-to-reorder. The actual user count per tenant is small — usually 1 to 5 editors per site.&lt;/p&gt;

&lt;p&gt;For that, here's what React was costing us:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bundle size:&lt;/strong&gt; ~800 KB gzipped after route-splitting, three vendor bundles, three lazy chunks&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;First admin login LCP:&lt;/strong&gt; 3.0s to 3.5s depending on region (we serve from a single Istanbul edge)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build time:&lt;/strong&gt; 90 seconds for production, 8 seconds for dev rebuild&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Onboarding:&lt;/strong&gt; new hires needed 10–14 days before they could ship a self-contained feature&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tooling churn:&lt;/strong&gt; in three years we went through three state management libraries and two router majors&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of these are dealbreakers in isolation. Stacked together, they made every small change expensive. We were paying SPA prices for a CRUD app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why HTMX caught our attention
&lt;/h2&gt;

&lt;p&gt;The pitch is one line: HTMX lets any element issue an AJAX request and swap the response into the DOM. There's no client-side router, no virtual DOM, no build step required. You render HTML on the server (we use Smarty 5), the browser swaps fragments, the network does the heavy lifting.&lt;/p&gt;

&lt;p&gt;What sold us wasn't the elegance of the demo. It was a 40-minute spike where one engineer rebuilt our "edit article" screen — form, validation, autosave, image upload — in 180 lines of HTML + a thin PHP controller. The React version was 1,400 lines across 9 files.&lt;/p&gt;

&lt;p&gt;The interesting part: the HTMX version felt faster, and was. No JS bundle to parse, no hydration step. The TTI was essentially the same as the LCP because there was nothing to hydrate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Migration strategy: parallel routes, no big bang
&lt;/h2&gt;

&lt;p&gt;We've been burned by big-bang rewrites before. This time we did parallel routes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Both stacks live in the same admin panel. Old routes (&lt;code&gt;/admin/old/*&lt;/code&gt;) keep serving React. New routes (&lt;code&gt;/admin/*&lt;/code&gt;) serve server-rendered HTML with HTMX.&lt;/li&gt;
&lt;li&gt;A shared session cookie means a user can be in the middle of editing in React, click a sidebar link, and land in the HTMX side without re-authenticating.&lt;/li&gt;
&lt;li&gt;We migrated one feature per sprint, easiest first (read-only lists), hardest last (the article editor with WYSIWYG).&lt;/li&gt;
&lt;li&gt;After each feature shipped, we deleted the React route and the JS that supported it. Bundle size dropped in steps — that visibility kept morale up.&lt;/li&gt;
&lt;li&gt;The cutover wasn't a date on the calendar. It was the moment the React bundle hit zero. That happened in week 22.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The "no big bang" rule matters. If we'd tried to ship the whole panel in one PR, we wouldn't have shipped at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three patterns we use everywhere
&lt;/h2&gt;

&lt;p&gt;Most of the panel is built from three patterns. If you understand these, you understand 80% of an HTMX codebase.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Form submit with inline validation
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;form&lt;/span&gt; &lt;span class="na"&gt;hx-post=&lt;/span&gt;&lt;span class="s"&gt;"/admin/articles"&lt;/span&gt;
      &lt;span class="na"&gt;hx-target=&lt;/span&gt;&lt;span class="s"&gt;"#form-result"&lt;/span&gt;
      &lt;span class="na"&gt;hx-swap=&lt;/span&gt;&lt;span class="s"&gt;"outerHTML"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"title"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;textarea&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"body"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/textarea&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Save&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"form-result"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Server returns either a success fragment or the same form re-rendered with inline error messages. No client-side validation library. No form library. The server is the single source of truth.&lt;/p&gt;

&lt;p&gt;The win: we deleted ~5,000 lines of duplicated client-side validation that was always one schema change away from drifting from the server.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Infinite scroll for long lists
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"article-list"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;article&amp;gt;&lt;/span&gt;...&lt;span class="nt"&gt;&amp;lt;/article&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;article&amp;gt;&lt;/span&gt;...&lt;span class="nt"&gt;&amp;lt;/article&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;hx-get=&lt;/span&gt;&lt;span class="s"&gt;"/admin/articles?page=2"&lt;/span&gt;
       &lt;span class="na"&gt;hx-trigger=&lt;/span&gt;&lt;span class="s"&gt;"revealed"&lt;/span&gt;
       &lt;span class="na"&gt;hx-swap=&lt;/span&gt;&lt;span class="s"&gt;"outerHTML"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    Loading...
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The sentinel div triggers when scrolled into view, fetches the next page, and replaces itself with the next batch (plus a new sentinel). One pattern, every long list. No virtual scrolling library, no IntersectionObserver setup code in userland.&lt;/p&gt;

&lt;p&gt;For lists over ~10,000 items we still reach for virtual scrolling, but those are rare in an admin context.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Modal dialogs with hx-target
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;hx-get=&lt;/span&gt;&lt;span class="s"&gt;"/admin/articles/42/edit"&lt;/span&gt;
        &lt;span class="na"&gt;hx-target=&lt;/span&gt;&lt;span class="s"&gt;"#modal"&lt;/span&gt;
        &lt;span class="na"&gt;hx-trigger=&lt;/span&gt;&lt;span class="s"&gt;"click"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  Edit
&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"modal"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The server returns the modal markup including a &lt;code&gt;&amp;lt;dialog&amp;gt;&lt;/code&gt; element with &lt;code&gt;open&lt;/code&gt;. To close, the modal posts back and returns an empty fragment that replaces itself. State of the dialog lives on the server.&lt;/p&gt;

&lt;p&gt;This one took the longest to internalize. The instinct from React land is to manage modal state in a store. With HTMX, the modal is just a fragment of HTML that the server hands you when you ask for it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The numbers, after six months
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;React (before)&lt;/th&gt;
&lt;th&gt;HTMX (after)&lt;/th&gt;
&lt;th&gt;Delta&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Admin bundle (gzipped)&lt;/td&gt;
&lt;td&gt;800 KB&lt;/td&gt;
&lt;td&gt;~50 KB&lt;/td&gt;
&lt;td&gt;–94%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LCP (Istanbul, p75)&lt;/td&gt;
&lt;td&gt;3.2s&lt;/td&gt;
&lt;td&gt;1.1s&lt;/td&gt;
&lt;td&gt;–66%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TTI (Istanbul, p75)&lt;/td&gt;
&lt;td&gt;4.1s&lt;/td&gt;
&lt;td&gt;1.2s&lt;/td&gt;
&lt;td&gt;–71%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Production build time&lt;/td&gt;
&lt;td&gt;90s&lt;/td&gt;
&lt;td&gt;6s&lt;/td&gt;
&lt;td&gt;–93%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dev rebuild&lt;/td&gt;
&lt;td&gt;8s&lt;/td&gt;
&lt;td&gt;&amp;lt;1s&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Backend response p95&lt;/td&gt;
&lt;td&gt;180ms&lt;/td&gt;
&lt;td&gt;220ms&lt;/td&gt;
&lt;td&gt;+22%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total admin LOC&lt;/td&gt;
&lt;td&gt;~42,000&lt;/td&gt;
&lt;td&gt;~28,000&lt;/td&gt;
&lt;td&gt;–33%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dev onboarding (days)&lt;/td&gt;
&lt;td&gt;10–14&lt;/td&gt;
&lt;td&gt;3–5&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A few things worth calling out:&lt;/p&gt;

&lt;p&gt;The 50 KB on the HTMX side is HTMX itself plus a tiny amount of our own glue code (~600 lines). No build pipeline required, though we keep a Vite step for CSS bundling.&lt;/p&gt;

&lt;p&gt;Backend response time &lt;strong&gt;went up&lt;/strong&gt;. That's not free — server rendering moved work from the client to the server. We mitigated with aggressive caching of partials (Smarty + Redis), but the trade is real: you pay in server CPU what you save in client work.&lt;/p&gt;

&lt;p&gt;The LOC drop surprised us. We expected maybe 10–15%. The 33% came mostly from deleting client-side mirrors of server state — form models, validation, optimistic update logic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where HTMX falls short — real talk
&lt;/h2&gt;

&lt;p&gt;This is the section I wish more "we switched to X" posts included.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Offline support is gone.&lt;/strong&gt; If you need a panel that works on a flaky connection, HTMX is the wrong tool. Every interaction is a network round-trip.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Complex client interactions get awkward.&lt;/strong&gt; We have one screen — a drag-and-drop tree editor for category hierarchy — that's still React. HTMX can do drag-and-drop with &lt;code&gt;sortable.js&lt;/code&gt;, but the round-trip-per-drop model breaks down for fine-grained interactions. Use the right tool.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Optimistic UI requires effort.&lt;/strong&gt; In React we'd just update local state and roll back on error. With HTMX you can simulate this with &lt;code&gt;hx-swap-oob&lt;/code&gt; and some discipline, but it's more code, not less.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Backend team needs to care about HTML.&lt;/strong&gt; This sounds obvious, but if your backend devs have been shipping pure JSON for five years, the switch to "you also own the fragment markup" is a real culture change. Some loved it. Some resisted.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Browser DevTools are less helpful.&lt;/strong&gt; No component tree, no React DevTools. You're back to inspecting the DOM and reading network requests. After a week we stopped missing the component tree, but the first week was rough.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Testing changed.&lt;/strong&gt; We dropped React Testing Library and most Jest tests. We added more PHP integration tests that fetch endpoints and assert on the returned HTML. Total test count went down ~40% but coverage actually improved — we were testing implementation details before.&lt;/p&gt;

&lt;h2&gt;
  
  
  Was it worth it?
&lt;/h2&gt;

&lt;p&gt;For a CRUD admin panel with a small concurrent user count, serving server-rendered HTML over the wire and letting the browser do what the browser is already good at — yes, very much.&lt;/p&gt;

&lt;p&gt;The cost shifted: we moved complexity from the client to the server, which means we now care more about backend cache hit rates and partial rendering performance than about React render performance. That's a tractable problem for the team we have.&lt;/p&gt;

&lt;p&gt;We're not evangelists. The frontend team kept React for our customer-facing storefront editor, where rich interaction and offline-first matter. The right architecture is the one that fits the workload.&lt;/p&gt;

&lt;p&gt;If you're sitting on a React-built admin panel that feels heavier than the problem it solves, do a one-week spike on the smallest screen. Measure. If the numbers above look like yours, you might save more by deleting code than by writing it.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;This is part of an engineering blog series from Alesta WEB, where we build news CMS and e-commerce platforms used by 200+ production sites in Turkey. Other posts cover &lt;a href="https://dev.to/mahmut_gndzalp_c736ac4b/building-a-multi-llm-news-cms-with-php-82-lessons-from-200-production-sites-48dd"&gt;our multi-LLM CMS architecture&lt;/a&gt; and more.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>htmx</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>performance</category>
    </item>
    <item>
      <title>Building a Multi-LLM News CMS with PHP 8.2: Lessons from 200+ Production Sites</title>
      <dc:creator>Mahmut Gündüzalp</dc:creator>
      <pubDate>Sat, 16 May 2026 19:05:17 +0000</pubDate>
      <link>https://dev.to/mahmut_gndzalp_c736ac4b/building-a-multi-llm-news-cms-with-php-82-lessons-from-200-production-sites-48dd</link>
      <guid>https://dev.to/mahmut_gndzalp_c736ac4b/building-a-multi-llm-news-cms-with-php-82-lessons-from-200-production-sites-48dd</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Over the past 21 years, our team has helped build and maintain a news content management ecosystem that now powers 200+ active news portals across Turkey. In the last 18 months, we've integrated six different LLM providers (OpenAI, Anthropic, Google Gemini, DeepSeek, Groq, and Mistral) into news production workflows.&lt;/p&gt;

&lt;p&gt;This article shares the &lt;strong&gt;architectural decisions and lessons&lt;/strong&gt; we've learned — not implementation specifics, but the why-and-when of multi-LLM systems for news publishing. The patterns that let us reduce AI inference costs by &lt;strong&gt;~95%&lt;/strong&gt; while keeping quality high.&lt;/p&gt;

&lt;p&gt;No buzzwords. Just decisions that hold up in production.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Multi-LLM Instead of "Just Use GPT-4"?
&lt;/h2&gt;

&lt;p&gt;Three reasons we don't rely on a single AI provider:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Cost optimization.&lt;/strong&gt; GPT-4o costs $2.50/M input tokens. Gemini Flash costs $0.075/M — 33x cheaper. A simple summary task doesn't need GPT-4o's reasoning. Routing tasks to the right model means massive savings.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Vendor independence.&lt;/strong&gt; When OpenAI had outages in 2024-2025, sites that relied solely on GPT broke. Multi-provider setups fell back to Claude or Gemini seamlessly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Specialized strengths.&lt;/strong&gt; Claude is better at long-context reasoning. Gemini is better at structured output. Groq is fastest for real-time chat. Mistral handles multilingual content well. Each provider has a sweet spot.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Cascade Routing Strategy
&lt;/h2&gt;

&lt;p&gt;The core idea: try the fastest and cheapest model first; fall back to more capable (and expensive) models only when needed.&lt;/p&gt;

&lt;p&gt;For a news CMS, this means categorizing tasks by complexity:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Simple summaries&lt;/strong&gt; → fast cheap models (Groq Llama, Gemini Flash)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Headline suggestions&lt;/strong&gt; → mid-tier models (GPT-4o-mini, Claude Haiku)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SEO meta generation&lt;/strong&gt; → cheap models suffice&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Long-form content generation&lt;/strong&gt; → premium models (Claude Sonnet, GPT-4o)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fact-checking&lt;/strong&gt; → highest reliability tier (accuracy critical)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Translation&lt;/strong&gt; → mid-tier multilingual models&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each task type gets a &lt;strong&gt;fallback chain&lt;/strong&gt;. If the primary model is rate-limited or unavailable, the system tries the next one — no human intervention needed.&lt;/p&gt;

&lt;p&gt;The savings come from the realization that &lt;strong&gt;most news CMS tasks don't need the smartest model&lt;/strong&gt;. A two-line summary of a news article doesn't require frontier reasoning. Reserving premium models for the genuinely hard tasks (complex analysis, fact-checking) is where multi-LLM pays off.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Abstraction Matters
&lt;/h2&gt;

&lt;p&gt;Each AI provider has different SDKs, request formats, authentication, error handling, and pricing models. Hiding all of this behind a &lt;strong&gt;common interface&lt;/strong&gt; is what makes multi-LLM practical.&lt;/p&gt;

&lt;p&gt;The principle is simple: any provider should be swappable without changing the calling code. A workflow that "summarizes an article" shouldn't care if it's OpenAI, Anthropic, or Google under the hood. Today it might be Gemini Flash; next month it might be a new provider that didn't exist when the code was written.&lt;/p&gt;

&lt;p&gt;This abstraction also makes A/B testing painless. Want to know if Claude Sonnet produces better summaries than GPT-4o for Turkish news? Route 50% of traffic to each, measure quality and cost, decide. Without abstraction, this experiment would require parallel codebases.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cost Optimization: 95% Reduction in Practice
&lt;/h2&gt;

&lt;p&gt;The cost reduction comes from three compounding layers:&lt;/p&gt;

&lt;h3&gt;
  
  
  Layer 1: Caching (~60% of savings)
&lt;/h3&gt;

&lt;p&gt;Many news CMS tasks are &lt;strong&gt;deterministic&lt;/strong&gt;: "summarize this article" with the same article produces the same answer. Cache once, reuse forever (until the source content changes).&lt;/p&gt;

&lt;p&gt;Real-world cache hit rate in production: ~70% for common tasks like summaries, SEO meta tags, and headline suggestions.&lt;/p&gt;

&lt;p&gt;The trick is knowing &lt;strong&gt;what to cache and what not to&lt;/strong&gt;. Personalized content, real-time chat, and time-sensitive analysis shouldn't be cached. But the bread-and-butter of news editing (summarize, tag, rewrite headline) is highly cacheable.&lt;/p&gt;

&lt;h3&gt;
  
  
  Layer 2: Batch APIs (~25% additional savings)
&lt;/h3&gt;

&lt;p&gt;OpenAI's Batch API offers 50% discount with a 24-hour SLA. Anthropic offers the same. Many news tasks don't need to happen in real-time:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Overnight SEO meta generation for the day's articles&lt;/li&gt;
&lt;li&gt;Bulk product description generation for e-commerce catalogs&lt;/li&gt;
&lt;li&gt;Archived content tagging and categorization&lt;/li&gt;
&lt;li&gt;Translation backlog processing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Workers collect these into batches and submit them periodically. The savings compound across thousands of operations per day.&lt;/p&gt;

&lt;h3&gt;
  
  
  Layer 3: Cascade Routing (~10% additional savings)
&lt;/h3&gt;

&lt;p&gt;By the time tasks reach a premium model, they've already been filtered through:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Cache (free)&lt;/li&gt;
&lt;li&gt;Cheap model attempt (Groq, Gemini Flash)&lt;/li&gt;
&lt;li&gt;Mid-tier model attempt (GPT-4o-mini, Claude Haiku)&lt;/li&gt;
&lt;li&gt;Premium model (only when truly needed)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Quality gates between layers reject inadequate outputs from cheap models, but most outputs pass the gate. Premium model usage drops to &amp;lt;10% of total inference calls.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turkish News Agency Landscape
&lt;/h2&gt;

&lt;p&gt;This is where geographic context matters. Turkey's news ecosystem revolves around 8 major wire services:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Anadolu Ajansı (AA)&lt;/strong&gt; — state news agency&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Demirören Haber Ajansı (DHA)&lt;/strong&gt; — major commercial wire&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;İhlas Haber Ajansı (İHA)&lt;/strong&gt; — conservative-aligned wire&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ANKA, THA, HİBYA, İGFA, BHA&lt;/strong&gt; — regional and specialized agencies&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each has its own content format, distribution protocol, and category taxonomy. Generic global CMS platforms (WordPress, Drupal) don't handle this — there's no "Turkish news agency plugin" that connects all eight.&lt;/p&gt;

&lt;p&gt;The implementation pattern here is &lt;strong&gt;adapter-style integration&lt;/strong&gt;: each agency gets its own integration module that conforms to a common interface, so the downstream workflow doesn't care which agency the content came from. Adding a 9th or 10th agency becomes a few days of work, not a months-long rewrite.&lt;/p&gt;

&lt;p&gt;A scheduled job runs every few minutes, fetches new articles from all enabled agencies in parallel, normalizes image formats (WebP conversion for web performance), generates responsive thumbnails, deduplicates against existing content, and stores everything in a moderation queue. Editors then review, approve, edit, or reject — never publishing raw wire content blindly.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI Visibility: SEO's Next Frontier
&lt;/h2&gt;

&lt;p&gt;Traditional SEO targets Google. &lt;strong&gt;AI visibility&lt;/strong&gt; targets ChatGPT, Claude, Gemini, Perplexity, and their successors. The standards are emerging:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;llms.txt&lt;/code&gt;&lt;/strong&gt; — a markdown file similar to &lt;code&gt;robots.txt&lt;/code&gt; but content-focused. It tells LLM crawlers what your site is about, key sections, and how to navigate it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;ai-sitemap.xml&lt;/code&gt;&lt;/strong&gt; — like &lt;code&gt;sitemap.xml&lt;/code&gt; but with article summaries and structured metadata that LLMs can ingest efficiently.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Schema.org JSON-LD&lt;/strong&gt; — &lt;code&gt;NewsArticle&lt;/code&gt;, &lt;code&gt;NewsMediaOrganization&lt;/code&gt;, &lt;code&gt;BreadcrumbList&lt;/code&gt;, &lt;code&gt;FAQPage&lt;/code&gt; markups give crawlers structured access to content semantics.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bot allow/disallow rules&lt;/strong&gt; — explicitly permitting GPTBot, ClaudeBot, PerplexityBot, OAI-SearchBot, CCBot, Bytespider, AppleBot, and Google-Extended.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The bet is that &lt;strong&gt;LLM-based search and answer engines will eventually rival Google for content discovery&lt;/strong&gt;. Sites optimized only for traditional SEO will lose visibility in this new layer. Adding AI visibility to the standard SEO checklist is cheap insurance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Production Numbers
&lt;/h2&gt;

&lt;p&gt;After 18 months of running multi-LLM stacks across news production:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AI inference cost reduction:&lt;/strong&gt; approximately 95% vs naive GPT-4o-only approach&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache hit rate:&lt;/strong&gt; approximately 70% on common tasks (summaries, headlines, SEO meta)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Provider availability:&lt;/strong&gt; 99.97% (vs single-provider ~99.5%)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Processing throughput:&lt;/strong&gt; sub-second cached responses, 1-3 seconds for fresh inference&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agency content ingestion:&lt;/strong&gt; 8 agencies polled regularly, thousands of articles processed daily&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These numbers come from real production environments, not benchmarks. Your mileage will vary depending on traffic patterns, cache TTL strategy, and quality requirements.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lessons Learned
&lt;/h2&gt;

&lt;p&gt;After 21 years building CMS software and 18 months optimizing for AI:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Don't lock into one provider.&lt;/strong&gt; It's tempting to "just use OpenAI." Don't. The day they have an outage or change pricing, you'll wish you had alternatives ready.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Cache aggressively, but thoughtfully.&lt;/strong&gt; Most AI tasks repeat with deterministic outputs. Cache them. But know which tasks must always be fresh (personalized, real-time, time-sensitive).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Route by task complexity, not by hype.&lt;/strong&gt; Most tasks don't need GPT-4o or Claude Opus. A cheap model gets 90% of the work done at 5% of the cost. Save premium models for genuinely hard tasks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Local regulations are first-class concerns.&lt;/strong&gt; In Turkey: KVKK (data protection), İYS (marketing consent registry), BİK (Press Advertising Authority) compliance. In EU: GDPR, AI Act. Don't bolt these on later — design for them from day one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Quality gates matter.&lt;/strong&gt; A cheap model giving wrong answers is more expensive than an expensive model giving right ones (especially when wrong outputs damage brand trust). Add validation between cascade layers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Stable beats shiny.&lt;/strong&gt; Modern PHP isn't trendy. Smarty isn't trendy. MySQL isn't trendy. They all run reliably for years. The newest framework will be deprecated in three. Pick stable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing Thoughts
&lt;/h2&gt;

&lt;p&gt;The "best" architecture for a news CMS isn't the most novel. It's the one that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Works reliably for years&lt;/li&gt;
&lt;li&gt;Costs less than what you charge clients&lt;/li&gt;
&lt;li&gt;Handles local quirks (regulatory, linguistic, cultural)&lt;/li&gt;
&lt;li&gt;Survives provider deprecations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Multi-LLM with cascade routing and aggressive caching fits that bill in 2026. It will probably fit it in 2030 too — the providers will change, but the abstraction principle won't.&lt;/p&gt;

&lt;p&gt;If you're building or evaluating a multi-provider AI architecture, focus on &lt;strong&gt;decision points&lt;/strong&gt; rather than specific implementations. The provider you start with may not be the one you finish with. The pattern that works today should still work when the entire AI landscape has rotated through three or four hype cycles.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I write about practical software architecture, multi-LLM systems, and lessons from running CMS at scale. Feel free to drop questions in the comments — I read all of them, even when I don't reply quickly.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>php</category>
      <category>ai</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
