0% found this document useful (0 votes)
90 views6 pages

LARAVEL A PHP Framework For E-Commerce Website

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views6 pages

LARAVEL A PHP Framework For E-Commerce Website

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

2019 Fifth International Conference on Image Information Processing (ICIIP)

LARAVEL: A PHP Framework for E-Commerce


Website
Neha Yadav, Dharmveer Singh Rajpoot Shri Krishna Dhakad
Jaypee Institute of Information Technology, Noida Samrat Ashok Technological Institute, Vidisha
[email protected], [email protected] [email protected]

Abstract- In the modern era, as technologies are getting levels which are infrastructure, services, and product
advance, the work related to them are also getting advance. structures [1]. PHP (Hypertext Preprocessor) is an open
Today’s business is totally dependent on the internet and to source general-purpose scripting that is generally used for
run a business we need the help of the internet so that it can web development. It is a powerful language that is used for
grow at bulkier expanse. Everyday humongous amount of data developing dynamic and interactive web applications.
and personal information has been transmitted and retrieved. According to web w3techs.com PHP is the most commonly
With the brisk development of internet technology in used scripting languages on the internet with 82% coverage
contemporary years, online business is gradually rampant. shown in fig.1
Web users are very demanding and they foresee web services
to be easily and quickly accessible from other places around
the world all the time, whenever they need it. Web users always
need quick and rapid responses. With the broadening trend of
the internet, it turns out to be an essential part of our life.
Website development is a process that takes time and if done
by the basic language it takes more time which is not
compatible with this fast and developing world of technologies.
So to overcome these problems related to web development
frameworks are developed. Frameworks are used so that we
can create websites conveniently. This paper generalizes the
concept of e-commerce website with a framework. What
parameters we have to look upon so that we can prepare a
website without any Hassel. This research paper also concludes
what advantages did Laravel had on other frameworks, and
how it is different to work on Framework. Electronic
commerce as the name suggests electronic means through
digital instruments or through the World Wide Web and
commerce suggest the business so it combined means business
through the World Wide Web which is on gravitate. Fig: 1. PHP coverage in the market.
LARAVEL is a free open source PHP framework. Frameworks
are on go, as there is no need to write whole code. PHP is taking over all the market of web development but to
develop website one should have the knowledge of PHP
Keywords- PHP, electronic-commerce, PHP frameworks, language and other it’s supporting tools like CSS and
database SQLite, LARAVEL. javascript [10]. PHP coding is done in HTML web pages. To
build a website in PHP is time-consuming and it required a
I. INTRODUCTION lot of technical understanding. Sometimes we have to write
The World Wide Web is burgeoning very hasty and due codes many times in the same project to overcome these
to this, the requirement for server-side scripting languages is problems frameworks are built. In the modern IT industry, it
an upsurge. Due to this upsurge, the urgency for a very is imperative for web developers to aware about at least one
effective and easy way for web development is required. Till battle-proven Framework. Laravel is classified among one of
now, web technology has reached a new standard. The online the most successful PHP frameworks in 2019, based on
market is crop up day by day which required developers to annual framework popularity survey conducted by SitePoint
produce increment in the World Wide Web, everyone is (SitePoint, the best PHP frameworks for 2019: SitePoint
trying to expand his or her business through web applications survey Results, cited, 3.3.2019 shown in fig 2). There are
as it is very cheap as compared to traditional approaches[15]. abounding advantages and benefits of using web PHP
Many firms are conducting e-commerce business as firms frameworks. Frameworks are used to overcome the problems
value is increased with less significant in a type of products that we face with the usage of PHP. These PHP frameworks
sold and e-commerce are likely to have significant future provide us the ease of website development. PHP
benefits for firms. But for this web programming language is frameworks promote rapid application development (RAD),
required [1]. Electronic commerce is buying and selling of which saves our time, helps in building a more stable
goods and services online or transferring funds or data over application by reducing the development time for the
an electronic medium. E-commerce consists of three meta- developers.

Authorized licensed use limited to: UNIVERSIDADE DE SAO PAULO. Downloaded on July 24,2024 at 18:51:00 UTC from IEEE Xplore. Restrictions apply.
978-1-7281-0899-5/19/$31.00 ©2019 IEEE 503
2019 Fifth International Conference on Image Information Processing (ICIIP)

technologies it supports, programming techniques, tools


