2
7 Comments

Not your Gramma's PHP Editor

I got tired of heavyweight IDEs that need an entire node_modules forest just to render a textbox. And I really got tired of cloud editors that send every keystroke to who-knows-where. So I wrote DS PHP Edit.

It’s just PHP. Drop it in a webroot, serve it up, and it runs. No Composer install. No build pipelines. All the frontend assets (Ace, jQuery, etc.) are vendored directly in the repo.

Its MIT Licensed, which means it is open source, and nothing is hidden, and everything is free to play around and make it your own.

For the AI piece, it hooks into DeepSeek V4 (cool huh? cheap af). Paste your API key into a K.dat, pick your model (flash for the cheap-and-cheerful route, pro if you want the big guns), and you get fill-in-the-middle completions (code completion for the win). It reads both sides of your cursor, not just the left. There's also an assistant that can rewrite, explain, or surgically edit specific blocks.

Every third-party asset (the Ace editor and jQuery) is downloaded into assets/vendor/ and served locally. There are no external script tags, no CDN calls, and no telemetry. Combined with the strict 'self' CSP, the browser talks only to your own server. Third-party licenses are reproduced in LICENSE and alongside the vendored code.

I mean, I use this myself for many things, and it comes in handy for me, so being the weirdo that I am, I thought maybe everyone else would enjoy it to... for free, so here you go.

If you use it, drop a star, and open an issue if something’s janky, or hit me up on X (@g023dev).

Quick caveat (important): this is a local tool. Do not expose it to the internet. The whole point of the Preview is executing arbitrary PHP – that's remote code execution by design (I mean its executing PHP, so ya there is that). Keep it bound to localhost or a trusted LAN (this is meant for you, not the entire internet). The CSP and CSRF tokens are extra belts, not a replacement for network isolation.

Much love from the cold wasteland that is Canada,

g023

posted toAvatar for product DS PHP Edit: DeepSeek v4 Powered
DS PHP Edit: DeepSeek v4 Powered
  1. 2

    What stood out to me wasn't that it's another editor—it was the tradeoff you optimized for.

    A lot of developer tools keep adding layers until the tool itself becomes part of the problem. There's something refreshing about choosing simplicity and local control over piling on more infrastructure.

    1. 1

      Thanks for the kind words.

      Yes, I see that with the modern version of products, is that I feel they try to stuff everything into everything, and in the end we end up with such an enigma, I spend more time digging to find the solutions (or updating) than I do in creating, and that frustrates me. Then there is the mile long TeRmS-aNd-ConDiTiOns that we get slammed with all the time, and we're just expected to just shut up and accept it all the time. I would rather purpose built solutions, than kitchen-sink solutions that cater to no one specifically. Just my hot take, I'm sure there is many others that think differently.

      Have a nice day Aryan Sinh, and if you use this, I hope you find it as useful as I have.

      1. 1

        That's exactly what I was curious about.

        The part I'd be interested in unpacking isn't whether simplicity is the better tradeoff.

        It's whether the product is being chosen because it's simpler, or because simplicity is signaling something much deeper that users actually value.

        Those can lead to very different product decisions over time.

        Happy to explain what I mean if it's useful. What's the best email to reach you on?

        1. 1

          you can message me on X if you wish (g023dev)

          1. 2

            Just sent you a DM on X.

            Looking forward to hearing your thoughts once you've had a chance to read it.

            1. 1

              Replied back on X.

              1. 1

                Just replied on X. Looking forward to hearing your thoughts.