How to start programming in PHP with Laravel in 2020?

single-image

I invite you cordially to read the first of a series of articles about the launch of programming in Laravel. Thanks to them you will be able to become a full-fledged Laravel programmer.

What is Laravel?

Laravel is a framework written entirely in PHP. Acutally is by far the most popular PHP framework, leaving competition behind (mostly Symfony or Codeigniter). It happened because it is extremely developer friendly. What do you mean? Well, that its creators know exactly what you need, even if you are not sure yourself, until you feel how it works. Although it’s built on Symfony packages from Sensiolabs, it’s definitely not Symfony. There are so many differences to Symfony that you could write another series of articles about it (maybe someday we will take it? :))

Why programming in Laravel?

Certainly because because this Framework does not like restrictions. To be honest, I can’t imagine what could be unprogrammable in Laravel comparing it with pure PHP or other frameworks, and in many situations (well, I want to say “all situations”) you will do it faster, more efficiently and safely.

The knowledge base is very rich. Most of the daily work questions have been asked a long time ago and can easily be found on Google and Stackoverflow.

Laravel Ecosystem

Exactly. When we enter the Laravel site and look at the Ecosystem tab, we can get dizzy. Some of the components presented there will never or rarely use, and certainly can not be said that they are unnecessary for programming in Laravel. The good news, in turn, is that all of its parts are usually very natural to use and it feels very strongly that we want to use something without really knowing its operation or the flow of work with it.

For sure in this series of articles we will be going back to the various elements of the Laravel ecosystem many times, but once again do not worry this time

Documentation

One more word about Laravel’s documentation. This is definitely one of the factors that Laravel owes its popularity to. She is very readable, condensed and contains the most important things.

PHP basics

There are many PHP issues that you should know when approaching Laravel. You should definitely know the PHP syntax with the latest changes, including PHP 7.4 +. There is a whole list of them because PHP 7 introduces a whole range of innovations related to object-oriented programming (and in addition it is much more efficient than PHP 5).

Remember that Laravel is a fully object-oriented framework where 100% of business logic is developed in classrooms. You can and even should use design patterns as well as SOLID principles.

This article and the entire series is not necessarily about the basics of PHP as well as the basics of object oriented programming. There are a lot of articles on the web on the topic, and soon there will be topics related to this topic on our blog.

Nor is it that you must be the absolute source of all knowledge about object oriented programming. Much will be explained when entering the incredibly exciting world of object-oriented programming in Laravel.

What is Laravel?

Laravel is an open source framework entirely written in PHP. Currently, it is by far the most popular PHP Framework leaving competition behind (mainly Symfony or Codeigniter). It happened because he is extremely developer friendly. What do you mean? Well, that its creators know exactly what you need, even if you are not sure yourself, until you feel how it works. Although it’s built on Symfony packages from Sensiolabs, it’s definitely not Symfony. There are so many differences to Symfony that you could write another series of articles about it (maybe someday we will take it? :))

Why programming in Laravel?

Certainly because because this Framework does not like restrictions. To be honest, I can’t imagine what could be unprogrammable in Laravel comparing it with pure PHP or other frameworks, and in many situations (well, I want to say “all situations”) you will do it faster, more efficiently and safely.

The knowledge base is very rich. Most of the daily work questions have long been asked and can be found easily on Google and Stackoverflow.

Laravel Ecosystem

Exactly. When we enter the Laravel site and look at the Ecosystem tab, we can get dizzy. Some of the components presented there will never or rarely use, and certainly can not be said that they are unnecessary for programming in Laravel. The good news, in turn, is that all of its parts are usually very natural to use and it feels very strongly that we want to use something without really knowing its operation or the flow of work with it.

For sure in this series of articles we will be going back to the various elements of the Laravel ecosystem many times, but once again do not worry this time

Documentation

One more word about Laravel’s documentation. This is definitely one of the factors that Laravel owes its popularity to. She is very readable, condensed and contains the most important things.

PHP basics

There are many PHP issues that you should know when approaching Laravel. You should definitely know the PHP syntax with the latest changes, including PHP 7.4 +. There is a whole list of them because PHP 7 introduces a whole range of innovations related to object-oriented programming (and in addition it is much more efficient than PHP 5).

Remember that Laravel is a fully object-oriented framework where 100% of business logic is developed in classrooms. You can and even should use design patterns as well as SOLID principles.

This article and the entire series is not necessarily about the basics of PHP as well as the basics of object oriented programming. There are a lot of articles on the web on the topic, and soon there will be topics related to this topic on our blog.

Nor is it that you must be the absolute source of all knowledge about object oriented programming. Much will be explained when entering the incredibly exciting world of object-oriented programming in Laravel.

Javascript basics

Controversial subject. The required knowledge of frontend depends on the type of project and what you want to achieve depending on the type of project.

Laravel is great for building Rest API, microservices, and monolithic applications. We can authorize with built-in oAuth support or very simply – by token. We can create sessions. Generally, there are many possibilities for authorization, and there are even more infrastructures, which means that we have to be careful when approaching the subject of frontend.

Until recently Laravel was installed by default with Vue.js which could be a bit confusing. After all, it’s not required, and you might as well work on React or jQuery. Currently there are no default presets and we don’t have to, but we can and should install them, which means that it’s worth knowing the mechanism of Webpack. However, it should be remembered that this is not required even when building Rest APIs they would not have to be required by every member of the team working on the project.

SQL

MySQL, PostgreSQL, MSSQL, SQLite – they are all supported by Laravel (specifically Eloquent). ORMs such as Eloquent abstraction, which responds to the needs of knowledge of SQL syntax, you do not need to know it completely, at least until we find Eloquent constraints (at the beginning you certainly won’t find them!).

Surely you must know some SQL basics, which include: SELECT, JOIN, WHERE, COUNT and other most basic phrases

Cache

Redis, Memcache or working on files? Cache is the best tool available to optimize page speed. Laravel has a fantastic abstract layer to support Cache and basically you don’t need to know anything about them except configuration to start programming in Laravel and at the same time be able to write all information to ultrafast databases.

Summary

If you already feel quite confident in object-oriented programming and have basic knowledge about HTML, CSS and SQL, go to the world of Laravel and you will not regret it.

Soon there will be more articles from the series “how to start programming in Laravel”


Please leave me comment if you have any question. If you liked this post, go to my instagram and follow me to stay up to date!

You may like