<?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: Sami Hussain</title>
    <description>The latest articles on DEV Community by Sami Hussain (@samihussaindev).</description>
    <link>https://dev.to/samihussaindev</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4214545%2Fe611ad90-1719-432d-bde2-8df5261cbd52.jpg</url>
      <title>DEV Community: Sami Hussain</title>
      <link>https://dev.to/samihussaindev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/samihussaindev"/>
    <language>en</language>
    <item>
      <title>I put free AI into my local PHP stack: no API key to paste, and a Fix with AI button on every error</title>
      <dc:creator>Sami Hussain</dc:creator>
      <pubDate>Wed, 25 Nov 2026 07:00:33 +0000</pubDate>
      <link>https://dev.to/samihussaindev/i-put-free-ai-into-my-local-php-stack-no-api-key-to-paste-and-a-fix-with-ai-button-on-every-error-4b60</link>
      <guid>https://dev.to/samihussaindev/i-put-free-ai-into-my-local-php-stack-no-api-key-to-paste-and-a-fix-with-ai-button-on-every-error-4b60</guid>
      <description>&lt;p&gt;&lt;strong&gt;PHP Station&lt;/strong&gt; is my free, open-source workbench for PHP and Laravel on Windows. Each project runs on its own PHP version, Composer and MariaDB, side by side. It also catches every email, &lt;code&gt;dump()&lt;/code&gt; and error in one inbox, and can undo a single bad query.&lt;/p&gt;

&lt;p&gt;A few weeks ago I added an AI hub to it. People liked the idea, but in practice almost nobody used it, and the reason was always the same:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"It wants an API key. I opened Google AI Studio, got lost, closed the tab."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Pasting keys is fine for us, but not for a student on XAMPP who just wants to know why Laravel says &lt;code&gt;Target class [PostController] does not exist&lt;/code&gt;. So this update had one goal: &lt;strong&gt;the AI works the moment PHP Station starts, and adding more AI never needs a copy-paste.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What's new at a glance
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;What it means for you&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;🆓&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Free AI, no key&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Chat works on first start, with no account and nothing to paste&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🔑&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Quick connect&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;One OpenRouter login, or a key caught from the clipboard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🛠️&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Fix with AI&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;You see a diff, then the panel backs up, applies, runs &lt;code&gt;php -l&lt;/code&gt; and keeps Undo ready&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🦈&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Friendly error pages&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A plain message and a &lt;em&gt;Try again&lt;/em&gt; button, with the details one click away&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Below are the screenshots, plus the parts of the code I think are worth stealing.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. A free AI that works with no key at all
&lt;/h2&gt;

&lt;p&gt;The AI page now opens on a chat that is ready to answer. Out of the box it uses &lt;strong&gt;Pollinations&lt;/strong&gt;, a free text API with an anonymous tier: no account, no key, no sign-up. You type a question and get an answer.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5o10w1tf85to3zyvn37g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5o10w1tf85to3zyvn37g.png" alt="The AI page on first start: a hello, four starter questions, and &amp;quot;Answering: Pollinations (free, no login)&amp;quot; in the header" width="800" height="500"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;First start: a free AI is already answering, no login needed.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A few small things make it feel like a chat app and not a settings page:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It opens on a hello with four starter questions, and a new chat starts with your first message (no "New chat" click first).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enter&lt;/strong&gt; sends, &lt;strong&gt;Shift + Enter&lt;/strong&gt; makes a new line, and the box grows with the text.&lt;/li&gt;
&lt;li&gt;The header shows &lt;strong&gt;which AI answers next&lt;/strong&gt;, and replies show the logo of the AI that actually answered.&lt;/li&gt;
&lt;li&gt;Code blocks get a copy button, and each chat can be tied to one of your projects.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuh70tk5f3utav0ytlevw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuh70tk5f3utav0ytlevw.png" alt="A real answer about the N+1 query problem, with SQL and PHP code blocks" width="800" height="500"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;A real answer: the N+1 problem and eager loading, with code you can copy.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The anonymous tier has a small limit, so it is the floor, not the ceiling. The next two features are how you add more AI without touching a key.&lt;/p&gt;


&lt;h2&gt;
  
  
  2. Quick connect: three ways in, none of them is copy-paste
&lt;/h2&gt;

&lt;p&gt;The AI accounts page now starts with a &lt;strong&gt;Quick connect&lt;/strong&gt; box:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;No login, ready now.&lt;/strong&gt; Pollinations, as above.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One login, many free models.&lt;/strong&gt; &lt;em&gt;Log in with OpenRouter&lt;/em&gt;: one OAuth login, and you get OpenRouter's free models (DeepSeek, Qwen Coder, Llama, Gemma …). When one is busy, another one answers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More AI, one click each.&lt;/strong&gt; &lt;em&gt;Connect&lt;/em&gt; on a provider card, or &lt;em&gt;Find keys on this PC&lt;/em&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo8vjhzsrc9hdt5c1upok.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo8vjhzsrc9hdt5c1upok.png" alt="Quick connect: no login / one login / one click each, then provider cards for Gemini, Groq, OpenRouter, Mistral, Cerebras and GitHub Models" width="800" height="500"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Quick connect, then one card per free provider, each with its own logo.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Free tiers always come first. When one runs out (429, daily quota, "high demand"), it cools down and the next one answers &lt;strong&gt;the same conversation&lt;/strong&gt;. Paid accounts are only used if you add them yourself.&lt;/p&gt;
&lt;h3&gt;
  
  
  Log in with OpenRouter (OAuth PKCE on localhost)
&lt;/h3&gt;

&lt;p&gt;OpenRouter supports &lt;a href="https://openrouter.ai/docs/use-cases/oauth-pkce" rel="noopener noreferrer"&gt;OAuth PKCE&lt;/a&gt; with a localhost callback, which is perfect for a local tool: no client secret, and no server of mine in the middle. The panel makes a verifier, sends the user to OpenRouter, and swaps the code for a key when the browser comes back to &lt;code&gt;localhost:&amp;lt;port&amp;gt;/oauth/openrouter&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;startOpenRouterLogin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;verifier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;b64url&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;crypto&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;randomBytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;32&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;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;challenge&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;b64url&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;crypto&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createHash&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'sha256'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;verifier&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;digest&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;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;crypto&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;randomBytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'hex'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;      &lt;span class="c1"&gt;// one-time, expires in 15 min&lt;/span&gt;
  &lt;span class="n"&gt;oauthPending&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;verifier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&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;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;cb&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`http://localhost:${ctx.port}/oauth/openrouter`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;q&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;URLSearchParams&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;callback_url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;cb&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;code_challenge&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;challenge&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;code_challenge_method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'S256'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key_label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'PHP Station by x8code'&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;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`https://openrouter.ai/auth?${q}`&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;blockquote&gt;
&lt;p&gt;💡 &lt;strong&gt;Safety rule:&lt;/strong&gt; the free OpenRouter account &lt;strong&gt;only ever sends &lt;code&gt;:free&lt;/code&gt; models&lt;/strong&gt; (price 0). If someone types a paid model by hand, it is dropped and a free one is picked. So even a key that has credit on it is never charged by PHP Station.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Connect: the key is caught from the clipboard
&lt;/h3&gt;

&lt;p&gt;Gemini, Groq, Mistral, Cerebras and GitHub Models don't have a public OAuth flow for this. So &lt;strong&gt;Connect&lt;/strong&gt; does the next best thing. It opens the provider's key page, and you only click &lt;strong&gt;Copy&lt;/strong&gt; there. PHP Station sees the key on the clipboard, saves it and tests it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjhujiike9t0tdu7s8sen.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjhujiike9t0tdu7s8sen.png" alt="The Connect dialog for Google Gemini: the key page is open, click &amp;quot;Create key&amp;quot;, then just Copy. Waiting for the copied key (3 minutes)" width="800" height="500"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Click Copy on the provider's page. PHP Station picks the key up, saves it and tests it.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Reading the clipboard is a privacy question, so it is kept narrow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It only accepts text &lt;strong&gt;shaped like that provider's key&lt;/strong&gt;. Nothing else is read into the panel or kept.&lt;/li&gt;
&lt;li&gt;It stops after 3 minutes, on Cancel, or as soon as it has the key.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="cm"&gt;/** What a key of each provider looks like (to catch it from the clipboard). */&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;KEY_RE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;gemini&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;/^&lt;/span&gt;&lt;span class="nc"&gt;AIza&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;9A&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Za&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;z_&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;$&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;groq&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;/^&lt;/span&gt;&lt;span class="n"&gt;gsk_&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;A&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Za&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;z0&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;$&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;openrouter&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;/^&lt;/span&gt;&lt;span class="n"&gt;sk&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="ow"&gt;or&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v1&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;A&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Za&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;z0&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;$&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;cerebras&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;/^&lt;/span&gt;&lt;span class="n"&gt;csk&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;A&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Za&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;z0&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;$&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;github&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;/^&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;github_pat_&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;A&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Za&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;z0&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;9_&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;gh&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;pousr&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;A&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Za&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;z0&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;20&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;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="c1"&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;PHP Station has zero npm dependencies, so the watcher is a short PowerShell loop. The key pattern comes in through an environment variable, never on a command line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$end&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddSeconds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="nv"&gt;$env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;PS_AI_SECS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;lt&lt;/span&gt; &lt;span class="nv"&gt;$end&lt;/span&gt;&lt;span class="p"&gt;)&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="nc"&gt;Test&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;LiteralPath&lt;/span&gt; &lt;span class="nv"&gt;$env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;PS_AI_STOP&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;break&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;          &lt;span class="c1"&gt;# Cancel&lt;/span&gt;
  &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;$c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Clipboard&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Raw&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ErrorAction&lt;/span&gt; &lt;span class="nc"&gt;Stop&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;$c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$null&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="nv"&gt;$c&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;$c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Trim&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;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$c&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;cmatch&lt;/span&gt; &lt;span class="nv"&gt;$env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;PS_AI_RE&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;span class="n"&gt;ok&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$c&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;ConvertTo&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Json&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Compress&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;exit&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nc"&gt;Start&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Sleep&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Milliseconds&lt;/span&gt; &lt;span class="mi"&gt;700&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Find keys on this PC&lt;/strong&gt; covers developers who already have keys. It reads &lt;code&gt;GEMINI_API_KEY&lt;/code&gt;, &lt;code&gt;GROQ_API_KEY&lt;/code&gt;, &lt;code&gt;OPENROUTER_API_KEY&lt;/code&gt; … from the environment, or your GitHub CLI login for GitHub Models. It asks before it uses any of them.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;🔒 Every key is encrypted with Windows DPAPI (current user only). The page only ever sees &lt;code&gt;••••abcd&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  3. Fix with AI, and why it kept failing
