Hacker News new | ask | show | jobs
by Beatus 4079 days ago
I've just created a project with lumen to have a look at it and lumen and all its vendor packages (with --no-dev and without tests) contain 1522 files and 102449 lines of code – according to cloc.

Am I doing something wrong or why does it call itself a "micro-framework". A newly created Slim project contains 7417 lines of code.

1 comments

How many lines of code should a micro framework have?
It should be near other PHP micro-frameworks:

- BulletPHP: 3946 lines of PHP code

- Slim: 7329 lines of PHP code

- limonade: 3669 lines of PHP code

- Lumen: 95'220 lines of PHP code

You can't call it a micro framework if it's more than ten times bigger than all the other ones.

Lines of code is obliviously not a benchmark to rank a micro framework.

The term "mirco" refers to the amount of functionality the framework exposes. Often a micro framework is just a router decorated with some other useful stuff. Who cares about lines code, especially when you count "all" dependencies in vendor.