{"id":120,"date":"2026-11-09T04:34:11","date_gmt":"2026-11-09T04:34:11","guid":{"rendered":"https:\/\/mfarrasmajid.id\/?p=120"},"modified":"2026-11-09T04:34:11","modified_gmt":"2026-11-09T04:34:11","slug":"why-use-laravel-and-not-plain-php","status":"publish","type":"post","link":"https:\/\/mfarrasmajid.id\/?p=120","title":{"rendered":"Why Use Laravel and Not Plain PHP?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Well, most developers already knows this. All development aspects of using language frameworks are much better to be used than plain language. In this case I was explaining about Laravel and PHP. Currently as I write, the latest version of PHP was Laravel 13. I still remember the first time I was using Laravel was at version 8. It was at 2020 since <a href=\"https:\/\/laravel.com\/framework\/docs\/8.x\/releases\" target=\"_blank\" rel=\"noopener\">Laravel 8<\/a> first introduced. So 6 years of development until today.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I want to share to new developers, all the perks of using language framework<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"430\" src=\"https:\/\/mfarrasmajid.id\/wp-content\/uploads\/2026\/11\/Why-Laravel_-Framework-vs-Plain-PHP-1024x430.png\" alt=\"\" class=\"wp-image-121\" srcset=\"https:\/\/mfarrasmajid.id\/wp-content\/uploads\/2026\/11\/Why-Laravel_-Framework-vs-Plain-PHP-1024x430.png 1024w, https:\/\/mfarrasmajid.id\/wp-content\/uploads\/2026\/11\/Why-Laravel_-Framework-vs-Plain-PHP-300x126.png 300w, https:\/\/mfarrasmajid.id\/wp-content\/uploads\/2026\/11\/Why-Laravel_-Framework-vs-Plain-PHP-766x322.png 766w, https:\/\/mfarrasmajid.id\/wp-content\/uploads\/2026\/11\/Why-Laravel_-Framework-vs-Plain-PHP-1536x645.png 1536w, https:\/\/mfarrasmajid.id\/wp-content\/uploads\/2026\/11\/Why-Laravel_-Framework-vs-Plain-PHP.png 1935w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/dev.to\/mfarrasmajid\/why-use-laravel-and-not-plain-php-33f#the-perks\"><\/a>The Perks<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. You don&#8217;t have to write everything from scratch<\/strong><br>If you want to write a simple form in PHP, you need to write the full code in PHP and HTML like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> <code>   &lt;form action=\"&lt;?php echo htmlspecialchars($_SERVER[\"PHP_SELF\"]); ?>\" method=\"POST\"><br>        &lt;div class=\"form-group\"><br>            &lt;label for=\"name\">Name:&lt;\/label><br>            &lt;input type=\"text\" id=\"name\" name=\"name\" required><br>        &lt;\/div><br><br>        &lt;div class=\"form-group\"><br>            &lt;label for=\"email\">Email:&lt;\/label><br>            &lt;input type=\"email\" id=\"email\" name=\"email\" required><br>        &lt;\/div><br><br>        &lt;div class=\"form-group\"><br>            &lt;label for=\"message\">Message:&lt;\/label><br>            &lt;textarea id=\"message\" name=\"message\" rows=\"4\" required>&lt;\/textarea><br>        &lt;\/div><br><br>        &lt;input type=\"submit\" value=\"Send Message\"><br>    &lt;\/form><br><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">And if you need more forms, than you have to write more HTML codes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In Laravel, you can use CLI command such as <code>php artisan make:component FormInput<\/code> to make reusable form input, and it creates a PHP file at <code>app\/View\/Components\/FormInput.php<\/code> and a view file at <code>resources\/views\/components\/form-input.blade.php<\/code>. So it can be reused for as many times as you like.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. It covers basic necessity in an app<\/strong><br>Other than form templates, Laravel offers features like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Basic Authentication<\/li>\n\n\n\n<li>Session Management<\/li>\n\n\n\n<li>Database Migration<\/li>\n\n\n\n<li>Database Model<\/li>\n\n\n\n<li>Default Styling Template<\/li>\n\n\n\n<li>Basic App Security<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">So you don&#8217;t need to cover everything by yourself. It already included in Laravel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. So much good laravel template<\/strong><br>If your app investor gives good support, you could pay for good Laravel templates on marketplace such as <a href=\"https:\/\/themeforest.net\/\" target=\"_blank\" rel=\"noopener\">themeforest.net<\/a> to find good Paid Laravel Templates. It is ready to use and very customizable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4. Community Supports<\/strong><br>Laravel had been exist for 15 years. It have so many communities like <a href=\"https:\/\/laravel.io\/\" target=\"_blank\" rel=\"noopener\">laravel.io<\/a> and <a href=\"https:\/\/laracasts.com\/\" target=\"_blank\" rel=\"noopener\">laracasts.com<\/a>. Those communities can answer you questions regarding to laravel development.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I myself have been using Laravel for 6 years and it is one of the good PHP frameworks out there. Also you can guide AI prompt to use AI for better customization and security for your projects.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, most developers already knows this. All development aspects of using language frameworks are much better to be used than plain language. In this case I was explaining about Laravel and PHP. Currently as I write, the latest version of PHP was Laravel 13. I still remember the first time I was using Laravel was [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":121,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,15,8],"tags":[],"class_list":["post-120","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-php","category-webdev"],"_links":{"self":[{"href":"https:\/\/mfarrasmajid.id\/index.php?rest_route=\/wp\/v2\/posts\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mfarrasmajid.id\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mfarrasmajid.id\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mfarrasmajid.id\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mfarrasmajid.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=120"}],"version-history":[{"count":1,"href":"https:\/\/mfarrasmajid.id\/index.php?rest_route=\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":122,"href":"https:\/\/mfarrasmajid.id\/index.php?rest_route=\/wp\/v2\/posts\/120\/revisions\/122"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mfarrasmajid.id\/index.php?rest_route=\/wp\/v2\/media\/121"}],"wp:attachment":[{"href":"https:\/\/mfarrasmajid.id\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mfarrasmajid.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mfarrasmajid.id\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}