&lt;/h2&gt;

&lt;p&gt;Every error in PHP Station's Inbox (and every broken file in the Upgrade Lab and the Security scan) has a &lt;strong&gt;Fix with AI&lt;/strong&gt; button. It sends the error, the file around the line and up to two of your own stack frames. It never sends &lt;code&gt;.env&lt;/code&gt;, &lt;code&gt;vendor&lt;/code&gt;, &lt;code&gt;storage&lt;/code&gt;, or files outside the project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F16dst6qhdcea8fg5kfbw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F16dst6qhdcea8fg5kfbw.png" alt="Fix with AI: &amp;quot;Cannot redeclare function array_first() (PHP 8.5.9)&amp;quot;, goes first to Groq (free)" width="800" height="535"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Step 1: the error, which AI gets it first, and exactly what is sent.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The AI answers with exact search/replace edits, and you see the diff before anything changes:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv79oz0iebq6gh9prc3ye.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv79oz0iebq6gh9prc3ye.png" alt="The diff: the helper is wrapped in if (!function_exists('array_first'))" width="799" height="681"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Step 2: the diff. Nothing changes until you press Apply and check.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Apply and check&lt;/strong&gt; does the following:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Backs up the files.&lt;/li&gt;
&lt;li&gt;Applies the edits.&lt;/li&gt;
&lt;li&gt;Runs &lt;code&gt;php -l&lt;/code&gt; with the same PHP the error came from.&lt;/li&gt;
&lt;li&gt;Opens the page again, if the error came from a page.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If the check fails, the files go back and the AI gets one more try with what failed. &lt;strong&gt;Undo&lt;/strong&gt; is always there.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqy7x738184jp76klg6db.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqy7x738184jp76klg6db.png" alt="Fixed: OK php -l app\helpers.php (PHP 8.5.9), with an Undo button" width="800" height="751"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Step 3: fixed and checked with &lt;code&gt;php -l&lt;/code&gt;. Undo puts the files back.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  The bug: answers that were &lt;em&gt;nearly&lt;/em&gt; right
&lt;/h3&gt;

&lt;p&gt;That was the theory. In practice, my own "Fix with AI" failed with &lt;em&gt;no AI answered&lt;/em&gt; almost every time. The panel log showed why. The answers were &lt;strong&gt;nearly right&lt;/strong&gt;, and "nearly right" was thrown away:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One model left out the &lt;strong&gt;last &lt;code&gt;}&lt;/code&gt;&lt;/strong&gt; of its JSON.&lt;/li&gt;
&lt;li&gt;Another copied the &lt;code&gt;search&lt;/code&gt; text &lt;strong&gt;with the line numbers&lt;/strong&gt; from the view I gave it, or with different indentation, so it matched zero times.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What I changed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ask the same AI once more, with the reason&lt;/strong&gt;, before moving on to the next AI. Most models fix their own answer when told "your search text was found 0 times".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Close JSON&lt;/strong&gt; whose last brackets are missing (a small bracket stack over the text).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Match the search text loosely, but only if it is still unique&lt;/strong&gt;: first exact, then without copied line numbers, then line by line ignoring whitespace. The replacement moves to the file's own indentation.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Exact first; then without line numbers; then whole lines compared without spaces.&lt;/span&gt;
&lt;span class="c1"&gt;// A loose match must still be unique, and it returns the file's own text.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;norm&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;l&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;l&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&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;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;+/&lt;/span&gt;&lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;' '&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;want&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;have&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;ok&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;want&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;ok&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;norm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;have&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="nf"&gt;norm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;want&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;k&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;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;hits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&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;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="mi"&gt;1&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="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`the search text was found ${hits.length} times`&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;Fixes now also get more room (8192 tokens), and a "free limit reached, retry after N s" is waited out when no other AI is left. The error message now says &lt;strong&gt;why&lt;/strong&gt; an answer was refused, instead of a bare "no AI answered".&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;🎯 &lt;strong&gt;Lesson:&lt;/strong&gt; with free and small models, build for answers that are nearly right. One retry that includes the reason is worth more than a long chain of fallbacks.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;h2&gt;
  
  
  4. Error pages with a shark 🦈
&lt;/h2&gt;

&lt;p&gt;Raw errors scare people more than they help them. When something fails now, PHP Station shows one deep-sea scene, in the panel's black &amp;amp; silver: &lt;strong&gt;a shark biting through the network cable&lt;/strong&gt;. It has a plain title, what to do next, and a &lt;em&gt;Try again&lt;/em&gt; button. The technical text is folded under &lt;em&gt;Details (for developers)&lt;/em&gt; with a copy button.&lt;/p&gt;

&lt;p&gt;When no AI can answer, the chat shows it inline, with a button straight to AI accounts:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fktgmjvg2putigjxp996h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fktgmjvg2putigjxp996h.png" alt="The AI can't answer right now: the shark, Try again, Open AI accounts, and the raw message under Details" width="800" height="500"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;No AI ready: a plain message, two buttons, and the raw error folded under Details.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;When the panel's own server goes away (closed, restarting), the whole panel shows it after 2.5 s and reconnects by itself. The art is kept in memory, so it still shows when the server that would serve it is gone:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fal3tfbuizfgyngg3qpxu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fal3tfbuizfgyngg3qpxu.png" alt="Lost the connection: looks like a shark bit through the cable; your projects and databases keep running" width="800" height="500"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The panel's server is gone. Your projects and databases keep running.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Unknown addresses get the same page from the server, in the panel's language (Urdu right to left too), with no script:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhtd6cm7ioxqfqsxhht3v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhtd6cm7ioxqfqsxhht3v.png" alt="This page is not here, with an Open the panel button" width="800" height="538"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The 404 page: the same scene, served without any script.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The art is one hand-written SVG (&lt;code&gt;public/shark.svg&lt;/code&gt;) with CSS animations only. It is still when &lt;code&gt;prefers-reduced-motion&lt;/code&gt; is on, and it is served with a CSP that allows nothing but its own inline style.&lt;/p&gt;


&lt;h2&gt;
  
  
  What I'd tell anyone adding AI to a dev tool
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The first answer must need zero setup.&lt;/strong&gt; A keyless tier, even a small one, changes who uses the feature.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Treat key handling as UX.&lt;/strong&gt; OAuth where it exists, clipboard catch where it doesn't, environment variables for the people who already have keys.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never let a free path cost money.&lt;/strong&gt; Filter to free models in code, not in the docs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plan for answers that are nearly right.&lt;/strong&gt; Retry with the reason, repair what is safe to repair, and verify (&lt;code&gt;php -l&lt;/code&gt;, reload the page) before you call it fixed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make failure friendly, but keep the details one click away&lt;/strong&gt; for the developer.&lt;/li&gt;
&lt;/ol&gt;


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

