Download MVC Model and PHP Frameworks in Web Development and more Summaries Web Application Development in PDF only on Docsity!
Higher Nationals in Computing
WEBG301: WEB Project
ASSIGNMENT
Learner’s name: DUONG CHI LOC
ID: GCS
Class: GCS0905A
Subject code: WEBG
Assessor name: PHAN MINH TAM
Assignment due: Assignment submitted:
❒ Summative Feedback: ❒ Resubmission Feedback:
Grade: Assessor Signature: Date: Signature & Date:
Table of Contents
Table of Figure
Literature Review
1. Introduction Example: It is generally accepted that there are three basic lifecycle approaches to software development, the waterfall approach, iterative development and component-based software engineering. This literature review places Rapid Application Development in context as well as looking at some of reasons for the evolution of methodologies. 2. SDLC model 2.1. Introduction to SDLC. Software Development Life Cycle (SDLC) is a process used by the software industry to design, develop and test high quality software. The SDLC aims to produce a high-quality software that meets or exceeds customer expectations, reaches completion within times and cost estimates. - SDLC is the acronym of Software Development Life Cycle. - It is also called as Software Development Process. - SDLC is a framework defining tasks performed at each step in the software development process. - ISO/IEC 12207 is an international standard for software life-cycle processes. It aims to be the standard that defines all the tasks required for developing and maintaining software. SDLC is a process followed for a software project, within a software organization. It consists of a detailed plan describing how to develop, maintain, replace and alter or enhance specific software. The life cycle defines a methodology for improving the quality of software and the overall development process. The following figure is a graphical representation of the various stages of a typical SDLC. P a g e | 2
2.2. Type of SDLC There are various software development life cycle models defined and designed which are followed during the software development process. These models are also referred as Software Development Process Models". Each process model follows a Series of steps unique to its type to ensure success in the process of software development. Following are the most important and popular SDLC models followed in the industry − Waterfall Model Iterative Model Spiral Model V-Model Big Bang Model Other related methodologies are Agile Model, RAD Model, Rapid Application Development and Prototyping Models. 2.3. SDCL model applied in project Model of Tune Source should choose is Waterfall model .Because there are advantage model brings to Tune Source , such as :It is very easy, realistic approach that provides flexibility to developers. And promotes teamwork and cross training. The Waterfall SDLC model allows teams to be more flexible and to implement changes more quickly. Products get to market faster and users don't have to wait long for new features and updates. The Waterfall software development life cycle provides the necessary conditions for better communication with users and product owners.
3. MVC architecture MVC is an architectural pattern which means it rules the whole architecture of the applications. Even though often it is known as design pattern but we may be wrong if we refer it only as a design pattern because design patterns are used to solve a specific technical problem, whereas architecture pattern is used for solving architectural problems, so it affects the entire architecture of our application. P a g e | 3
websites (whose server-side programming languages the Web Technology Surveys site is able to track). In this article, we'll look at three of the most popular PHP frameworks: Symfony, Laravel, and Yii. We'll examine how they compare to help you decide which one might be the best fit for your needs. 4.2. Why use a PHP Framework? What's the point of using a framework instead of raw PHP to develop your application? A few benefits of using a framework include: A PHP framework makes development faster. For example, you don't have to write complex queries to retrieve the data from the database. PHP frameworks provide CRUD operations (Create, Read, Update, and Delete). Frameworks enable developers to scale systems easily. Code maintenance is easier than with a vanilla PHP application. The application code is concise and easy to work with. The MVC model ensures rapid development. Frameworks are better in securing the web application from common security threats. The don't repeat yourself (DRY) principle ensures that minimal code has maximum impact. The above benefits are too significant to be ignored. Even though raw PHP can be used to create any application, the current development standards require tools and time- management skills to meet the market demand. 4.3. Common PHP Frameworks It’s difficult to get a definitive list of PHP frameworks. Wikipedia lists 40 PHP frameworks, but some of those are better described as content management systems, and undoubtedly there are many more. Early PHP frameworks include PHPlib, Horde, and Pear. Most of the big names now launched in 2005 or later. P a g e | 5
Here are some of the best PHP frameworks in use today.
- Laravel
- Symfony
- CodeIgniter
- Zend Framework / Laminas Project
- Yii (Framework)
- CakePHP
- Slim
- Phalcon
- FuelPHP
- Fat-Free Framework
- Laravel 4.4. PHP Framework is used in project We are currently using laravel. Because Laravel helps website developers simplify their development process with clean and reusable code. It's one of the few frameworks that has the flexibility and rich features to make it a perfect platform for creating websites and online applications. And Laravel has 5 advantages are:
- MVC Architecture For Exceptional Support & Performance
- Template Engine For Outstanding Layouts
- Artisan CLI For Utterly Simple & Fast Commands
- Eloquent ORM For Easy Interaction With App Database
- Adequate App Testing Features 5. Database P a g e | 6
Chapter 3: Requirements Analysis
1. User’s requirements 1.1. Functional requirements 1.1.1. Customer roles: View products Search View product detail Login Register 1.1.2. Admin roles: Select Create Update Delete Edit Login 1.2. Non-Functional requirements 1.2.1. Performance and scalability Scalability Scalability is the capability of a system or process to handle an enhanced level of operations without constraints or structural bottlenecks. Every business model gives paramount importance to business generation, which leads to higher transactional volume and its consequential surge in operational activity. Scaling up the operations P a g e | 8
to handle increased business activity is inherent and built into the system design. Scalability can be classified into two categories: Physical and Intangible. Performance Performance defines how fast a software system or a particular piece of it responds to certain users’ actions under a certain workload. In most cases, this metric explains how long a user must wait before the target operation happens (the page renders, a transaction is processed, etc.) given the overall number of users at the moment. But it’s not always like that. Performance requirements may describe background processes invisible to users, e.g. backup. But let’s focus on user-centric performance. 1.2.2. Portability and compatibility Portability Portability determines how a system or its element can be launched within one environment or another. It usually includes hardware, software, or other usage platform specifications. Put simply, it establishes how well actions performed via one platform are run on another. Also, it prescribes how well system elements may be accessed and may interact from two different environments. Compatibility Compatibility, as an additional aspect of portability, defines how a system can coexist with another system in the same environment. For instance, software installed on an operating system must be compatible with its firewall or antivirus protection. 1.2.3. Reliability, maintainability, availability Reliability Reliability specifies how likely the system or its element would run without a failure for a given period of time under predefined conditions. Traditionally, this probability is expressed in percentages. For instance, if the system has 85 percent reliability for a month, this means that during this month, under normal usage conditions, there’s an 85 percent chance that the system won’t experience critical failure. P a g e | 9
Figure 2: Use case computer store system. 2.2. Use Case specification 2.2.1. UC- P a g e | 11
- Chapter 1.........................................................................................................................................
- Background information....................................................................................................................
- Project aim and objectives.................................................................................................................
- Chapter 2.........................................................................................................................................
- Introduction..........................................................................................................................................
- SDLC model..........................................................................................................................................
- 2.1. Introduction to SDLC.......................................................................................................................
- 2.2. Type of SDLC....................................................................................................................................
- 2.3. SDCL model applied in project........................................................................................................
- MVC architecture.................................................................................................................................
- PHP Frameworks.................................................................................................................................
- 4.1. What is PHP Framework..................................................................................................................
- 4.2. Why use a PHP Framework............................................................................................................
- 4.3. Common PHP Frameworks.............................................................................................................
- 4.4. PHP Framework is used in project..................................................................................................
- Database................................................................................................................................................
- Techniques and Tools...........................................................................................................................
- Chapter 3...................................................................................................................................................
- User’s requirements.............................................................................................................................
- 1.1. Functional requirements...................................................................................................................
- 1.1.1. Customer roles................................................................................................................................
- 1.1.2. Admin roles.....................................................................................................................................
- 1.2. Non-Functional requirements..........................................................................................................
- 1.2.1. Performance and scalability..........................................................................................................
- 1.2.2. Portability and compatibility........................................................................................................
- 1.2.3. Reliability, maintainability, availability.......................................................................................
- 1.2.4. Security..........................................................................................................................................
- 1.2.5. Usability.........................................................................................................................................
- Use case diagram................................................................................................................................
- 2.1. Use case computer store system.....................................................................................................
- 2.2. Use Case specification.....................................................................................................................
- 2.2.1. UC-1...............................................................................................................................................
- 2.2.2. UC-2...............................................................................................................................................
- 2.2.3. UC-3...............................................................................................................................................
- 2.2.4. UC-4...............................................................................................................................................
- 2.2.5. UC-5...............................................................................................................................................
- 2.2.6. UC-6...............................................................................................................................................
- Gantt chart..........................................................................................................................................
- Chapter 4.................................................................................................................................................
- Site map...............................................................................................................................................
- Database design..................................................................................................................................
- 2.1. Database diagram............................................................................................................................
- 2.2. Data dictionary................................................................................................................................
- Class diagram.....................................................................................................................................
- WireFrame design..............................................................................................................................
- Chapter 5.................................................................................................................................................
- Appication screenshots.......................................................................................................................
- 1.1. Customer side..................................................................................................................................
- 1.2. Admin side........................................................................................................................................
- Sample source code............................................................................................................................
- GitHub Repository.............................................................................................................................
- Chapter 6.................................................................................................................................................
- What went well...................................................................................................................................
- What did no go well............................................................................................................................
- Lessons learned and further improvements....................................................................................
- Figure 1............................................................................................................................................
- Figure 2..........................................................................................................................................
- Figure 3..........................................................................................................................................
- Figure 4..........................................................................................................................................
- Figure 5..........................................................................................................................................
- Figure 6..........................................................................................................................................
- Figure 7..........................................................................................................................................
- Figure 8..........................................................................................................................................
- Figure 9..........................................................................................................................................
- Figure 10........................................................................................................................................
- Figure 11........................................................................................................................................
- Figure 12........................................................................................................................................
- Figure 13........................................................................................................................................
- Figure 14........................................................................................................................................
- Figure 15........................................................................................................................................
- Figure 16........................................................................................................................................
- Figure 17........................................................................................................................................
- Figure 18........................................................................................................................................
- Figure 19........................................................................................................................................
- Figure 20........................................................................................................................................
- Figure 21........................................................................................................................................
- Figure 22........................................................................................................................................
- Figure 23........................................................................................................................................
- Figure 24........................................................................................................................................
- Figure 25........................................................................................................................................
- Figure 26........................................................................................................................................
- Figure 27........................................................................................................................................
- 2.2.2. UC-
- 2.2.3. UC-