supporting web application development, caching,
conciseness of source code and most important framework
efficiency. In [5], some tasks are performed to measure the
performance of different PHP measurements. These tasks
are: read/write text files, upload and save images on the web
server, retrieve large data from the database and all the
CRUD operations of the database. By their experiment,
Laravel performed the best for reading and writing of text
files. The file processing component of Laravel performs the
best as compared to other PHP frameworks. According to
[6], PHP frameworks enhance the performance of an
application. The frameworks are usually based on Model,
view, and Controller design pattern. The Frameworks cater
to different common functionalities in form of a plug-in,
components and themes to curtail the development time and
cost of a web application. Features like robustness,
scalability, maintainability, and performance play an
important part for anyone to select a PHP framework.
According to [7], a web application has a layered structure
based on the Laravel Framework. The first layer contains a
Laravel core component extension and Framework. The
Fig: 2: Survey of SitePoint 2019 Second layer contains Laravel label extension and
persistence layer of a database. The third layer contains a
Saving the developers from writing the repetitive coding batch query for analysis page and common data persistence
which allows the developers to spend more time on creating framework. Laravel can define a large amount of data for the
the actual web application, instead of spending time on business purpose. In this paper, they have done an
writing codes. A Framework is a product of cumulative experiment to distinguish between laravel and traditional
intelligence, comprising many robust libraries and approach for web development. This experiment concludes
convenient tools from other developers. Frameworks help to that the framework has higher development efficiency for
reduce the repetitive tasks and complex task, which means web designing as compare to the traditional approach.
developers, can write less and do more with the highest Traditional designing methods result in enormous constraints
quality in a certain amount of time [2]. and time-consuming. Web designing based on a laravel
framework has scalability and robust scalability so that it
Using a reliable framework lower the development cost. helps in flourishing competence.
Further, using a framework also helps to reinforce the
security of a website. Security of a website plays an In [8], a project is created that accentuate on real-time
important role in the business world. So with frameworks, communications that are the instant message and short
the developer doesn’t need to have deeper knowledge about message system. This helps to build his or her own website
security. Most of the frameworks support several features to for e-commerce business without much coding. There project
prevent security attacks such as SQL injection, cross-site is divided into two ways: according to users and according to
request forgery (CRF) and Cross-site Scripting. A the feature groups. First way can be called a front end and
Framework does not abide by to confine coding rules; this the second way can be called as the back end. According to
allows the coder to not write the repetitive codes, it allows [9] websites are categorized into two types, one related to
the coders to quickly create something that works. services, which offers services to users and second which
sells goods online. They talked about the functionalities
II. LITERATURE REVIEW which can be considered during the scrutinizing of the
In [4], this research paper the framework efficiency is websites. The utmost prevailing characteristics scrutinize are
significant in terms of two performance parameters that the following: to publicize the company and contacts, for
describe the efficiency of a web application with respect of national and international trades or information, photo
end-user: 1) maximal time to serve the request; 2) In a gallery and payment options.
definite time period how many requests can be served. This
research paper gives some functional and non-functional III. FRAMEWORK: LARAVEL
requirements for considering a framework to work on. The LARAVEL is one of the top most used PHP frameworks.
functional requirements contain that the user and user groups As networks are growing everyone wants their network to be
should cater access to the forms that collect data from users. big and large and for that, he or she needs to connect with
Non-functional requirements include that every module of customers by his or her websites that can provide
the projects should be independent of each other so that they information about his or her company and their products.
can work independently. This paper provides some With the traditional approach to website designing, it takes
parameters to categorize different PHP frameworks that are time and other issues, for such problems frameworks, are
its documentation and technical support, database invented. PHP frameworks provide codes which are already

Authorized licensed use limited to: UNIVERSIDADE DE SAO PAULO. Downloaded on July 24,2024 at 18:51:00 UTC from IEEE Xplore. Restrictions apply.
504
2019 Fifth International Conference on Image Information Processing (ICIIP)

