title: How can i execute a mongodb query in php (codeigniter framework)
body: <p>This is my MongoDB query</p>
  
  <pre><code>db.getCollection('fe_report').aggregate([{
      $match: 
      { date: { $gte: ISODate("2017-07-01T00:00:00.000Z"),
              $lte: ISODate("2017-07-19T00:00:00.000Z")} } },
      {
          $group:
          {
              _id :"$employee_id_fk",
  
              no_of_kms : {$sum: "$no_of_kms"},
              no_of_orders: {$sum: "$no_of_orders"},
              }
      }
     ]
    )
  </code></pre>
  
  <p>i need to execute this query from PHP </p>