&lt;p&gt;PHP Station is free and MIT licensed, with zero npm dependencies. It runs on Windows 10/11 with PHP 7.4 to 8.5 and MariaDB 10.4 to 12.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/sami-hussain-dev/PHP-Station.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then double-click &lt;code&gt;PHP-Station.bat&lt;/code&gt;. The setup wizard installs PHP, MariaDB and Composer from their official sources, and the AI page works right away.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/sami-hussain-dev/PHP-Station" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3ybubm97xo7lul7059oe.png" alt="PHP Station: run every PHP &amp;amp; Laravel project side by side on Windows, each with its own PHP, Composer and MariaDB" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/sami-hussain-dev/PHP-Station" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;⭐ Star PHP Station on GitHub&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;Stars, issues and PRs are very welcome.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you try it, tell me in the comments:&lt;/strong&gt; which free AI answered your first question, and did Fix with AI get it right? 👇&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built by **Muhammad Sami Hussain&lt;/em&gt;&lt;em&gt;, Founder &amp;amp; Lead Software Engineer at &lt;a href="https://x8code.com" rel="noopener noreferrer"&gt;x8code&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>php</category>
      <category>ai</category>
      <category>laravel</category>
      <category>opensource</category>
    </item>
    <item>
      <title>AdOchi: A Free, Open-Source Ad &amp; Scam Blocker That Beats YouTube's Black Screen</title>
      <dc:creator>Sami Hussain</dc:creator>
      <pubDate>Wed, 18 Nov 2026 10:00:22 +0000</pubDate>
      <link>https://dev.to/samihussaindev/adochi-a-free-open-source-ad-scam-blocker-that-beats-youtubes-black-screen-25gc</link>
      <guid>https://dev.to/samihussaindev/adochi-a-free-open-source-ad-scam-blocker-that-beats-youtubes-black-screen-25gc</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; &lt;a href="https://github.com/sami-hussain-dev/AdOchi" rel="noopener noreferrer"&gt;AdOchi&lt;/a&gt; is a free, open-source (GPL-3.0) ad, tracker and scam blocker for &lt;strong&gt;Android&lt;/strong&gt; and for &lt;strong&gt;Chrome, Edge, Brave, Opera and Firefox&lt;/strong&gt;. Most blockers now cause YouTube's black screen. AdOchi doesn't block YouTube's ads. It lets them load, then plays them &lt;strong&gt;muted, invisible and at 16× speed&lt;/strong&gt;, so a 15-second ad is over in about one second. It also blocks &lt;strong&gt;370,000+ scam and phishing domains&lt;/strong&gt;, and it runs fully on your device. There's no account and it has no servers of its own.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Last updated: November 2026 · AdOchi v1.3&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F82ttm09w5zy75jxoeks3.png" alt=" " width="128" height="128"&gt;
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Quick facts
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;What it is&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;An ad, tracker and scam blocker&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Platforms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Android app, plus a browser extension for Chrome, Edge, Brave, Opera and Firefox&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Price&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;License&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;GNU GPL v3.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Ad and tracker list&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;210,000+ domains&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Scam, phishing and malware list&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;370,000+ domains&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Data collected&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;None: no account, no analytics, no servers of its own&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Tech&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Kotlin + Jetpack Compose (Android), Manifest V3 &lt;code&gt;declarativeNetRequest&lt;/code&gt; (extension)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Made by&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://x8code.com" rel="noopener noreferrer"&gt;x8code&lt;/a&gt;, Karachi, Pakistan&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/sami-hussain-dev" rel="noopener noreferrer"&gt;
        sami-hussain-dev
      &lt;/a&gt; / &lt;a href="https://github.com/sami-hussain-dev/AdOchi" rel="noopener noreferrer"&gt;
        AdOchi
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Free, open-source ad, tracker &amp;amp; scam blocker for Android and Chrome/Edge/Brave/Firefox. Blocks ads in apps, games &amp;amp; browsers, removes Facebook/YouTube ads and stops phishing sites. 100% on-device, no account. Made by x8code.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div&gt;
&lt;a rel="noopener noreferrer" href="https://github.com/sami-hussain-dev/AdOchi/docs/assets/banner.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fsami-hussain-dev%2FAdOchi%2FHEAD%2Fdocs%2Fassets%2Fbanner.png" alt="AdOchi: YouTube without ads and without the black screen. Skips YouTube and Facebook video ads, removes sponsored posts and stops scam sites. For Android, Chrome, Edge, Brave, Opera and Firefox." width="100%"&gt;&lt;/a&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;AdOchi&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Free ad, tracker and scam blocker for Android and every major browser.&lt;/strong&gt;&lt;br&gt;
YouTube without ads &lt;em&gt;and without the black screen&lt;/em&gt;. Facebook without sponsored posts. Scam sites stopped before they load.&lt;br&gt;
No account. No servers. Nothing leaves your device.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/sami-hussain-dev/AdOchi/releases/latest" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/f1acbdd37ed5fbb333a3eb34767b9a50d33611504c836fc05fe8dd1e832d440b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f73616d692d6875737361696e2d6465762f41644f6368693f6c6162656c3d72656c6561736526636f6c6f723d306661333766" alt="Latest release"&gt;&lt;/a&gt;
&lt;a href="https://github.com/sami-hussain-dev/AdOchi/releases" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/e2065251696ece525faabfe61949cbb851dd9c57162a25fe2b7af2ed6efef7d8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f73616d692d6875737361696e2d6465762f41644f6368692f746f74616c3f636f6c6f723d306661333766" alt="Downloads"&gt;&lt;/a&gt;
&lt;a href="https://github.com/sami-hussain-dev/AdOchi/LICENSE" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/4c6c9bdd1ad32ffb99c18c0adc985f8226037c65285bf7049b2de38eb17320e3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c2d2d332e302d626c7565" alt="License: GPL v3"&gt;&lt;/a&gt;
&lt;a href="https://github.com/sami-hussain-dev/AdOchi/stargazers" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/1d553da7b2ef469aa683df20ddad423eb9fc0dd2451226a727f0ff8e849d1c79/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73616d692d6875737361696e2d6465762f41644f6368693f7374796c653d736f6369616c" alt="Stars"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Download (one click)&lt;/h3&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href="https://github.com/sami-hussain-dev/AdOchi/releases/latest/download/AdOchi.apk" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/ffc09ff17d8bf0a7a5edd170370a6d351d575f1b2e39712f30594c9fe98c2ea3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f416e64726f69642d446f776e6c6f616425323041504b2d3344444338343f7374796c653d666f722d7468652d6261646765266c6f676f3d616e64726f6964266c6f676f436f6c6f723d7768697465" alt="Download the Android APK" height="44"&gt;&lt;/a&gt;
&lt;a href="https://github.com/sami-hussain-dev/AdOchi/releases/latest/download/AdOchi-Extension-Chrome-Edge-Brave.zip" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/f9d37a357ded6e3c0b1e2e082cf4a5f28afa384e021a7b0a451ec8077f7ab3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4368726f6d65253230c2b725323045646765253230c2b725323042726176652d446f776e6c6f61642d3432383546343f7374796c653d666f722d7468652d6261646765266c6f676f3d676f6f676c656368726f6d65266c6f676f436f6c6f723d7768697465" alt="Download for Chrome, Edge, Brave and Opera" height="44"&gt;&lt;/a&gt;
&lt;a href="https://github.com/sami-hussain-dev/AdOchi/releases/latest/download/AdOchi-Extension-Firefox.zip" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/c16bf6cc8f1817e5f4f9b12eff1666e5ebc4ced05c6a1fdb6f929f06eed27189/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f46697265666f782d446f776e6c6f61642d4646373133393f7374796c653d666f722d7468652d6261646765266c6f676f3d66697265666f7862726f77736572266c6f676f436f6c6f723d7768697465" alt="Download for Firefox" height="44"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Each button downloads the newest version straight away. &lt;a href="https://github.com/sami-hussain-dev/AdOchi#install-in-1-minute" rel="noopener noreferrer"&gt;How to install&lt;/a&gt; · &lt;a href="https://github.com/sami-hussain-dev/AdOchi/releases" rel="noopener noreferrer"&gt;All releases&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Why AdOchi?&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;In 2025–2026 YouTube started punishing ad blockers. When a blocker deletes the ads from the player's data, the video sits on a &lt;strong&gt;black screen with a spinning circle&lt;/strong&gt; for as long as the ad would have run, or it never starts at all. That's why many blockers suddenly stopped working.&lt;/p&gt;
&lt;p&gt;For signed-in viewers YouTube went further: &lt;em&gt;"Ad blockers violate YouTube's Terms of Service. Video playback is blocked"&lt;/em&gt;. It looks for blocked ad requests, hidden ad boxes, ads jumped to their end and &lt;em&gt;Skip&lt;/em&gt; buttons pressed by a script.&lt;/p&gt;
&lt;p&gt;AdOchi gives…&lt;/p&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/sami-hussain-dev/AdOchi" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;





&lt;h2&gt;
  
  
  The problem: ad blockers started breaking YouTube
&lt;/h2&gt;

&lt;p&gt;In 2025 and 2026, YouTube started fighting back against ad blockers. The usual approach is to block ad requests or delete the ads from the player's data. That now backfires:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The video sits on a &lt;strong&gt;black screen with a spinner&lt;/strong&gt; for as long as the ad would have run.&lt;/li&gt;
&lt;li&gt;Sometimes it &lt;strong&gt;never starts at all&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Signed-in users can get &lt;em&gt;"Ad blockers violate YouTube's Terms of Service. Video playback is blocked."&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;YouTube looks for four signals: &lt;strong&gt;blocked ad requests&lt;/strong&gt;, &lt;strong&gt;hidden ad boxes&lt;/strong&gt;, &lt;strong&gt;ads that jump straight to their end&lt;/strong&gt;, and &lt;strong&gt;Skip buttons clicked by a script&lt;/strong&gt;. A blocker that does any of these can get caught.&lt;/p&gt;

&lt;p&gt;So I took a different approach.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: let the ad load, and don't let anyone see it
&lt;/h2&gt;

