MongoDB Aggregation in PHP

Learn how to create aggregation pipelines with PHP by using MongoDB's aggregation framework.

MongoDB Aggregation in PHP

Unit Overview

In this unit, you'll learn how to perform basic aggregation with PHP by using MongoDB's aggregation framework. First, you'll learn what aggregation is and explore the components of an aggregation pipeline. Next, you'll learn how to build a pipeline that uses the $match and $group stages. Finally, you'll explore the $sort and $project stages and build a pipeline that uses them.

Prerequisites

Lessons in This Unit

  • Lesson 1 – Building a MongoDB Aggregation Pipeline in PHP Applications
  • Lesson 2 – Using MongoDB Aggregation Stages with PHP: Match and Group
  • Lesson 3 – Using MongoDB Aggregation Stages with PHP: Sort and Project
  • 01.
    Lesson 1: Building a MongoDB Aggregation Pipeline in PHP Applications
    • Learn
    • Practice
  • 02.
    Lesson 2: Using MongoDB Aggregation Stages with PHP: Match and Group
    • Learn
    • Practice
  • 03.
    Lesson 3: MongoDB Aggregation Stages with PHP: Sort and Project
    • Learn
    • Practice
  • 04.
    Conclusion
    • Learn
Julie Gauthier | Senior Curriculum Engineer

Julie Gauthier | Senior Curriculum Engineer

Julie is a Senior Curriculum Engineer on the University Team at MongoDB. She holds a BS and MS in Computer Science, and has a background as a software engineer. Julie has taught hundreds of people web development, with a goal of empowering everyone with technology!

Vick Mena | Director, Curriculum

Vick Mena | Director, Curriculum

My name is Vick and I've been in the wild for over 25 years. I grew up at IBM working on the BIOS for the IBM eServer line in Austin, TX before moving to Wall St. I've worked on all phases of software development from low-level to middleware to UI but feel most comfortable in the middle. I also drank the devops kool-aid having moved a product line to AWS while at Dow Jones & Co with the help of an amazing team. I then pivoted into the secure space and worked on software/hardware reverse engineering. I always thought I'd eventually teach and this role lets me leverage all of my experience to lead this motley crew of passionate educators.