Musing 2 min

Are Micro PHP Packages Becoming Obsolete in the AI Era?

A reflection on how AI code generation is changing the value proposition of small, single-purpose open-source packages, and what that means for the future of the PHP ecosystem.

While browsing Packagist recently, I came across an older package of mine: d34dman/consecutive-date.

It’s a small, focused utility for tracking consecutive date streaks. Perfect for things like daily logins, habit tracking, contribution counters, or engagement rewards.

It does one thing. It does it cleanly. It has minimal dependencies.

And it raised a bigger question:

Who is going to use it today?


The Old Model: Publish Small, Reusable Utilities

For years, the open-source ecosystem encouraged us to:

  • Extract reusable logic
  • Wrap it in a package
  • Publish it
  • Share it with the community

If ten teams needed streak tracking, one package could serve them all. That was efficient. Elegant. Collaborative.

Micro-packages were a sign of healthy ecosystem modularity.


The New Reality: “Just Ask AI”

Fast forward to 2026.

If I need streak logic today, I can:

  1. Search Packagist
  2. Evaluate packages
  3. Check maintenance status
  4. Review the API
  5. Add a dependency

Or I can just prompt an AI:

“Generate a PHP class that tracks consecutive daily dates, handles timezone issues, and supports custom intervals.”

And get a tailored implementation in seconds.

For small, well-defined problems, AI-generated code is often “good enough.”

No dependency. No abstraction overhead. No version constraints.

Just copy, paste, adjust.


The Discoverability Problem

Here’s the uncomfortable truth:

Many small packages don’t fail because they’re bad. They fail because they’re invisible.

The long tail of Packagist is full of clever, well-written utilities that:

  • Solve real problems
  • Are easy to maintain
  • Have minimal scope

But they’re almost impossible to discover unless you search for the exact right keyword.

In an AI-driven workflow, developers might never even look.


So Are Micro-Packages Dead?

Not quite. But the bar has changed.

Micro-packages still make sense when they offer:

  • Edge-case hardening over years of production use
  • Complex domain rules that aren’t trivial to generate
  • Performance optimizations that aren’t obvious
  • Community standards and shared conventions
  • Ecosystem integrations that tie into larger frameworks

In other words:

If AI can generate 90% of it reliably, your package needs to justify the remaining 10%.


A Shift in Value

We’re moving from:

“Can this be reused?”

to:

“Is this worth depending on?”

That’s a subtle but important shift.

The friction of adding a dependency now competes with the near-zero friction of generating code. For tiny utilities, like date streak tracking, that changes the equation dramatically.


Maybe the Real Value Has Shifted

Perhaps the future of open source isn’t fewer packages.

Perhaps it’s:

  • Fewer micro-packages
  • More opinionated frameworks
  • More domain-heavy libraries
  • More AI-augmented tooling

Small utilities may still exist, but they may no longer be the default way we share simple logic.


And that’s what a tiny date-streak package made me think about.

Something to ponder: Are micro-packages still worth publishing, or is AI quietly replacing them?

Keep reading

  1. Musing 1 min

    The Bet Ships: Atelier Is Live

    A few weeks ago I wrote that I was betting a new product on an unfashionable foundation. It just launched. This is the short, happy note before the longer ones.

  2. Musing 5 min

    Am I Building on Sand? Betting a New Product on an Unfashionable Foundation

    A reflection on whether it makes sense to build a brand-new product on a mature platform the hype cycle has moved past – and why the answer depends entirely on whether that platform is your audience or your engine.

  3. Musing 8 min

    Every Time Travel Movie Has the Same Fatal Flaw Nobody Talks About

    Step into a time machine, punch in a date, and you won't arrive in the past — you'll materialise in empty space. Here's the flaw every time travel story ignores, and why it makes the real version far more interesting.

All Musing posts