&lt;p&gt;On YouTube, AdOchi &lt;strong&gt;blocks nothing and hides no ad boxes in the player&lt;/strong&gt;. The ad loads as normal. Then AdOchi:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;mutes&lt;/strong&gt; it,&lt;/li&gt;
&lt;li&gt;makes it &lt;strong&gt;invisible&lt;/strong&gt; (&lt;code&gt;opacity: 0&lt;/code&gt; on the ad's video), and&lt;/li&gt;
&lt;li&gt;plays it at &lt;strong&gt;16×&lt;/strong&gt;, the top speed browsers allow.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A 15-second ad is gone in about a second. YouTube sees an ad that loaded and played to the end, because that's what happened.&lt;/p&gt;

&lt;h3&gt;
  
  
  Measured in Chrome on the same videos (November 2026)
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setup&lt;/th&gt;
&lt;th&gt;Before the video starts&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;No blocker&lt;/td&gt;
&lt;td&gt;6 s + 66 s of ads&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Blockers that delete YouTube's ad data&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;8–10 s black screen&lt;/strong&gt; (some signed-in users say it never starts)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;AdOchi 1.3&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;No black screen.&lt;/strong&gt; Ads muted, hidden and played at 16×. With no ad, the video starts at once&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  The interesting part: keeping the ad fast when YouTube resets it
&lt;/h3&gt;

&lt;p&gt;The hard part wasn't speeding the ad up. It was &lt;strong&gt;keeping&lt;/strong&gt; it sped up. YouTube's player sets an ad back to &lt;strong&gt;1× and turns the sound on&lt;/strong&gt; when it starts, and again between the ads in a break. In version 1.2 that meant some ads played at normal speed.&lt;/p&gt;

&lt;p&gt;Version 1.3 wraps the &lt;code&gt;playbackRate&lt;/code&gt; and &lt;code&gt;muted&lt;/code&gt; setters on &lt;code&gt;HTMLMediaElement.prototype&lt;/code&gt;. While an ad runs, the player's writes are &lt;strong&gt;stored instead of applied&lt;/strong&gt;. When the player reads the values back, it gets exactly what it wrote. So the player is happy, and the ad stays at 16× and silent.&lt;/p&gt;

&lt;p&gt;Here's a simplified version of the idea:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// While an ad runs, AdOchi owns the &amp;lt;video&amp;gt;'s speed.&lt;/span&gt;
&lt;span class="c1"&gt;// YouTube's player can still "set" it: we store the value and&lt;/span&gt;
&lt;span class="c1"&gt;// return it when the player reads it back, so it only sees its own values.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;held&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;WeakMap&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;span class="c1"&gt;// video -&amp;gt; { want: { playbackRate, muted } }&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getOwnPropertyDescriptor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;HTMLMediaElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;prototype&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'playbackRate'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;defineProperty&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;HTMLMediaElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;prototype&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'playbackRate'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;configurable&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;enumerable&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;enumerable&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Proxy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;video&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
      &lt;span class="n"&gt;held&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;has&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;video&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;held&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;video&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;want&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;playbackRate&lt;/span&gt;
                      &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Reflect&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;video&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;args&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;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;set&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Proxy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;set&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;video&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&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="n"&gt;held&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;has&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;video&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Reflect&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;video&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="n"&gt;held&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;video&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;want&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;playbackRate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// remember it, don't apply it&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;span class="p"&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;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Why &lt;code&gt;Proxy&lt;/code&gt; and not a plain function? A proxied native function still reports &lt;code&gt;function () { [native code] }&lt;/code&gt; when you call &lt;code&gt;toString()&lt;/code&gt; on it. To the page, the getter and setter look untouched.&lt;/p&gt;

&lt;p&gt;A few more details from the real code (&lt;a href="https://github.com/sami-hussain-dev/AdOchi/blob/master/app/src/main/assets/cleaner.js" rel="noopener noreferrer"&gt;&lt;code&gt;cleaner.js&lt;/code&gt;&lt;/a&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Speed fallback:&lt;/strong&gt; it tries &lt;code&gt;[16, 10, 8, 4, 2]&lt;/code&gt; and uses the fastest rate the browser accepts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No seeking, no clicks:&lt;/strong&gt; YouTube ignores scripted clicks on &lt;em&gt;Skip&lt;/em&gt;, and an ad that jumps to its end is easy to spot. So AdOchi does neither.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your settings come back:&lt;/strong&gt; when the break ends, your own speed (for example 1.5×) and your sound settings return.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Safe mode:&lt;/strong&gt; if YouTube still refuses to play, AdOchi notices. It steps back from YouTube for &lt;strong&gt;6 hours&lt;/strong&gt; and reloads the video, so &lt;strong&gt;the video always plays&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The same &lt;code&gt;cleaner.js&lt;/code&gt; is shared by the Android app's built-in browser and the browser extension, so both get the fix.&lt;/p&gt;




&lt;h2&gt;
  
  
  What AdOchi does: features
&lt;/h2&gt;

&lt;h3&gt;
  
  
  📱 Android app
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;🚫 &lt;strong&gt;Blocks ads in every app, browser and game&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;A local DNS filter with &lt;strong&gt;210,000+&lt;/strong&gt; ad and tracker domains&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;▶️ &lt;strong&gt;Clean Browser&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;YouTube, Facebook, Instagram, TikTok and X without video ads or sponsored posts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🎧 &lt;strong&gt;Background play&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;YouTube keeps playing with the screen off. &lt;em&gt;Pause / Next / Close&lt;/em&gt; sit in the notification&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🛡️ &lt;strong&gt;Scam, phishing and malware blocking&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;370,000+&lt;/strong&gt; domains, plus an alert that &lt;strong&gt;names the app&lt;/strong&gt; that tried to open one&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🔍 &lt;strong&gt;Phone scan&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Finds apps that can read your SMS/OTPs, control your screen (Accessibility), act as device admin or hide their icon&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;💬 &lt;strong&gt;Message checks&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Share any WhatsApp or SMS message to AdOchi to check its link&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;📊 &lt;strong&gt;Privacy report and time saved&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Shows which apps try to track you and how much ad time you got back&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🎮 &lt;strong&gt;Ad-free offline games&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Cuts the internet for games that don't need it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;⚙️ &lt;strong&gt;More&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Default-browser mode, Quick Settings tile, DNS-over-HTTPS, Private DNS light mode, weekly report, and home-screen shortcuts for &lt;strong&gt;YouTube (no ads)&lt;/strong&gt; and &lt;strong&gt;Facebook (no ads)&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Why not inside the official YouTube and Facebook apps?&lt;/strong&gt; Those apps load ads from the same servers as your videos and feed. No DNS blocker can remove those ads without breaking the app. Instead, open YouTube and Facebook &lt;em&gt;inside AdOchi&lt;/em&gt;. The home-screen shortcut makes that one tap.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  🧩 Browser extension (Chrome, Edge, Brave, Opera, Firefox)
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fsami-hussain-dev%2FAdOchi%2Fmaster%2Fdocs%2Fassets%2Fpopup.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fsami-hussain-dev%2FAdOchi%2Fmaster%2Fdocs%2Fassets%2Fpopup.png" alt="AdOchi browser extension popup showing 5 ads and trackers blocked on this page, 2h 14m of video ads saved with a Share button, and switches for ads, scam sites and clean Facebook and YouTube" width="680" height="1424"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fast blocking:&lt;/strong&gt; it uses the same ad, tracker and scam lists. The browser runs them itself through &lt;strong&gt;Manifest V3 &lt;code&gt;declarativeNetRequest&lt;/code&gt;&lt;/strong&gt;, with no slow JavaScript filtering.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;YouTube with no black screen&lt;/strong&gt;, and Facebook without sponsored posts or video ad breaks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Time-saved counter.&lt;/strong&gt; Share it on WhatsApp, X or Facebook in one tap.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Popup controls:&lt;/strong&gt; see what was blocked on this page, pause on one site, and turn each list on or off.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🛡️ Scam protection that people actually need
&lt;/h3&gt;

&lt;p&gt;Fake ads and scam links are one of the main ways people lose their bank logins and OTP codes. When you open a known scam, phishing or malware site, AdOchi shows a warning page &lt;strong&gt;instead of the site&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fov8trkssusprf9up1f7y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fov8trkssusprf9up1f7y.png" alt="AdOchi scam warning page: &amp;quot;Dangerous site blocked&amp;quot;. It may pretend to be your bank, JazzCash, Easypaisa, BISP or a delivery company. Never enter your PIN, OTP, password or card number on a link you didn't expect." width="800" height="760"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  How it works under the hood
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;On Android&lt;/strong&gt;, AdOchi uses Android's &lt;code&gt;VpnService&lt;/code&gt; to run a &lt;strong&gt;local DNS tunnel&lt;/strong&gt;. Nothing goes to a remote VPN server. When an app looks up a domain, AdOchi checks it against the blocklists on the device. Blocked domains get no answer. Allowed lookups go to the public DNS resolver you choose, over &lt;strong&gt;DNS-over-HTTPS&lt;/strong&gt; if you turn it on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In the browser&lt;/strong&gt;, the build script turns the same blocklists into &lt;code&gt;declarativeNetRequest&lt;/code&gt; rules. The browser enforces them natively, which is fast and fits Manifest V3.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The build has safety checks.&lt;/strong&gt; It &lt;strong&gt;never blocks&lt;/strong&gt; a list of essential sites, whatever a blocklist says. That list includes Google, Facebook, WhatsApp, YouTube, Pakistani banks and wallets, and government sites. The build &lt;strong&gt;fails&lt;/strong&gt; if a core ad network is missing from the lists.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;app/                    Android app (Kotlin, Jetpack Compose)
  src/main/java/com/adochi/
    core/               blocklists, filter engine, link inspector, phone scanner, stats
    vpn/                local DNS tunnel, DNS-over-HTTPS, Quick Settings tile
    browser/            Clean Browser (WebView), background play, scam warning page
    guard/              Message Guard (full flavor)
    ui/                 screens and components
  src/main/assets/      cleaner.js (shared with the extension), media.js, built-in lists
extension/
  src/                  manifest, background, popup, warning page
  tools/build.mjs       list download + rule generation + packaging
  test/e2e.mjs          real-browser test in headless Chrome
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Install AdOchi in 1 minute
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Android
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;On your phone, download &lt;strong&gt;&lt;a href="https://github.com/sami-hussain-dev/AdOchi/releases/latest/download/AdOchi.apk" rel="noopener noreferrer"&gt;AdOchi.apk&lt;/a&gt;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Open the file. If Android asks, allow &lt;em&gt;"Install unknown apps"&lt;/em&gt; for your browser.&lt;/li&gt;
&lt;li&gt;Open AdOchi and tap the big button. Android asks once to allow the VPN. That's the local filter, and nothing goes to any server.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Chrome, Edge, Brave and Opera
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Download &lt;strong&gt;&lt;a href="https://github.com/sami-hussain-dev/AdOchi/releases/latest/download/AdOchi-Extension-Chrome-Edge-Brave.zip" rel="noopener noreferrer"&gt;AdOchi-Extension-Chrome-Edge-Brave.zip&lt;/a&gt;&lt;/strong&gt; and unzip it.&lt;/li&gt;
&lt;li&gt;Open &lt;code&gt;chrome://extensions&lt;/code&gt; (Edge: &lt;code&gt;edge://extensions&lt;/code&gt;, Brave: &lt;code&gt;brave://extensions&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Turn on &lt;strong&gt;Developer mode&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Load unpacked&lt;/strong&gt; and pick the folder that has &lt;code&gt;manifest.json&lt;/code&gt; directly inside it.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Firefox
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Download &lt;strong&gt;&lt;a href="https://github.com/sami-hussain-dev/AdOchi/releases/latest/download/AdOchi-Extension-Firefox.zip" rel="noopener noreferrer"&gt;AdOchi-Extension-Firefox.zip&lt;/a&gt;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Open &lt;code&gt;about:debugging#/runtime/this-firefox&lt;/code&gt;, click &lt;strong&gt;Load Temporary Add-on&lt;/strong&gt; and pick the ZIP.&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;Store listings for the Chrome Web Store and Firefox Add-ons are on the way. Until then, use the steps above.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Build it from source
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Android&lt;/strong&gt; (JDK 17+, Android SDK with compileSdk 36):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./gradlew assembleDirectDebug        &lt;span class="c"&gt;# debug build&lt;/span&gt;
./gradlew testDirectDebugUnitTest    &lt;span class="c"&gt;# unit tests&lt;/span&gt;
node app/src/test/js/cleaner_test.js &lt;span class="c"&gt;# page-cleaner checks&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There are two product flavors. &lt;code&gt;direct&lt;/code&gt; is the APK to share. &lt;code&gt;full&lt;/code&gt; adds automatic Message Guard through notification access.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Browser extension&lt;/strong&gt; (Node.js 20+):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;node extension/tools/build.mjs           &lt;span class="c"&gt;# download lists, build Chrome + Firefox, zip them&lt;/span&gt;
node extension/tools/build.mjs --cached  &lt;span class="c"&gt;# rebuild from lists downloaded earlier&lt;/span&gt;
node extension/test/e2e.mjs chrome       &lt;span class="c"&gt;# test blocking, warning page and popup in headless Chrome&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Privacy: what leaves your device?
&lt;/h2&gt;

&lt;p&gt;Nothing, unless you tap &lt;em&gt;Share&lt;/em&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Blocklists&lt;/strong&gt; download straight from their public sources.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Allowed DNS lookups&lt;/strong&gt; go to the public resolver you choose.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Messages&lt;/strong&gt; are checked offline and never stored.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Time saved&lt;/strong&gt; is counted on your device.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There's no account, no analytics and no AdOchi server. The code is GPL-3.0, so you can check every line yourself.&lt;/p&gt;




&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is AdOchi?
&lt;/h3&gt;

&lt;p&gt;AdOchi is a free, open-source ad, tracker and scam blocker for Android and for the Chrome, Edge, Brave, Opera and Firefox browsers. It's made by x8code, a software house in Karachi, Pakistan.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is AdOchi free?
&lt;/h3&gt;

&lt;p&gt;Yes. AdOchi is completely free and open source under the GNU GPL v3.0 license. It has no paid tier, no ads and no account.&lt;/p&gt;

&lt;h3&gt;
  
  
  How does AdOchi block YouTube ads without the black screen?
&lt;/h3&gt;

&lt;p&gt;It doesn't block them. It lets YouTube's ads load, then plays them muted, invisible and at 16× speed. YouTube sees an ad that played normally, so it doesn't show the black screen or the "playback is blocked" message.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does AdOchi work inside the official YouTube and Facebook apps?
&lt;/h3&gt;

&lt;p&gt;No. Those apps load ads from the same servers as your content, so no blocker can remove them there safely. Open YouTube and Facebook inside AdOchi's Clean Browser instead. A home-screen shortcut makes it one tap.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why does the Android app ask for VPN permission?
&lt;/h3&gt;

&lt;p&gt;Android only lets an app filter DNS for the whole phone through its &lt;code&gt;VpnService&lt;/code&gt; API. AdOchi uses it for a local filter on your phone. Your traffic isn't sent to any VPN server.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does AdOchi collect my data?
&lt;/h3&gt;

&lt;p&gt;No. AdOchi has no account, no analytics and no servers of its own. Blocklists come from public sources, and messages are checked offline and never stored.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does AdOchi work with Manifest V3?
&lt;/h3&gt;

&lt;p&gt;Yes. The browser extension is built on Manifest V3 and uses &lt;code&gt;declarativeNetRequest&lt;/code&gt;, so it works in current Chrome, Edge and Brave.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which blocklists does AdOchi use?
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://github.com/hagezi/dns-blocklists" rel="noopener noreferrer"&gt;HaGeZi DNS blocklists&lt;/a&gt;, &lt;a href="https://oisd.nl" rel="noopener noreferrer"&gt;OISD&lt;/a&gt;, &lt;a href="https://github.com/AdguardTeam/AdGuardSDNSFilter" rel="noopener noreferrer"&gt;AdGuard DNS filter&lt;/a&gt;, &lt;a href="https://github.com/StevenBlack/hosts" rel="noopener noreferrer"&gt;StevenBlack hosts&lt;/a&gt;, &lt;a href="https://phishing.army" rel="noopener noreferrer"&gt;Phishing Army&lt;/a&gt; and &lt;a href="https://gitlab.com/malware-filter" rel="noopener noreferrer"&gt;malware-filter&lt;/a&gt;. Each list keeps its own license. Big thanks to their maintainers.&lt;/p&gt;




&lt;h2&gt;
  
  
  Help AdOchi grow 🚀
&lt;/h2&gt;

&lt;p&gt;If AdOchi saves you time, or saves someone you know from a scam link:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;⭐ &lt;strong&gt;&lt;a href="https://github.com/sami-hussain-dev/AdOchi" rel="noopener noreferrer"&gt;Star the repo on GitHub&lt;/a&gt;.&lt;/strong&gt; It's the main way other people find it.&lt;/li&gt;
&lt;li&gt;📤 &lt;strong&gt;Share your "time saved"&lt;/strong&gt; from the popup.&lt;/li&gt;
&lt;li&gt;🐞 &lt;strong&gt;Did an ad get through?&lt;/strong&gt; &lt;a href="https://github.com/sami-hussain-dev/AdOchi/issues/new" rel="noopener noreferrer"&gt;Open an issue&lt;/a&gt; with the site and what you saw.&lt;/li&gt;
&lt;li&gt;🛠️ &lt;strong&gt;PRs are welcome&lt;/strong&gt;, especially for new ad-break wordings and scam patterns in your language.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'd love feedback from the dev.to community. &lt;strong&gt;What's the most annoying ad or scam you've run into lately?&lt;/strong&gt; Tell me in the comments 👇&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built by **Muhammad Sami Hussain&lt;/em&gt;&lt;em&gt;, Founder &amp;amp; Lead Software Engineer at &lt;a href="https://x8code.com" rel="noopener noreferrer"&gt;x8code&lt;/a&gt;, a software house in Karachi, Pakistan.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>android</category>
      <category>opensource</category>
      <category>privacy</category>
      <category>security</category>
    </item>
    <item>
      <title>PHP Station: a free XAMPP &amp; Laragon alternative for Laravel on Windows</title>
      <dc:creator>Sami Hussain</dc:creator>
      <pubDate>Mon, 16 Nov 2026 06:14:14 +0000</pubDate>
      <link>https://dev.to/samihussaindev/php-station-a-free-xampp-laragon-alternative-for-laravel-on-windows-jom</link>
      <guid>https://dev.to/samihussaindev/php-station-a-free-xampp-laragon-alternative-for-laravel-on-windows-jom</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR — PHP Station is a free, open-source local development environment for PHP and Laravel on Windows.&lt;/strong&gt; It runs every project on its own PHP version, Composer and MariaDB server at the same time. It catches every email, &lt;code&gt;dump()&lt;/code&gt; and error in one inbox, can undo a single bad SQL query, and protects your databases from the classic XAMPP crash. It is plain Node.js with zero npm dependencies: double-click a &lt;code&gt;.bat&lt;/code&gt; file and it opens.&lt;/p&gt;

&lt;p&gt;⭐ &lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/sami-hussain-dev/PHP-Station" rel="noopener noreferrer"&gt;github.com/sami-hussain-dev/PHP-Station&lt;/a&gt; · MIT license · Windows 10 / 11&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj9ap5o49a74k0sj02v4n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj9ap5o49a74k0sj02v4n.png" alt="PHP Station dashboard on Windows: five PHP and Laravel projects, each with its own PHP version, Composer and MariaDB server" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I built it
&lt;/h2&gt;

&lt;p&gt;I work on several Laravel apps at once on Windows. One is still on Laravel 8 and PHP 8.0, another is on Laravel 12 and PHP 8.3, and there are older PHP projects too. XAMPP gives you one PHP. Laragon lets you switch, but only one version at a time. And then there was the rest of the day:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a test OTP email went to a &lt;strong&gt;real&lt;/strong&gt; user because &lt;code&gt;.env&lt;/code&gt; still pointed to Gmail;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;dd()&lt;/code&gt; broke the page layout, again;&lt;/li&gt;
&lt;li&gt;a 40 MB &lt;code&gt;laravel.log&lt;/code&gt; and one error I actually needed;&lt;/li&gt;
&lt;li&gt;a &lt;code&gt;DELETE&lt;/code&gt; without a &lt;code&gt;WHERE&lt;/code&gt;, or &lt;code&gt;migrate:fresh&lt;/code&gt; in the wrong terminal;&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;"MySQL shutdown unexpectedly"&lt;/em&gt; after Windows restarted for an update.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;PHP Station is my answer to all of that, in one control panel. Here is the full tour.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Contents&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Install everything without admin rights&lt;/li&gt;
&lt;li&gt;Run multiple PHP versions at the same time&lt;/li&gt;
&lt;li&gt;Move from XAMPP or Laragon&lt;/li&gt;
&lt;li&gt;Open a Laravel project from GitHub&lt;/li&gt;
&lt;li&gt;Catch emails, &lt;code&gt;dump()&lt;/code&gt; and errors&lt;/li&gt;
&lt;li&gt;Undo a bad query&lt;/li&gt;
&lt;li&gt;Several MariaDB versions, phpMyAdmin, DB Move&lt;/li&gt;
&lt;li&gt;Stop "MySQL shutdown unexpectedly"&lt;/li&gt;
&lt;li&gt;Show your local site to a client&lt;/li&gt;
&lt;li&gt;Comparison, under the hood, FAQ&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What is PHP Station?
&lt;/h2&gt;

&lt;p&gt;PHP Station is a &lt;strong&gt;local PHP development environment and control panel for Windows&lt;/strong&gt;. It runs on your own machine only (&lt;code&gt;127.0.0.1&lt;/code&gt;) and does four jobs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;it &lt;strong&gt;manages runtimes&lt;/strong&gt;: PHP 7.4 – 8.5, MariaDB 10.4 – 12.x, Composer and phpMyAdmin, either your existing XAMPP / Laragon installs or fresh official downloads;&lt;/li&gt;
&lt;li&gt;it &lt;strong&gt;runs projects&lt;/strong&gt;: each one with its own PHP, Composer, DB server and port;&lt;/li&gt;
&lt;li&gt;it &lt;strong&gt;helps you debug&lt;/strong&gt;: mail catcher, &lt;code&gt;dump()&lt;/code&gt; viewer and grouped Laravel errors;&lt;/li&gt;
&lt;li&gt;it &lt;strong&gt;protects your data&lt;/strong&gt;: clean shutdowns, snapshots, daily dumps, one-click repair and an undo for single queries.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It works as a &lt;strong&gt;modern XAMPP / Laragon alternative&lt;/strong&gt;, but it doesn't throw away what you have. It finds your existing installs and uses them.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. How do I install PHP, MariaDB and Composer on Windows without admin rights?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffocek2oto1eph831kcik.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffocek2oto1eph831kcik.png" alt="PHP Station setup wizard: what is installed on this PC and what each PHP project needs" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Double-click &lt;code&gt;PHP-Station.bat&lt;/code&gt;. If Node.js is missing, it offers to download the portable LTS from nodejs.org (SHA-256 checked) into its own folder.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;Setup wizard&lt;/strong&gt; then works in two steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It shows what is already on your PC (XAMPP, Laragon, WAMP, anything on PATH) and works out what your projects need from their &lt;code&gt;composer.json&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auto select&lt;/strong&gt; picks the versions, and everything installs in one batch.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ula3cnbgoxuaacuf2lx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ula3cnbgoxuaacuf2lx.png" alt="Choosing PHP, MariaDB, Composer and phpMyAdmin versions in the PHP Station installer" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Downloads come &lt;strong&gt;only from the official sources&lt;/strong&gt;: windows.php.net, mariadb.org, getcomposer.org and phpmyadmin.net. Every file is SHA-256 verified. Everything lands in PHP Station's own &lt;code&gt;runtimes&lt;/code&gt; folder: &lt;strong&gt;no admin rights, and your system PATH is never changed.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. How do I run multiple PHP versions at the same time on Windows?
&lt;/h2&gt;

&lt;p&gt;Each project card has its own &lt;strong&gt;PHP version, Composer, DB server and port&lt;/strong&gt;. Switch on a Laravel 8 app on PHP 8.0 and a Laravel 12 app on PHP 8.3, and they both run &lt;strong&gt;at the same time&lt;/strong&gt;. Nothing is switched globally.&lt;/p&gt;

&lt;p&gt;Smaller things that add up:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The right PHP, suggested.&lt;/strong&gt; PHP Station reads &lt;code&gt;composer.json&lt;/code&gt;, &lt;code&gt;composer.lock&lt;/code&gt;, &lt;code&gt;vendor&lt;/code&gt; and &lt;code&gt;.env&lt;/code&gt;, detects the Laravel version and marks the best PHP with ★. It warns you when the chosen PHP doesn't fit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A terminal per project.&lt;/strong&gt; Inside it, &lt;code&gt;php&lt;/code&gt; and &lt;code&gt;composer&lt;/code&gt; are exactly that project's versions, so &lt;code&gt;composer install&lt;/code&gt;, &lt;code&gt;php artisan tinker&lt;/code&gt; and &lt;code&gt;migrate:status&lt;/code&gt; just work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A setup checklist.&lt;/strong&gt; It creates &lt;code&gt;.env&lt;/code&gt; from &lt;code&gt;.env.example&lt;/code&gt;, writes the DB settings and &lt;code&gt;APP_URL&lt;/code&gt;, runs &lt;code&gt;composer install&lt;/code&gt; and &lt;code&gt;key:generate&lt;/code&gt;. Every &lt;code&gt;.env&lt;/code&gt; change is backed up first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Missing database on Run?&lt;/strong&gt; Copy it from another server, import a &lt;code&gt;.sql&lt;/code&gt; file or create it empty. Nothing is ever overwritten.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The right DB port without editing &lt;code&gt;.env&lt;/code&gt;.&lt;/strong&gt; If &lt;code&gt;.env&lt;/code&gt; names another &lt;code&gt;DB_PORT&lt;/code&gt; than the server really uses, the correct port is passed through the environment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Servers you started yourself&lt;/strong&gt; (&lt;code&gt;php artisan serve&lt;/code&gt;, &lt;code&gt;php -S&lt;/code&gt;) are detected, and you can adopt or stop them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fast server.&lt;/strong&gt; On Windows, &lt;code&gt;php -S&lt;/code&gt; answers one request at a time, so every CSS, JS and image waits behind the page. PHP Station puts a tiny Node proxy in front: it serves static files directly and spreads PHP over 4 workers. In my test, static files went from &lt;strong&gt;2.4 s to under 10 ms&lt;/strong&gt; during a page load.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv34umytea6qsioqcni9j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv34umytea6qsioqcni9j.png" alt="Show paths in PHP Station: the PHP binary, php.ini, Composer, DB server, data folder and project folder of one project" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Show paths&lt;/strong&gt; lists the exact &lt;code&gt;php.exe&lt;/code&gt;, &lt;code&gt;php.ini&lt;/code&gt;, Composer, DB server, data folder and project folder of a project, each with a copy button. No more guessing which &lt;code&gt;php.ini&lt;/code&gt; is loaded.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. How do I move my projects from XAMPP or Laragon?
&lt;/h2&gt;

&lt;p&gt;Click &lt;strong&gt;Shift from XAMPP / Laragon&lt;/strong&gt;. PHP Station finds:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;every project in &lt;code&gt;htdocs&lt;/code&gt; / &lt;code&gt;www&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;the Apache and nginx virtual hosts (&lt;code&gt;shop.test&lt;/code&gt; and friends);&lt;/li&gt;
&lt;li&gt;the PHP and DB server each project used before.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Tick what you want and press &lt;strong&gt;Shift selected&lt;/strong&gt;. Nothing is copied or moved, and your databases stay in their old data folder. Your XAMPP / Laragon folder is not changed, so you can still open it whenever you like.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. How do I set up a Laravel project from GitHub in one click?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffapzmecekqalp181ur1v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffapzmecekqalp181ur1v.png" alt="Open a Laravel project from GitHub in PHP Station: paste the repository link and choose a folder" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click &lt;strong&gt;Open from GitHub&lt;/strong&gt; and paste &lt;code&gt;https://github.com/owner/repo&lt;/code&gt;, a GitLab or Bitbucket link, or just &lt;code&gt;owner/repo&lt;/code&gt;. PHP Station then:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;clones it with your installed Git (private repositories use your normal Git sign-in);&lt;/li&gt;
&lt;li&gt;picks the right PHP from &lt;code&gt;composer.json&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;installs anything missing from the official sources;&lt;/li&gt;
&lt;li&gt;runs &lt;code&gt;composer install&lt;/code&gt;, creates &lt;code&gt;.env&lt;/code&gt; and &lt;code&gt;APP_KEY&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;creates the database (MariaDB, or the SQLite file new Laravel apps expect), runs the migrations and &lt;code&gt;storage:link&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;starts the project.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For teams, commit a &lt;strong&gt;&lt;code&gt;phpstation.json&lt;/code&gt;&lt;/strong&gt;. Every teammate who opens the folder gets the same PHP, extensions, MariaDB version and setup steps:&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="nl"&gt;"$schema"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://sami-hussain-dev.github.io/PHP-Station/phpstation.schema.json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Shop"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"php"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"8.3"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"extensions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"intl"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"gd"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"database"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"engine"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"mariadb"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"11.4"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"shop_db"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"setup"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"composer-install"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"key"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"database"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"migrate"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"storage-link"&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;h2&gt;
  
  
  5. How do I catch Laravel emails, &lt;code&gt;dump()&lt;/code&gt; and errors locally?
&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;Inbox&lt;/strong&gt; page shows everything your app "says" while you build it. It needs no package, no code change and no &lt;code&gt;.env&lt;/code&gt; change.&lt;/p&gt;

&lt;h3&gt;
  
  
  Mail catcher: no test email reaches a real person
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsit9c0yi9kuvvzpefat1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsit9c0yi9kuvvzpefat1.png" alt="PHP Station mail catcher for Laravel: caught emails on the left, an HTML order confirmation with its PDF attachment on the right" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every email a project sends while it runs in PHP Station lands here: OTP codes, password resets, invoices, and queued mail when &lt;code&gt;queue:work&lt;/code&gt; runs in a PHP Station terminal. You get:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the real HTML design, in desktop or mobile width;&lt;/li&gt;
&lt;li&gt;the text part and the raw headers;&lt;/li&gt;
&lt;li&gt;attachments and the &lt;code&gt;.eml&lt;/code&gt; file;&lt;/li&gt;
&lt;li&gt;Bcc recipients, taken from the SMTP envelope;&lt;/li&gt;
&lt;li&gt;the project that sent each email.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Nothing is ever relayed.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;dump()&lt;/code&gt; and &lt;code&gt;dd()&lt;/code&gt; without breaking the page
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Floekdy1v84kljv3s0ed6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Floekdy1v84kljv3s0ed6.png" alt="Laravel dump() output shown as collapsible trees in PHP Station, with the file and line that called it" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;dump($order)&lt;/code&gt; appears as a collapsible tree, with public, protected and private properties. It also shows &lt;strong&gt;the file and line that called it&lt;/strong&gt;, and a click opens that line in &lt;strong&gt;VS Code, Cursor, PhpStorm or Sublime&lt;/strong&gt;. The page stays clean. Close the panel, and &lt;code&gt;dump()&lt;/code&gt; prints into the page as it always did.&lt;/p&gt;

&lt;h3&gt;
  
  
  laravel.log, grouped and readable
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqmsk0lx63ip5igg8hs22.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqmsk0lx63ip5igg8hs22.png" alt="laravel.log errors grouped in PHP Station: repeated exceptions counted, new ones flagged, stack trace with vendor frames folded" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The same exception thrown 500 times is &lt;strong&gt;one row marked ×500&lt;/strong&gt;. New errors get a red chip on the project card. In the stack trace, your own frames come first and the vendor frames are folded. The log file is only read, never changed.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;How does this work without touching .env?&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Projects started by PHP Station get a tiny &lt;code&gt;auto_prepend_file&lt;/code&gt;. While the panel runs, it sets the mail and dumper variables for each request:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;putenv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'MAIL_MAILER=smtp'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;    &lt;span class="nv"&gt;$_ENV&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'MAIL_MAILER'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'smtp'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;putenv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'MAIL_HOST=127.0.0.1'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// ...and MAIL_PORT=1025&lt;/span&gt;
&lt;span class="nv"&gt;$_SERVER&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'VAR_DUMPER_FORMAT'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'server'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;$_SERVER&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'VAR_DUMPER_SERVER'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'127.0.0.1:9912'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Laravel's dotenv never overwrites a variable that already exists, so these values win over &lt;code&gt;.env&lt;/code&gt;. &lt;code&gt;VAR_DUMPER_FORMAT=server&lt;/code&gt; is Symfony VarDumper's own dump-server switch.&lt;/p&gt;

&lt;p&gt;Dumps are decoded with the project's own &lt;code&gt;symfony/var-dumper&lt;/code&gt; classes only, and &lt;code&gt;unserialize()&lt;/code&gt; may create only VarDumper's &lt;code&gt;Data&lt;/code&gt; and &lt;code&gt;Stub&lt;/code&gt; classes.&lt;/p&gt;

&lt;p&gt;The prepend checks a heartbeat file the panel rewrites every 30 seconds. Close the panel and it does nothing, so your app sends real mail again, exactly as configured.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. How do I undo a DELETE or a migrate:fresh in MariaDB?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa2dqdhhz7z26i990vbfm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa2dqdhhz7z26i990vbfm.png" alt="DB Time Machine in PHP Station: every INSERT, UPDATE and DELETE with its SQL and old and new values, and an Undo button" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;DB Time Machine&lt;/strong&gt; lists every INSERT, UPDATE and DELETE in a project's database, whether it came from your app, phpMyAdmin or a SQL console. Each one shows its time, its SQL and the old and new values with column names.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Undo this&lt;/strong&gt; reverses &lt;strong&gt;only that one action&lt;/strong&gt;. A deleted row comes back, and everything after it stays as it is. The undo is recorded too, so it can be undone. If the same rows changed again later, you are warned first.&lt;/p&gt;

&lt;p&gt;It's built on MariaDB's own row-based binary log (10.2+), switched on through command-line flags only, with no &lt;code&gt;my.ini&lt;/code&gt; edit. The reverse comes from &lt;code&gt;mariadb-binlog --flashback&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4bs2nklw1kdkrtx6kaio.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4bs2nklw1kdkrtx6kaio.png" alt="A busy day in the DB Time Machine: actions grouped by hour, repeated inserts folded into one line, counts as filters" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thousands of actions a day stay readable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;they are grouped by hour;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;orders · INSERT × 250&lt;/code&gt; is one line;&lt;/li&gt;
&lt;li&gt;the counts double as filters;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;id=21&lt;/code&gt; shows the whole history of one row.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fztido8ib4wbdtv9ysfyo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fztido8ib4wbdtv9ysfyo.png" alt="Database restore points in PHP Station: full copies of a database, one click back" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For big mistakes there are &lt;strong&gt;restore points&lt;/strong&gt;. A full copy is saved automatically before &lt;code&gt;php artisan migrate*&lt;/code&gt; or &lt;code&gt;db:*&lt;/code&gt;, and you can make one by hand. Going back first saves the current state. Every restore is test-imported into a scratch database before the real one is touched.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Can I run several MariaDB versions side by side?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F076plbyuwnybc323l8xz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F076plbyuwnybc323l8xz.png" alt="Two MariaDB servers, 12.3 and 10.4, running side by side on their own ports in PHP Station" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Yes. Start and stop any MariaDB / MySQL install, including the ones inside XAMPP and Laragon, and create &lt;strong&gt;new isolated server instances&lt;/strong&gt; on their own port. If the same data folder is already being served (even by an elevated Laragon), PHP Station uses that server instead of starting a second one on the same data.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;phpMyAdmin built in.&lt;/strong&gt; Every DB server is listed on its own port, and it opens straight into a project's database.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DB Move.&lt;/strong&gt; It moves a database from an old server to a new one: dump, import, then row counts compared table by table.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftl1sasccak2bu763bsed.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftl1sasccak2bu763bsed.png" alt="phpMyAdmin opened by PHP Station directly on a project database" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  8. How do I stop "MySQL shutdown unexpectedly" in XAMPP?
&lt;/h2&gt;

&lt;p&gt;That error usually means the DB server was killed while Windows shut down, or two servers used the same data folder. PHP Station attacks it from every side:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Shutdown guard.&lt;/strong&gt; A tiny helper makes Windows wait on shutdown, restart or sign-out until every DB server has stopped cleanly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Snapshots.&lt;/strong&gt; The data folder is copied before PHP Station starts a server (daily or always, last &lt;em&gt;N&lt;/em&gt; kept).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Daily dumps.&lt;/strong&gt; Every database of each running server gets a &lt;code&gt;.sql&lt;/code&gt; dump once a day.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One-click repair.&lt;/strong&gt; It reads the error log and names the problem: crashed Aria / MyISAM tables, broken privilege tables, &lt;em&gt;"log sequence number is in the future"&lt;/em&gt;, port and lock issues. It takes a snapshot first, then fixes the problem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rescue data.&lt;/strong&gt; For InnoDB damage it works on a &lt;strong&gt;copy&lt;/strong&gt;, trying &lt;code&gt;innodb_force_recovery&lt;/code&gt; 1 → 6, dumps everything and can import it into a fresh server.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8y3fnbzeewglf5gvc753.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8y3fnbzeewglf5gvc753.png" alt="One-click MariaDB repair in PHP Station: reads the error log, takes a snapshot, then repairs" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The rule behind all of this: &lt;strong&gt;old data is never deleted or overwritten.&lt;/strong&gt; Restores always go into a new folder or a new database.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvr2vvurhhchdozyih2li.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvr2vvurhhchdozyih2li.png" alt="Database backups in PHP Station: data-folder snapshots and daily SQL dumps" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  9. How do I show my local Laravel site to a client?
&lt;/h2&gt;

&lt;p&gt;Start the project and press &lt;strong&gt;Live link&lt;/strong&gt;. You get a public &lt;code&gt;https://….trycloudflare.com&lt;/code&gt; address that opens on any phone. It uses a Cloudflare quick tunnel: no account, no hosting, no router settings. Laravel sees HTTPS correctly. The link ends when you stop it, stop the project or close the panel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Also: three languages and two themes
&lt;/h2&gt;

&lt;p&gt;The interface speaks &lt;strong&gt;English, Roman Urdu and Urdu (right-to-left)&lt;/strong&gt;, with a dark and a light theme.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx6jorowljbj3ge3lcjus.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx6jorowljbj3ge3lcjus.png" alt="PHP Station in Urdu, right to left" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  PHP Station vs XAMPP vs Laragon
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;PHP Station&lt;/th&gt;
&lt;th&gt;XAMPP&lt;/th&gt;
&lt;th&gt;Laragon&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Different PHP version per project, at the same time&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;⚠️ one global version&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Several MariaDB / MySQL servers side by side&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;⚠️ manual&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;dump()&lt;/code&gt; / &lt;code&gt;dd()&lt;/code&gt; viewer outside the page&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grouped &lt;code&gt;laravel.log&lt;/code&gt; errors with editor links&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Undo one INSERT / UPDATE / DELETE&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Restore points before &lt;code&gt;migrate:fresh&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub link → running project&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Clean DB stop on Windows shutdown&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Snapshots, daily dumps, one-click repair&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Public HTTPS link, no account&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;⚠️ ngrok, manual&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Official downloads with SHA-256 check&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Size of the tool&lt;/td&gt;
&lt;td&gt;~1 MB, zero deps&lt;/td&gt;
&lt;td&gt;~150 MB+&lt;/td&gt;
&lt;td&gt;~100 MB+&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Based on the default behaviour of XAMPP and Laragon at the time of writing. If something is out of date, tell me in the comments.&lt;/p&gt;

&lt;h2&gt;
  
  
  Under the hood
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Node.js 18+, zero npm dependencies, no build step.&lt;/strong&gt; &lt;code&gt;server.js&lt;/code&gt; handles HTTP and the CLI, there is one &lt;code&gt;lib/*.js&lt;/code&gt; module per feature, and the UI is plain vanilla JS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local only.&lt;/strong&gt; It listens on &lt;code&gt;127.0.0.1&lt;/code&gt;, checks &lt;code&gt;Host&lt;/code&gt; and &lt;code&gt;Origin&lt;/code&gt;, needs a per-start token for every API call, and sends a strict Content-Security-Policy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It only stops processes it has verified itself.&lt;/strong&gt; Other programs are never touched.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DB passwords are never stored or logged.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tested.&lt;/strong&gt; A &lt;code&gt;node --test&lt;/code&gt; suite with 229 tests, including real PHP servers, the SMTP server and the dump server on loopback.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick start
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/sami-hussain-dev/PHP-Station.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Double-click &lt;strong&gt;&lt;code&gt;PHP-Station.bat&lt;/code&gt;&lt;/strong&gt;. The panel opens at &lt;code&gt;http://127.0.0.1:7070/&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Let the &lt;strong&gt;Setup wizard&lt;/strong&gt; install what your projects need.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Shift from XAMPP / Laragon&lt;/strong&gt;, &lt;strong&gt;Open from GitHub&lt;/strong&gt; or &lt;strong&gt;+ New project&lt;/strong&gt;, then switch a project on.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is PHP Station free?&lt;/strong&gt;&lt;br&gt;
Yes. It's open source under the MIT license, with no paid tier and no account.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does PHP Station replace XAMPP or Laragon?&lt;/strong&gt;&lt;br&gt;
It can. It installs PHP, MariaDB, Composer and phpMyAdmin on its own, but it also works on top of an existing XAMPP or Laragon and uses their PHP versions and DB servers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I run two Laravel projects with different PHP versions on Windows?&lt;/strong&gt;&lt;br&gt;
Add both projects, choose a PHP version on each card, and switch both on. Each runs with its own &lt;code&gt;php.exe&lt;/code&gt; on its own port, at the same time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Will my Laravel app send real emails while I test?&lt;/strong&gt;&lt;br&gt;
Not while it runs in PHP Station with the mail catcher on (the default). Every email lands in Inbox → Mail. If you used &lt;code&gt;php artisan config:cache&lt;/code&gt;, run &lt;code&gt;config:clear&lt;/code&gt; first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I recover a row I deleted by mistake in MariaDB?&lt;/strong&gt;&lt;br&gt;
Yes. Open &lt;strong&gt;Time Machine → Every action&lt;/strong&gt;, find the DELETE and press &lt;strong&gt;Undo this&lt;/strong&gt;. Only that row comes back.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does it need admin rights or change my PATH?&lt;/strong&gt;&lt;br&gt;
No. Everything goes into PHP Station's own folders.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does it work on macOS or Linux?&lt;/strong&gt;&lt;br&gt;
Not yet. It's Windows 10 / 11 only for now; macOS and Linux are on the roadmap.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which versions are supported?&lt;/strong&gt;&lt;br&gt;
PHP 7.4 – 8.5 and MariaDB 10.4 – 12.x can be installed. Any PHP / MariaDB / MySQL already on the PC can be used too.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;*.test&lt;/code&gt; domains with local HTTPS, queue workers and a scheduler per project, Redis, a "new Laravel project" template, and macOS / Linux.&lt;/p&gt;

&lt;p&gt;I'd really like feedback, especially from people with complicated Windows setups (old XAMPP, Laragon, several MariaDB versions). &lt;strong&gt;Which feature would you use first, and what is missing?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If PHP Station saves you an afternoon, a ⭐ on &lt;a href="https://github.com/sami-hussain-dev/PHP-Station" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; helps other PHP developers find it. 🙏&lt;/p&gt;

</description>
      <category>php</category>
      <category>laravel</category>
      <category>opensource</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Safe AI Coding: An Open-Source Security Toolkit for AI Coding Agents</title>
      <dc:creator>Sami Hussain</dc:creator>
      <pubDate>Thu, 29 Oct 2026 07:03:15 +0000</pubDate>
      <link>https://dev.to/samihussaindev/safe-ai-coding-an-open-source-security-toolkit-for-ai-coding-agents-2529</link>
      <guid>https://dev.to/samihussaindev/safe-ai-coding-an-open-source-security-toolkit-for-ai-coding-agents-2529</guid>
      <description>&lt;h1&gt;
  
  
  Safe AI Coding: An Open-Source Security Toolkit for AI Coding Agents
&lt;/h1&gt;

&lt;p&gt;AI coding agents are changing how developers build software. With tools like Claude Code, developers can generate features, refactor applications, debug errors, and automate repetitive tasks using natural language.&lt;/p&gt;

&lt;p&gt;But there is an important question we should ask:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do we make AI-assisted development safer without slowing down the development process?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;AI-generated code can contain security vulnerabilities, incorrect assumptions, missing implementations, or dangerous changes. Coding agents can also encounter malicious instructions hidden inside repositories, configuration files, or other project content.&lt;/p&gt;

&lt;p&gt;That is why I built &lt;strong&gt;Safe AI Coding&lt;/strong&gt; — a free, open-source project designed to add security-focused checks and review workflows to AI-assisted development.&lt;/p&gt;

&lt;p&gt;🔗 &lt;strong&gt;GitHub Repository:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://github.com/sami-hussain-dev/safe-ai-coding" rel="noopener noreferrer"&gt;https://github.com/sami-hussain-dev/safe-ai-coding&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What is Safe AI Coding?
&lt;/h2&gt;

&lt;p&gt;Safe AI Coding is a Claude Code skill designed to help developers identify risky operations, review AI-generated changes, and inspect repositories for potential security issues.&lt;/p&gt;

&lt;p&gt;It focuses on several areas:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Risk-aware workflows before potentially destructive operations.&lt;/li&gt;
&lt;li&gt;Detection of suspicious instructions and prompt-injection patterns.&lt;/li&gt;
&lt;li&gt;Checks for common security problems in code.&lt;/li&gt;
&lt;li&gt;Identification of potentially incomplete or hallucinated code references.&lt;/li&gt;
&lt;li&gt;Review of changes from technical and human perspectives.&lt;/li&gt;
&lt;li&gt;Optional PDF reports documenting findings and fixes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The project is open source under the MIT License, so developers can explore the implementation and evaluate whether it fits their workflows.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why does secure vibe coding matter?
&lt;/h2&gt;

&lt;p&gt;Vibe coding makes it easier to turn an idea into a working application. However, generating code quickly does not automatically make that code secure or production-ready.&lt;/p&gt;

&lt;p&gt;Consider these examples:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Destructive commands&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An agent might propose deleting files, rewriting Git history, or running a database operation that could remove important data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Prompt injection&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A repository may contain instructions that attempt to manipulate an AI agent into revealing secrets or performing unintended actions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Insecure application code&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;AI-generated code may introduce SQL injection, cross-site scripting (XSS), unsafe redirects, weak authentication checks, or other vulnerabilities.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Incomplete implementations&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A generated feature might reference a missing class, route, method, configuration file, or view.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Dependency risks&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Incorrect or unverified package references and suspicious installation hooks can introduce supply-chain risks.&lt;/p&gt;

&lt;p&gt;These are reasons to combine AI-assisted development with security checks, testing, explicit permissions, and human review.&lt;/p&gt;
&lt;h2&gt;
  
  
  Key features of Safe AI Coding
&lt;/h2&gt;
&lt;h3&gt;
  
  
  1. Risk-aware operation checks
&lt;/h3&gt;

&lt;p&gt;The skill is designed to pause before potentially risky actions, explain the possible consequences, and request approval.&lt;/p&gt;

&lt;p&gt;Examples include file deletion, database writes, dependency installation, Git pushes, and changes to security-related configuration.&lt;/p&gt;

&lt;p&gt;The actual enforcement depends on the agent's environment and permissions. For stronger protection, the project also recommends configuring explicit Claude Code permission rules.&lt;/p&gt;
&lt;h3&gt;
  
  
  2. Prompt-injection and repository inspection
&lt;/h3&gt;

&lt;p&gt;Repositories can contain untrusted instructions in files such as &lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;AGENTS.md&lt;/code&gt;, and editor-specific AI rules.&lt;/p&gt;

&lt;p&gt;Safe AI Coding includes checks for suspicious instruction patterns, malicious Git configuration or hooks, symlinks to sensitive files, and hidden Unicode characters.&lt;/p&gt;

&lt;p&gt;The goal is to help developers identify potentially dangerous repository content before trusting it.&lt;/p&gt;
&lt;h3&gt;
  
  
  3. AI-generated code review
&lt;/h3&gt;

&lt;p&gt;The skill checks for issues such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;References to missing classes, methods, routes, views, and imports.&lt;/li&gt;
&lt;li&gt;Placeholder comments that may indicate incomplete implementations.&lt;/li&gt;
&lt;li&gt;Pasted chat content or unresolved merge conflicts.&lt;/li&gt;
&lt;li&gt;Tests that have been weakened or skipped.&lt;/li&gt;
&lt;li&gt;Common application security vulnerabilities.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These checks can help surface problems, but no automated review catches every defect.&lt;/p&gt;
&lt;h3&gt;
  
  
  4. Security and data-safety checks
&lt;/h3&gt;

&lt;p&gt;The project documents checks for several risk categories, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SQL, command, and path injection.&lt;/li&gt;
&lt;li&gt;Cross-site scripting (XSS) and server-side request forgery (SSRF).&lt;/li&gt;
&lt;li&gt;Exposed API keys, tokens, and sensitive identifiers.&lt;/li&gt;
&lt;li&gt;Unsafe database operations and destructive migrations.&lt;/li&gt;
&lt;li&gt;Removed authentication checks and potentially inefficient database queries.&lt;/li&gt;
&lt;li&gt;Suspicious dependency and package-installation configurations.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  5. Two-perspective code review
&lt;/h3&gt;

&lt;p&gt;Safe AI Coding is designed to review changes from two perspectives:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Technical perspective:&lt;/strong&gt; What could break, introduce a vulnerability, or behave incorrectly?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Human perspective:&lt;/strong&gt; Is the change understandable, appropriate, and ready for review or release?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The documented review outcomes are &lt;code&gt;Ready&lt;/code&gt;, &lt;code&gt;Ready with notes&lt;/code&gt;, and &lt;code&gt;Not ready&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;These outcomes are review guidance, not a guarantee that the application is free from vulnerabilities.&lt;/p&gt;
&lt;h3&gt;
  
  
  6. Optional PDF reports
&lt;/h3&gt;

&lt;p&gt;Developers can request a PDF report summarizing identified issues, changes, fixes, and supporting evidence.&lt;/p&gt;

&lt;p&gt;The repository documents English and Roman Urdu report options, which can make the results more accessible to different developers.&lt;/p&gt;
&lt;h3&gt;
  
  
  7. Built-in self-tests
&lt;/h3&gt;

&lt;p&gt;The README documents a self-test suite containing 95 cases intended to check detection behavior, legitimate code, and handling of potentially malicious repositories.&lt;/p&gt;

&lt;p&gt;Developers should run the self-test in their own environment and review the results before relying on the tool in a production workflow.&lt;/p&gt;
&lt;h2&gt;
  
  
  How to install Safe AI Coding
&lt;/h2&gt;

&lt;p&gt;The recommended installation method is through the Claude Code plugin marketplace.&lt;/p&gt;

&lt;p&gt;Open Claude Code and run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/plugin marketplace add sami-hussain-dev/safe-ai-coding
/plugin install safe-ai-coding@safe-ai-coding
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Alternatively, on Windows PowerShell, you can clone the repository into your personal Claude skills directory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;git&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;clone&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--depth&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;https://github.com/sami-hussain-dev/safe-ai-coding.git&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$&lt;/span&gt;&lt;span class="nn"&gt;env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nv"&gt;USERPROFILE&lt;/span&gt;&lt;span class="s2"&gt;\.claude\skills\safe-ai-coding"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use one installation method rather than both. Follow the repository's README for prerequisites, updates, and troubleshooting.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to use it
&lt;/h2&gt;

&lt;p&gt;After installation, you can use the documented commands for common workflows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scan a project:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/safe-ai-coding:safe-ai-coding scan
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use this when beginning work in an unfamiliar repository and looking for potentially suspicious instructions or configuration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Build a feature:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/safe-ai-coding:safe-ai-coding build Add employee attendance API
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use this workflow to request a feature and have the changes reviewed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Review changes before merging:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/safe-ai-coding:safe-ai-coding review main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use this to request a review against the &lt;code&gt;main&lt;/code&gt; branch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Run the self-test:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/safe-ai-coding:safe-ai-coding self-test
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Review the output and confirm that the expected checks work in your environment.&lt;/p&gt;

&lt;p&gt;Check the repository documentation for the current command syntax and supported setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does Safe AI Coding replace security testing?
&lt;/h2&gt;

&lt;p&gt;No.&lt;/p&gt;

&lt;p&gt;A coding skill can provide useful guidance and automated checks, but it cannot guarantee that an AI agent will never make a mistake or that every vulnerability will be detected.&lt;/p&gt;

&lt;p&gt;For a stronger development workflow, combine it with:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Explicit permissions and restrictions for dangerous commands.&lt;/li&gt;
&lt;li&gt;Automated tests and static analysis.&lt;/li&gt;
&lt;li&gt;Dependency and secret scanning.&lt;/li&gt;
&lt;li&gt;Human review of sensitive changes.&lt;/li&gt;
&lt;li&gt;Backups and a controlled deployment process.&lt;/li&gt;
&lt;li&gt;Security testing appropriate to the application.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Safe AI Coding is intended to support these practices, not replace them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who can benefit from this project?
&lt;/h2&gt;

&lt;p&gt;The project may be useful for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Developers who use Claude Code for everyday programming.&lt;/li&gt;
&lt;li&gt;Vibe coders building applications with AI assistance.&lt;/li&gt;
&lt;li&gt;Laravel, PHP, JavaScript, TypeScript, and Python developers.&lt;/li&gt;
&lt;li&gt;Developers reviewing unfamiliar or untrusted repositories.&lt;/li&gt;
&lt;li&gt;Teams that want more structured checks around AI-generated changes.&lt;/li&gt;
&lt;li&gt;Open-source contributors interested in AI agent security.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Although the project documents support for multiple programming stacks, its current implementation and compatibility should be evaluated for your particular environment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it and share your feedback
&lt;/h2&gt;

&lt;p&gt;I built Safe AI Coding to explore how security checks and review workflows can fit into AI-assisted development without making the process unnecessarily complicated.&lt;/p&gt;

&lt;p&gt;I welcome feedback, bug reports, feature suggestions, and contributions from developers who want to help improve the project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Explore the source code, review the documented checks, and try it in a test project before using it in critical workflows.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;🔗 &lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/sami-hussain-dev/safe-ai-coding" rel="noopener noreferrer"&gt;https://github.com/sami-hussain-dev/safe-ai-coding&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What security risk concerns you most when using AI coding agents: prompt injection, insecure generated code, exposed secrets, or destructive operations?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear your thoughts and learn from your experiences.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Author: Sami Hussain | Software Engineer and creator of Safe AI Coding&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>opensource</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
