PHP Frameworks Flashcards
1
Q
What is a framework in software development?
A
A framework is a pre-built collection of code that provides a foundation for developing software applications. It includes libraries, tools, and best practices that help developers build applications more efficiently and maintainably.
2
Q
List various PHP frameworks.
A
Laravel
CodeIgniter
CakePHP
Yii
Slim
3
Q
Reasons to Use PHP Frameworks
CFSMC
A
- Code Reusability: Frameworks provide libraries for common functions, reducing the need to write code from scratch.
- Faster Development: Pre-built components and tools speed up the development process, allowing for quicker project completion.
- Security: Many frameworks come with built-in security features that help protect applications from common vulnerabilities.
- Maintainability: Frameworks promote organized code structure, making it easier to maintain and update applications over time.
- Community Support:Popular frameworks have large communities, providing resources, documentation, and support for developers.
4
Q
Write a five-point note on CodeIgniter PHP framework.
LMEBA
A
- Lightweight: CodeIgniter is known for its small footprint, making it fast and efficient for web application development.
- MVC Architecture: It follows the Model-View-Controller (MVC) design pattern, promoting separation of concerns and better organization of code.
- Easy to Learn: CodeIgniter has a simple and straightforward setup, making it accessible for beginners and experienced developers alike.
- Built-in Libraries: It comes with a rich set of libraries for common tasks such as database interaction, form validation, and session management.
- Active Community: CodeIgniter has a supportive community and extensive documentation, providing resources for troubleshooting and learning.
5
Q
Write a five-point note on Joomla and its features.
(CUEMA)
A
- Content Management System (CMS): Joomla is a powerful open-source CMS that allows users to create and manage websites easily.
- User -Friendly Interface: It offers an intuitive interface for managing content, making it suitable for both developers and non-technical users.
- Extensible: Joomla supports a wide range of extensions and plugins, allowing users to add functionality and customize their websites.
- Multilingual Support: It has built-in support for multiple languages, making it easy to create multilingual websites.
- Active Community: Joomla has a supportive community and extensive documentation, providing resources for troubleshooting and learning.
6
Q
What are five features of the Laravel framework?
EERBT
A
- Elegant Syntax:Laravel provides a clean and expressive syntax that enhances developer productivity and code readability.
- Eloquent ORM:It includes an Object-Relational Mapping (ORM) system called Eloquent, which simplifies database interactions.
- Routing System: Laravel offers a powerful routing system that allows developers to define application routes easily.
- Built-in Authentication: The framework comes with built-in authentication and authorization features, making it easy to secure applications.
- Task Scheduling: Laravel includes a task scheduling feature that allows developers to automate repetitive tasks using a simple syntax.
7
Q
Yii Framework Features
HGMSE
A
- High Performance: Yii is designed for high performance, making it suitable for large-scale applications and high-traffic websites.
- Gii Tool: It includes Gii, a powerful web-based code generator that helps developers quickly create models, controllers, and forms.
- MVC Architecture: Yii follows the Model-View-Controller (MVC) design pattern, promoting a clear separation of concerns in application development.
- Security Features: The framework provides built-in security features, including input validation, output filtering, and protection against SQL injection and XSS attacks.
- Extensible: Yii is highly extensible, allowing developers to customize and extend its core functionalities easily.
8
Q
CakePHP Features
A
- Rapid Development: CakePHP emphasizes rapid application development, allowing developers to build applications quickly with less code.
- Convention over Configuration: It follows the principle of “convention over configuration,” reducing the need for extensive configuration files.
- Built-in ORM: CakePHP includes a powerful Object-Relational Mapping (ORM) system that simplifies database interactions and queries.
- Security Features: The framework provides various security features, such as input validation, CSRF protection, and SQL injection prevention.
- Active Community: CakePHP has a strong community that contributes to its development, providing extensive documentation and support for developers.