basilpjoy's avatar

Add a series for Lumen

Hi Jeffrey, Could you please add a series for Lumen that "how to build a small website in Lumen"

0 likes
18 replies
ChristophAust's avatar

Hi basil... I think you are using the wrong product it comes to "websites". For websites you should use Laravel. Lumen ist basically only for microservices like REST-APIs.

Still I second your thought, I would love to see a lumen series.

1 like
basilpjoy's avatar

Hi ChristophAust,

Can we use laravel for small scale website (will it be heavy ) where front end will be using Angular?

SaeedPrez's avatar

Laravel doesn't care what you do on the front end. It's a PHP framework, and PHP is..

PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language.

Notice the "server-side".

If you don't need something as complex and powerful as Laravel, google "PHP micro framework".

basilpjoy's avatar

Thank you SaeedPrez,

When we search for "PHP micro framework", will get Lumen on first. So we are planing to do website in Lumen + Angular Js. We have to implement Admin Dashboard with a bunch of forms. For this can we use Lumen ??

basilpjoy's avatar

When I searched for the comparison of Slim, Silex and Lumen ; Lumen is the fast and better one, also it will be easy if we know Laravel.

So you are telling that I can go with Lumen for my Admin Dashboard Right,??

Please anyone tell the suggession..

SaeedPrez's avatar

You can do whatever you want, but it's generally recommended that you target your Lumen-use for APIs and microservices. For a traditional web app, stick with Laravel. - Jeffrey Way

source

basilpjoy's avatar

SaeedPrez, Thanks

Any way it is request to Jeffrey Way that please add a series about "Lumen"

EmilMoe's avatar

Lumen is pretty much Laravel just stripped, right? So what you need should be a list of things that are not possible with Lumen and situations where Lumen or Laravel are better suited.

SaeedPrez's avatar

Lumen is created for micro services (read API) and it's not intended to be used for websites and admin dashboards. Also it's basically Laravel, just scaled down and with different routing. If you understand Laravel, you shouldn't have problems using Lumen.

You're creating a problem because you want to use Lumen for something it was not intended for, and for the same reasons I doubt Jeffrey will make a series for what you're asking.

3 likes
basilpjoy's avatar

I love the way of doing Laravel, but I got so many suggestions that it is not good to use Laravel for small scale website. So I thought Lumen can use for small scale of application because it is not heavy.

Sorry.., I didn't mean to create a problem, I just want a clear picture about Laravel or Lumen can use for small scale website ?. If no, one suggestion for a mini frame work that can do small website.

SaeedPrez's avatar

Since you need admin dashboard and whatnot, just use Laravel.

1 like
alenabdula's avatar
Level 13

@basilpjoy the idea is to split your application into set of smaller, interconnected services, that's where Lumen comes in. It works in tandem with Laravel (or any other framework). Think of it as, I have this HUGE app/website (Monolithic Architecture), let's split it up into smaller chunks and put it behind an API (Microservice) to delegate some business logic.

You, however, are approaching it backwards. Small scale website, is just that, small website not Microservice. IMO just go with Laravel, it's solid framework to start with and down the line if you need to grow or require some feature, it's going to be easier to implement, instead off figuring out how to get Lumen to do what you need it to do.

Hope that helps, Alen.

SaeedPrez's avatar

@alenabdula that's what I've been trying to make him understand, but I seem to have failed as he comes back with the same question over and over.. hopefully your explanation clears things up.

2 likes
EmilMoe's avatar

I use Laravel for my own website which is just 1 page. Can't get simpler than that, and Laravel still works better than without since it's so easy to pull in dependencies for services.

2 likes
jimmck's avatar

Lumen used to have web request handling and it was just removed for "microservices". Did not want to confuse anyone. It was very nice, you could configure exactly what you want. Check out Zend Expressive if you want to configure your setup:

https://github.com/zendframework/zend-expressive

ChristophAust's avatar

I use Lumen for REST-API's only. Basically if you want to use Lumen for a website you will want to slowly implement packages until you have something like laravel. For a website with a dashboard and everything you should just go with Laravel.

1 like
basilpjoy's avatar

Thanks every one,

I decided to go with Laravel, tanks again for all valuable information and suggestions.

Please or to participate in this conversation.