INSTALLATION
AND SETUP A LARAVEL FRAMEWORK
FRAMEWORK
In general, a framework is a real or conceptual structure intended to
serve as a support or guide for the building of something that expands the
structure into something useful.
In computer systems, a framework is often a layered structure indicating
what kind of programs can or should be built and how they would interrelate. Some computer system frameworks also include actual programs, specify
programming interfaces, or offer programming tools for using the frameworks. A
framework may be for a set of functions within a system and how they
interrelate;
LARAVEL
Laravel is a web application framework with expressive, elegant syntax.
A web framework provides a structure and starting point for creating your
application, allowing you to focus on creating something amazing while we sweat
the details.
Laravel strives to provide an amazing developer experience while providing powerful features such as thorough dependency injection, an expressive database abstraction layer, queues and scheduled jobs, unit and integration testing, and more.
REQUIRMENTS FOR LARAVEL
The Laravel framework has a few system
requirements. You should ensure that your web server has the following minimum
PHP version and extensions:
Ø PHP >= 8.0
Ø BCMath PHP Extension
Ø Ctype PHP Extension
Ø cURL PHP Extension
Ø DOM PHP Extension
Ø Fileinfo PHP Extension
Ø JSON PHP Extension
Ø Mbstring PHP Extension
Ø OpenSSL PHP Extension
Ø PCRE PHP Extension
Ø PDO PHP Extension
Ø Tokenizer PHP Extension
Ø XML PHP Extension
STEP BY STEP SETUP
STEP 1:
To Setup a Laravel
Framework in our local machine we need some Extensions which is mentioned above
By installing the XAMPP Control panel we can get the service of the
Engines
To install the XAMPP Control Panel Go to the website à https://www.apachefriends.org/download.html
based on the specifications of your Computer choose the accurate options to install it.
STEP 2:
After completing the installation it’s a time
to Composer. Composer is not a
package manager in the same sense as Yum or Apt are. Yes, it deals with
"packages" or libraries, but it manages them on a per-project basis,
installing them in a directory (e.g. vendor
) inside
your project. By default, it does not install anything globally. Thus, it is a
dependency manager. It does however support a "global" project for
convenience via the global command.
Composer:
Enables you to declare the libraries
you depend on.
Finds out which versions of which
packages can and need to be installed, and installs them (meaning it downloads
them into your project).
You can update all your dependencies
in one command.
To initiate the installation of a composer Go to the websiteà https://getcomposer.org/download/ and Click the “Composer-Setup.exe” to download the setup file of a composer. install the composer after
the completion
While installing the composer it requires a Command Line to reach a php.exe file
Most of the composer can identify the Command
line automatically else we need to browse it.for example her I include the path
of a XAMPP Server C:\xampp\php\php.exe most
of the php command line are located like this.
In case of check whether the composer was
installed correctly or not composer -v use
this command on your command prompt. If composer installed perfectly u will get
a screen like this along with a composer version.
Now its time to move Laravel framework
STEP 3:
If your computer already has PHP and Composer
installed, you may create a new Laravel project by using Composer directly.
After the application has been created, you may start Laravel's local development
server using the Artisan CLI's serve command:
Input the following comments one by one
composer
create-project laravel/laravel example-app.
It takes some time to install the whole laravel Framework into your
machine. After the installation the output be like,
After that change the directory to example app using this command cd example-app
Then use this command php
artisan serve
If you get a output like this you are ready to work with a
laravel framework.
In a command prompt you got a URL Like this http://127.0.0.1:8000
use this link in your
web browser
Hurray, You are ready to build something on Laravel
Comments