coded; we just have to the module this information according • Third layer: batch query for analysis page
to our requirements. Web designing with Laravel framework
is very easy and simple, but one should know the basics of
PHP to understand the Framework structure. The proposed
model is to design an e-commerce website with the help of
PHP framework-LARAVEL. This report designs a simple
Laravel based website and for this first, we’ll see what the
requirements are for the framework.
A. Requirements for laravel
All the requirements are satisfied by the Laravel
Homestead virtual machine, but we have to use it as our local
development environment. If you don’t want to use
homestead then the server should meet the following
requirements:
• PHP>=7.1.3
• openSSL PHP extension
• PDO PHP Extension
• XML PHP Extension
• JSON PHP Extension
• Ctype PHP Extension
LARAVEL uses Composer to manage its dependencies.
So, make sure the composer is installed on the machine if not
than download it in command prompt by using commands or
either it can be downloaded from composer website. When
composer is downloaded than simply create new app in
terminal by Laravel new. Now in next step transit the .env
file as it will give hinderences in connecting to database.
After this the migration and seeding of the database is done
in terminal by using php artisan command. This will import
all the database in our localhost phpmy admin. After that
create admin and auth password to login in my admin panel. Fig 3: Application structure of laravel
Advantages of Laravel include scalability of a web
application; time is saved as laravel reuses the components. IV. PROPOSED METHOD
It includes namespaces and interfaces helping in managing
resources. The application structure in laravel is like folder In this paper, my concern is to look at all the aspects that
structure shown in fig.3. Once we create a project in laravel are considered to choose the best framework for creating an
its structure is shown like fig.3 the application structure of E-commerce website. This paper contains research on how to
laravel includes various folders and subfolders. These folders choose the best framework for creating a website, and it also
include app, bootstrap, config, database, public, resources, contains what are the factors that should consider checking
routes, Storage, tests, vendor, include path and composer the effectiveness of the frameworks. And to make e-
files. In these files codes are already written we have to only commerce website with different framework and compare. It
modify it according to our requirements. After this we contains information about the Laravel framework and what
simply need to run the file in our local host and finally we are the requirements to run Laravel. In this, I have read many
can see the simple layout. There’s an admin panel in research papers related to Laravel and from these papers, I
framework where the programmer can easily login and do have drawn some information related Laravel , how laravel is
the changes that are required. Laravel architecture based web beneficial to use and how it is beneficial to use in
applications are based on multi-layer. The three-tier comparison to the traditional approach that is used earlier for
structure, in the web technology, explains that the database is making the web applications[11]. Some organizations are
not a directive service for each client but it connects to the still developing their websites with the traditional approach
web server so that the website can achieve dynamic, real- starting from the scratch which takes time but in the
time and interactive customer information services. [3] competitive world time plays an important role every one
trying to adopt technologies that will produce good product
The layered structure of the framework is: with same capabilities and services that are built with the
traditional approach but with lesser time and with more
• First layer: laravel core component extension.
features an more security. Recently big companies like
• Second layer: laravel label extension. Google and Apple asked questions like, “Why are we still

Authorized licensed use limited to: UNIVERSIDADE DE SAO PAULO. Downloaded on July 24,2024 at 18:51:00 UTC from IEEE Xplore. Restrictions apply.
505
2019 Fifth International Conference on Image Information Processing (ICIIP)

building things as we did years ago?” .Frameworks are


