WEB306 - PHP: Databases and Framework

Outline info
Semester
School
Last revision date Jan 26, 2026 1:12:52 AM
Last review date Mar 16, 2026 12:15:14 AM


Subject Title
PHP: Databases and Framework

Subject Description
This course is designed to provide students with a solid foundation of PHP and MySQL and will allow them to create database driven websites. Topics include: installing and configuring PHP, MySQL and Apache, PHP basics, object-oriented PHP, PHP with MySQL, the Composer package manager and the Laravel framework.

Credit Status
1 Credit towards the Web Programming & Development R.O.A.

Learning Outcomes
Upon successful completion of this subject the student will be able to:


  1. Set up a local development server for creating web sites and web applications
  2. Create basic scripts and programs using PHP
  3. Implement the four principles of object-oriented programming using PHP classes, methods, properties and objects
  4. Create databases and tables using MySQL with PHPMyAdmin
  5. Demonstrate an understanding of the basics of relational  databases and how to query data using the SQL language, PHP, MySQLi and PDO
  6. Create database driven websites using HTML / CSS, object-oriented PHP code and PDO
  7. Understand the basics of MVC frameworks and how to use them
  8. Learn how to develop using CLI (Command Line Interfaces)
  9. Install and use PHP packages using Composer, the CLI and namespaces
  10. Develop database driven web applications using the PHP framework Laravel, Blade templates and the Eloquent ORM
 

Essential Employability Skills
    •  Apply a systematic approach to solve problems.

    •  Use a variety of thinking skills to anticipate and solve problems.

    •  Manage the use of time and other resources to complete projects.

    •  Take responsibility for one's own actions, decisions, and consequences.

Academic Integrity
Seneca upholds a learning community that values academic integrity, honesty, fairness, trust, respect, responsibility and courage. These values enhance Seneca's commitment to deliver high-quality education and teaching excellence, while supporting a positive learning environment. Ensure that you are aware of Seneca's Academic Integrity Policy which can be found at: http://www.senecapolytechnic.ca/about/policies/academic-integrity-policy.html Review section 2 of the policy for details regarding approaches to supporting integrity. Section 2.3 and Appendix B of the policy describe various sanctions that can be applied, if there is suspected academic misconduct (e.g., contract cheating, cheating, falsification, impersonation or plagiarism).

Please visit the Academic Integrity website http://open2.senecac.on.ca/sites/academic-integrity/for-students to understand and learn more about how to prepare and submit work so that it supports academic integrity, and to avoid academic misconduct.

Discrimination/Harassment
All students and employees have the right to study and work in an environment that is free from discrimination and/or harassment. Language or activities that defeat this objective violate the College Policy on Discrimination/Harassment and shall not be tolerated. Information and assistance are available from the Student Conduct Office at student.conduct@senecapolytechnic.ca.

Accommodation for Students with Disabilities
The College will provide reasonable accommodation to students with disabilities in order to promote academic success. If you require accommodation, contact the Counselling and Accessibility Services Office at ext. 22900 to initiate the process for documenting, assessing and implementing your individual accommodation needs.

Camera Use and Recordings - Synchronous (Live) Classes
Synchronous (live) classes may be delivered in person, in a Flexible Learning space, or online through a Seneca web conferencing platform such as MS Teams or Zoom. Flexible Learning spaces are equipped with cameras, microphones, monitors and speakers that capture and stream instructor and student interactions, providing an in-person experience for students choosing to study online.

Students joining a live class online may be required to have a working camera in order to participate, or for certain activities (e.g. group work, assessments), and high-speed broadband access (e.g. Cable, DSL) is highly recommended. In the event students encounter circumstances that impact their ability to join the platform with their camera on, they should reach out to the professor to discuss. Live classes may be recorded and made available to students to support access to course content and promote student learning and success.

By attending live classes, students are consenting to the collection and use of their personal information for the purposes of administering the class and associated coursework. To learn more about Seneca's privacy practices, visit Privacy Notice.

Prerequisite(s)
WDC100 or previous HTML/CSS experience

Topic Outline
Installing and using Atom, Git and GitHub Desktop
Installing and setting up Apache, MySQL and PHP using XAMPP
Introduction to the PHP language and the basics of scripting languages
PHP data types, templating and control structures
Troubleshoot errors and use error reporting
Introduction to the PHP superglobal variables
Introduction to classes and objects
Introduction to object-oriented programming concepts in PHP
Introduction to MySQL and databases
Fundamentals of processing HTML form information and saving it into a database using SQL, PHP, MySQLi and PDO
Conceptual understanding of MVC frameworks Introduction to namespaces and autoloading
Basics of CLI (Command Line Interface)
Installing and using Composer
Installing the Laravel web framework
Connecting the Laravel framework with a standard MySQL database
Creating database tables using Laravel migrations
Creating Models and Controllers using Laravel
Creating and designing Views using Laravel Blade templates
Creating Models that understand relational data using the Eloquent ORM
Creating user accounts handled using Laravel's authentication features

Mode of Instruction
Classroom instruction and extensive hands-on experience will be provided, reinforced by assignments between classes.

Prescribed Texts
None

To find out the cost of books and learning material go here.

Any courses not listed on the bookstore webpage do not require any resources for purchase. All resources will be provided by your instructor.

Reference Material
None

Required Supplies
None

Student Progression and Promotion Policy

http://www.senecapolytechnic.ca/about/policies/student-progression-and-promotion-policy.html

Grading Policyhttp://www.senecapolytechnic.ca/about/policies/grading-policy.html

A+ 90%  to  100%
A 80%  to  89%
B+ 75%  to  79%
B 70%  to  74%
C+ 65%  to  69%
C 60%  to  64%
D+ 55%  to  59%
D 50%  to  54%
F 0%    to  49% (Not a Pass)
OR
EXC Excellent
SAT Satisfactory
UNSAT Unsatisfactory

For further information, see a copy of the Academic Policy, available online (http://www.senecapolytechnic.ca/about/policies/academics-and-student-services.html) or at Seneca's Registrar's Offices. (https://www.senecapolytechnic.ca/registrar.html).



Modes of Evaluation

Assignment 1 15%
Assignment 2 15%
Assignment 3 25%
Assignment 4 15%
Assignment 5 30%

Approved by: Sheri Ladoucier