DEV Community

Cover image for Building a Modular Ecosystem: How I’m Rethinking the CLI for My Personal
Benyamin Khalife
Benyamin Khalife

Posted on

Building a Modular Ecosystem: How I’m Rethinking the CLI for My Personal

Every developer has that one project they pour their soul into. For me, it’s Webrium — my personal PHP framework. Recently, I’ve been focusing on its "brain" for command-line operations: the Webrium Console.

You can check out the progress here: https://github.com/webrium/console

The Vision: Beyond Simple Commands

While I’ve always admired how Laravel’s Artisan simplifies development, I wanted to build something that fits a specific architectural need I had: True Modularity.

The goal for the Webrium Console wasn't just to run migrations or seeders. I wanted a system where you can build a website normally, and then "export" or "modularize" specific parts of it as independent plugins or components.

Turning Features into Components

The most exciting part of this console library is how it handles site sections. Imagine you’ve built a robust Admin Panel or a Blog system. Instead of having them buried deep within your project’s monolith, Webrium Console allows you to treat them as portable components.
For example:

The Blog Component: It’s not just a set of files. It includes

  • everything—the management interface for the admin and the public-facing views for the client.
  • The Admin Portal: You can build it once and potentially plug it into different projects managed by the framework.

This "extract and reuse" approach is what I’m currently refining. It’s about being able to say: "I need a blog on this new site," and simply plugging in your pre-built, console-managed component.

I’d love to hear your thoughts on this:
Laravel is the industry standard for a reason, but sometimes we seek something different. What is the one thing that would make you look beyond established frameworks like Laravel and try something newer or custom-built for your projects?

Do you need a custom website or a specialized web solution?
Feel free to reach out! I’m available for new projects, or even just a free consultation to help you figure out the best tech stack for your needs.

Let’s connect:
Telegram: @benyaminir
Email: benkhalifedev@gmail.com

Top comments (0)