trending in the modern IT world because of their features
they are providing , as they are providing best result to the V. RESULT ANALYSIS
developers in less time so the developers are luring towards Laravel framework is the most popular framework
frameworks and content management systems for web among all the PHP frameworks. A database is also an
development. Security is the important factor of any system important part of any project database is the backbone of an
or websites and in e-commerce websites, security is most e-commerce website as we store data in a database [13].A
important as users do the payment for the buying and selling structured set of data stored is called data structure. Laravel
and sometimes users save their cards number and supports four databases-
information on the applications and websites to make the
shopping quicker[19]. But if attackers attack the website they • MySQL
can steal the information from the websites which will result • Postgres
in the loss of the company as users trust will be destroyed.
Frameworks provide a high level of security from different • SQLite
types of attacks [20]. This paper also contains a comparison
of PHP frameworks. There are different types of PHP • SOL Server
frameworks like- Laravel, Codeigniter, CakePHP, Symfony, The query of the database can be used using raw SQL,
and Drupal. Laravel performance is compared to all other fluent query builder and the Eloquent ORM. To connect the
frameworks. And we will also see how laravel is best to database we configure the database in the
choose for website development. And if you are developing config/database.php file and create the database with
an E-commerce site then Laravel is best as it also provides structure in MySQL. According to this paper [5], laravel has
the best security. The PHP frameworks follow the model medium reusability score as compared to cake PHP and
view Controller (MVC) architecture as shown in fig.4, the Codeigniter. In loading, data laravel performs well as
Model View Controller is a standard design pattern for compare to others [16]. Laravel performs the best for
website designing applications. This concept is common in Read/write files. In Laravel code generation is done CLI
all the website development frameworks. There is a (code line interface) UI whereas, in codIgniter, Phalcon and
command line tool called the Artisan present in the Laravel Zend framework doesn’t support CLI. Laravel supports
framework on its features all the developers are driveling. Eloquent ORM and codeIgniter supports ActiveRecord
Artisan is used for creating models and controlling them. The whereas Phalcon and zend don’t support any ORM [12].
documentation of laravel is so clear and elaborated that we Cache storage of Laravel is far better than other
can easily understand its functions and libraries. Model, frameworks. Dependency injection container is present with
view, and controller are the three parts of MVC pattern. Due auto wiring in laravel but not in other frameworks.
to this, it supports multiple views of information and it Command schedulers allow us to fluently define the
represents the information by the view [17]. command schedule. It provides a unified API across a
• Model: The components of model correlate to all variety of different queue back ends. Most importantly it
the data-related logic that the user uses to work allows us to transfer our database from one platform to
with. We can also say that it represents the data another without any hustle. It also includes a simple way to
which is transferred between the view and seed the database with seed classes. This feature of Laravel
controller. makes it different and efficient from other PHP frameworks.
It is the most efficient Framework to work on. In this
• View: All the UI logic of the applications is handled research, we have seen all the aspects that should be
by the view. considered for choosing a Framework to work on. If a
person considers these aspects of database, structure, and
• Controller: It acts as an interface between the model pattern then he or she can easily build an e-commerce
and view. It processes all the components and it website without any problem. We had made some e-
processes all the incoming requests. commerce website by using simple php, laravel and other
frameworks. Websites are made to make comparison of
laravel with other frameworks. The website with plain php
is shown in fig 5. Fig 6 shows the website made by laravel
CONTROLLER
framework and fig 7 shows the website made by some other
framework. By Laravel it is easy to make website as it
doesn’t required typing of code from scratch what we do in
Process Request Send data to view plain PHP. But in Laravel most of the work is done just we
had to make changes according to our business requirement.
But in the other framework like codeIgnitor there are not
such inbuilt libraries to make our website more fruitful.
VIEW
MODEL
Shows output
In fig 6 the website is fully responsive and is made in less
time as compared to the website that are made from other
frameworks. By this result it is observed that laravel is easy
Fig. 4 Structure of MVC

Authorized licensed use limited to: UNIVERSIDADE DE SAO PAULO. Downloaded on July 24,2024 at 18:51:00 UTC from IEEE Xplore. Restrictions apply.
506
2019 Fifth International Conference on Image Information Processing (ICIIP)

to handle and it will produce a well responsive website TABLE I


within short span of time.
RESULT COMPARISON OF DIFFERENT PHP FRAMEWORKS

Frameworks

1. Laravel • For a novice, it is the best


framework to work because of
the wide- ranging
documentation.
• Encryption packages are strong.
• Unit testing
• It offers enormous ecosystem
which provides the solution to
all errors.
2. CodeIgniter • Unit testing is not friendly.
• Only a few inbuilt libraries are
Fig 5: website made by using simple PHP there.
• No namespaces.
3. CakePHP • Constructing Restful APIs is not
as good as compare to Laravel.

4. Zend • Rapid application development


not ideal.

5. Fuel PHP • Limited offering of open source


community than Laravel.
• Not friendly for a novice.

6. Phalcon • Not open source as Laravel.


• Developers are needed for bug’s
issue.

Fig 6: Website made by Laravel framework.


7. Symphony • MVC structure is not supported.

From table I we get to know the Reasons why Laravel is


popular in the market:
• Applications that required obscure backend is
more suitable to make with laravel whether
large or small in scale.
• A vagrant box, homestead prepackaged is there
in Laravel that made it easier to operate.
• Speed, security and seamless information
relocation.
VI. CONCLUSION
In comparison to other PHP frameworks Laravel is best
in read/write files and in the migration of the database from
one platform to another. Database migration is very hard in
the traditional approach of website making. In PHP it is very
Fig 7: Website by other Framework hard for the developers to transfer the database from one
platform or from one system to another it would take more

Authorized licensed use limited to: UNIVERSIDADE DE SAO PAULO. Downloaded on July 24,2024 at 18:51:00 UTC from IEEE Xplore. Restrictions apply.
507
2019 Fifth International Conference on Image Information Processing (ICIIP)

time in website making. But in Laravel it is a very easy task. [19] Leff, Avraham, and James T. Rayfield. "Web-application
Laravel have artisans that are built in commands that will development using the model/view/controller design
pattern." Proceedings fifth ieee international enterprise distributed
help the developers to understand the architecture of Laravel object computing conference. IEEE, 2001.
and by understanding the structure developers can make their [20] Pop, Dragos-Paul, and Adam Altar. "Designing an MVC model for
websites with so much ease. rapid web application development." Procedia Engineering 69
(2014): 1172-1179.
REFERENCES
[1] Rashdan, Rashid. Developing design process model and measuring
acceptance of polytechnic cooperative e-retail website. Diss.
Universiti Utara Malaysia, 2015.
[2] He, Ren Yu. "Design and implementation of web based on Laravel
framework." 2014 International Conference on Computer Science
and Electronic Technology (ICCSET 2014). Atlantis Press, 2015.
[3] Zurkiewicz, A., and M. Miłosz. "Selecting a PHP framework for a
web application project-The method and case study." Conference: 9th
international Technology, Education and Development Conference.
No. s 1712. 2015.
[4] Li, Xiaosong, Sai Karnan, and Jahanzaib Ali Chishti. "An empirical
study of three PHP frameworks." 2017 4th International Conference
on Systems and Informatics (ICSAI). IEEE, 2017.
[5] Fayyaz, Ali Raza, and Madiha Munir. "Performance Evaluation of
PHP Frameworks (CakePHP and CodeIgniter) in relation to the
Object-Relational Mapping, with respect to Load Testing." (2014).
[6] Kiatruangkrai, Pilunchana, et al. "Design and Development of Real-
Time Communication Content Management System for E-
Commerce." Data, Privacy and E-Commerce (ISDPE), 2010 Second
International Symposium on. IEEE, 2010.
[7] Ferreira, Célia, Ramiro Gonçalves, and Rosalina Babo. "Evaluating
functionalities of eCommerce websites for emigrants." 6th Iberian
Conference on Information Systems and Technologies (CISTI 2011).
IEEE, 2011.
[8] Samra, Jone. "Comparing performance of plain php and four of its
popular frameworks." (2015).
[9] Das, Ripunjit, and Lakshmi Prasad Saikia. "Comparison of Procedural
PHP with Codeigniter and Laravel Framework." International
Journal of Current Trends in Engineering & Research 2.6 (2016): 42-
8.
[10] Yu, Xiaosheng, and Cai Yi. "Design and Implementation of the
Website Based on PHP & MYSQL." 2010 International Conference
on E-Product E-Service and E-Entertainment. IEEE, 2010.
[11] Anif, Muhammad, Arya Dentha, and H. W. S. Sindung. "Designing
internship monitoring system web based with Laravel
framework." 2017 IEEE International Conference on
Communication, Networks and Satellite (Comnetsat). IEEE, 2017.
[12] Ferreira, Célia, Ramiro Gonçalves, and Rosalina Babo. "Evaluating
functionalities of eCommerce websites for emigrants." 6th Iberian
Conference on Information Systems and Technologies (CISTI 2011).
IEEE, 2011.
[13] Prokofyeva, Natalya, and Victoria Boltunova. "Analysis and Practical
Application of PHP Frameworks in Development of Web Information
Systems." Procedia Computer Science 104 (2017): 51-56.
[14] Supaartagorn, Chanchai. "PHP Framework for database management
based on MVC pattern." International Journal of Computer Science
& Information Technology (IJCSIT) 3.2 (2011): 251-258.
[15] Cui, Wei, et al. "The research of PHP development framework based
on MVC pattern." 2009 Fourth International Conference on
Computer Sciences and Convergence Information Technology. IEEE,
2009.
[16] Verma, Archit. "MVC Architecture: A Comparative Study Between
Ruby on Rails and Laravel." Indian Journal of Computer Science and
Engineering (IJCSE) 5.5 (2014): 196-198.
[17] Jingling, Zhao, and Gong Rulin. "A new framework of security
vulnerabilities detection in PHP web application." 2015 9th
International Conference on Innovative Mobile and Internet Services
in Ubiquitous Computing. IEEE, 2015.
[18] Otwell, Taylor. "Laravel-the php framework for web
artisans." Laravel. com (2017).

Authorized licensed use limited to: UNIVERSIDADE DE SAO PAULO. Downloaded on July 24,2024 at 18:51:00 UTC from IEEE Xplore. Restrictions apply.
508

You might also like