title: PHP Laravel (Shopify App) how to access Guzzle response(stdclass) data parameters
body: <p>I am working on Shopify App using Laravel and used <strong>Osiset/Larave-Shopify</strong> Package.</p>
  
  <p>Currently I am trying to access response from <strong>Shopify Webhooks</strong> and package returns data in <strong>stdclass object.</strong></p>
  
  <p>Simply I want to access email from the following response object in PHP, can anyone please let me know how can I do that?</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>Here is response code:</strong></p>
  
  <pre><code>stdClass::__set_state(array(
     'id' =&gt; 2222178795622,
     'email' =&gt; 'jmmkaler@gmail.com',
     'closed_at' =&gt; NULL,
     'created_at' =&gt; '2020-05-09T16:39:11-04:00',
     'updated_at' =&gt; '2020-05-09T16:39:12-04:00',
     'number' =&gt; 3,
     'note' =&gt; NULL,
     'token' =&gt; '7d485aee4f64562e98444fa11a0acb9d',
     'gateway' =&gt; 'bogus',
     'test' =&gt; true,
     'total_price' =&gt; '590.00',
     'subtotal_price' =&gt; '500.00',
     'total_weight' =&gt; 0,
     'total_tax' =&gt; '90.00',
     'taxes_included' =&gt; false,
     'currency' =&gt; 'INR',
     'financial_status' =&gt; 'paid',
     'confirmed' =&gt; true,
     'total_discounts' =&gt; '0.00',
     'total_line_items_price' =&gt; '500.00',
     'cart_token' =&gt; '',
     'buyer_accepts_marketing' =&gt; false,
     'name' =&gt; '#1003',
     'referring_site' =&gt; 'https://shipment-tracker.myshopify.com/products/jeans-1',
     'landing_site' =&gt; '/wallets/checkouts.json',
     'cancelled_at' =&gt; NULL,
     'cancel_reason' =&gt; NULL,
     'total_price_usd' =&gt; '7.82',
     'checkout_token' =&gt; '587a1c76ed68ae90c521de803bb6c9b7',
     'reference' =&gt; NULL,
     'user_id' =&gt; NULL,
     'location_id' =&gt; NULL,
     'source_identifier' =&gt; NULL,
     'source_url' =&gt; NULL,
     'processed_at' =&gt; '2020-05-09T16:39:11-04:00',
     'device_id' =&gt; NULL,
     'phone' =&gt; NULL,
     'customer_locale' =&gt; 'en',
     'app_id' =&gt; 580111,
     'browser_ip' =&gt; '117.203.132.178',
     'landing_site_ref' =&gt; NULL,
     'order_number' =&gt; 1003,
     'discount_applications' =&gt; 
    array (
    ),
     'discount_codes' =&gt; 
    array (
    ),
     'note_attributes' =&gt; 
    array (
    ),
     'payment_gateway_names' =&gt; 
    array (
      0 =&gt; 'bogus',
    ),
     'processing_method' =&gt; 'direct',
     'checkout_id' =&gt; 12780937707622,
     'source_name' =&gt; 'web',
     'fulfillment_status' =&gt; NULL,
     'tax_lines' =&gt; 
    array (
      0 =&gt; 
      stdClass::__set_state(array(
         'price' =&gt; '90.00',
         'rate' =&gt; 0.179999999999999993338661852249060757458209991455078125,
         'title' =&gt; 'IGST',
         'price_set' =&gt; 
        stdClass::__set_state(array(
           'shop_money' =&gt; 
          stdClass::__set_state(array(
             'amount' =&gt; '90.00',
             'currency_code' =&gt; 'INR',
          )),
           'presentment_money' =&gt; 
          stdClass::__set_state(array(
             'amount' =&gt; '90.00',
             'currency_code' =&gt; 'INR',
          )),
        )),
      )),
    ),
     'tags' =&gt; '',
     'contact_email' =&gt; 'jmmkaler@gmail.com',
     'order_status_url' =&gt; 'https://shipment-tracker.myshopify.com/27247083622/orders/7d485aee4f64562e98444fa11a0acb9d/authenticate?key=4177ec29bf6e0a924cbc981827e0c5c8',
     'presentment_currency' =&gt; 'INR',
     'total_line_items_price_set' =&gt; 
    stdClass::__set_state(array(
       'shop_money' =&gt; 
      stdClass::__set_state(array(
         'amount' =&gt; '500.00',
         'currency_code' =&gt; 'INR',
      )),
       'presentment_money' =&gt; 
      stdClass::__set_state(array(
         'amount' =&gt; '500.00',
         'currency_code' =&gt; 'INR',
      )),
    )),
     'total_discounts_set' =&gt; 
    stdClass::__set_state(array(
       'shop_money' =&gt; 
      stdClass::__set_state(array(
         'amount' =&gt; '0.00',
         'currency_code' =&gt; 'INR',
      )),
       'presentment_money' =&gt; 
      stdClass::__set_state(array(
         'amount' =&gt; '0.00',
         'currency_code' =&gt; 'INR',
      )),
    )),
     'total_shipping_price_set' =&gt; 
    stdClass::__set_state(array(
       'shop_money' =&gt; 
      stdClass::__set_state(array(
         'amount' =&gt; '0.00',
         'currency_code' =&gt; 'INR',
      )),
       'presentment_money' =&gt; 
      stdClass::__set_state(array(
         'amount' =&gt; '0.00',
         'currency_code' =&gt; 'INR',
      )),
    )),
     'subtotal_price_set' =&gt; 
    stdClass::__set_state(array(
       'shop_money' =&gt; 
      stdClass::__set_state(array(
         'amount' =&gt; '500.00',
         'currency_code' =&gt; 'INR',
      )),
       'presentment_money' =&gt; 
      stdClass::__set_state(array(
         'amount' =&gt; '500.00',
         'currency_code' =&gt; 'INR',
      )),
    )),
     'total_price_set' =&gt; 
    stdClass::__set_state(array(
       'shop_money' =&gt; 
      stdClass::__set_state(array(
         'amount' =&gt; '590.00',
         'currency_code' =&gt; 'INR',
      )),
       'presentment_money' =&gt; 
      stdClass::__set_state(array(
         'amount' =&gt; '590.00',
         'currency_code' =&gt; 'INR',
      )),
    )),
     'total_tax_set' =&gt; 
    stdClass::__set_state(array(
       'shop_money' =&gt; 
      stdClass::__set_state(array(
         'amount' =&gt; '90.00',
         'currency_code' =&gt; 'INR',
      )),
       'presentment_money' =&gt; 
      stdClass::__set_state(array(
         'amount' =&gt; '90.00',
         'currency_code' =&gt; 'INR',
      )),
    )),
     'line_items' =&gt; 
    array (
      0 =&gt; 
      stdClass::__set_state(array(
         'id' =&gt; 4852532740198,
         'variant_id' =&gt; 31739432435814,
         'title' =&gt; 'Jeans',
         'quantity' =&gt; 1,
         'sku' =&gt; '',
         'variant_title' =&gt; '',
         'vendor' =&gt; 'Nike',
         'fulfillment_service' =&gt; 'manual',
         'product_id' =&gt; 4818366496870,
         'requires_shipping' =&gt; true,
         'taxable' =&gt; true,
         'gift_card' =&gt; false,
         'name' =&gt; 'Jeans',
         'variant_inventory_management' =&gt; 'shopify',
         'properties' =&gt; 
        array (
        ),
         'product_exists' =&gt; true,
         'fulfillable_quantity' =&gt; 1,
         'grams' =&gt; 0,
         'price' =&gt; '500.00',
         'total_discount' =&gt; '0.00',
         'fulfillment_status' =&gt; NULL,
         'price_set' =&gt; 
        stdClass::__set_state(array(
           'shop_money' =&gt; 
          stdClass::__set_state(array(
             'amount' =&gt; '500.00',
             'currency_code' =&gt; 'INR',
          )),
           'presentment_money' =&gt; 
          stdClass::__set_state(array(
             'amount' =&gt; '500.00',
             'currency_code' =&gt; 'INR',
          )),
        )),
         'total_discount_set' =&gt; 
        stdClass::__set_state(array(
           'shop_money' =&gt; 
          stdClass::__set_state(array(
             'amount' =&gt; '0.00',
             'currency_code' =&gt; 'INR',
          )),
           'presentment_money' =&gt; 
          stdClass::__set_state(array(
             'amount' =&gt; '0.00',
             'currency_code' =&gt; 'INR',
          )),
        )),
         'discount_allocations' =&gt; 
        array (
        ),
         'duties' =&gt; 
        array (
        ),
         'admin_graphql_api_id' =&gt; 'gid://shopify/LineItem/4852532740198',
         'tax_lines' =&gt; 
        array (
          0 =&gt; 
          stdClass::__set_state(array(
             'title' =&gt; 'IGST',
             'price' =&gt; '90.00',
             'rate' =&gt; 0.179999999999999993338661852249060757458209991455078125,
             'price_set' =&gt; 
            stdClass::__set_state(array(
               'shop_money' =&gt; 
              stdClass::__set_state(array(
                 'amount' =&gt; '90.00',
                 'currency_code' =&gt; 'INR',
              )),
               'presentment_money' =&gt; 
              stdClass::__set_state(array(
                 'amount' =&gt; '90.00',
                 'currency_code' =&gt; 'INR',
              )),
            )),
          )),
        ),
         'origin_location' =&gt; 
        stdClass::__set_state(array(
           'id' =&gt; 1939741409382,
           'country_code' =&gt; 'IN',
           'province_code' =&gt; 'PB',
           'name' =&gt; 'Shipment-tracker',
           'address1' =&gt; 'Jalandhar',
           'address2' =&gt; '',
           'city' =&gt; 'Jalandhar',
           'zip' =&gt; '144401',
        )),
      )),
    ),
     'fulfillments' =&gt; 
    array (
    ),
     'refunds' =&gt; 
    array (
    ),
     'total_tip_received' =&gt; '0.0',
     'original_total_duties_set' =&gt; NULL,
     'current_total_duties_set' =&gt; NULL,
     'admin_graphql_api_id' =&gt; 'gid://shopify/Order/2222178795622',
     'shipping_lines' =&gt; 
    array (
      0 =&gt; 
      stdClass::__set_state(array(
         'id' =&gt; 1839082045542,
         'title' =&gt; 'Standard',
         'price' =&gt; '0.00',
         'code' =&gt; 'Standard',
         'source' =&gt; 'shopify',
         'phone' =&gt; NULL,
         'requested_fulfillment_service_id' =&gt; NULL,
         'delivery_category' =&gt; NULL,
         'carrier_identifier' =&gt; NULL,
         'discounted_price' =&gt; '0.00',
         'price_set' =&gt; 
        stdClass::__set_state(array(
           'shop_money' =&gt; 
          stdClass::__set_state(array(
             'amount' =&gt; '0.00',
             'currency_code' =&gt; 'INR',
          )),
           'presentment_money' =&gt; 
          stdClass::__set_state(array(
             'amount' =&gt; '0.00',
             'currency_code' =&gt; 'INR',
          )),
        )),
         'discounted_price_set' =&gt; 
        stdClass::__set_state(array(
           'shop_money' =&gt; 
          stdClass::__set_state(array(
             'amount' =&gt; '0.00',
             'currency_code' =&gt; 'INR',
          )),
           'presentment_money' =&gt; 
          stdClass::__set_state(array(
             'amount' =&gt; '0.00',
             'currency_code' =&gt; 'INR',
          )),
        )),
         'discount_allocations' =&gt; 
        array (
        ),
         'tax_lines' =&gt; 
        array (
        ),
      )),
    ),
     'billing_address' =&gt; 
    stdClass::__set_state(array(
       'first_name' =&gt; 'Jimmy',
       'address1' =&gt; 'near ravidas mandir,nawashehar road Village Garha',
       'phone' =&gt; NULL,
       'city' =&gt; 'PHILLAUR',
       'zip' =&gt; '144410',
       'province' =&gt; 'Punjab',
       'country' =&gt; 'India',
       'last_name' =&gt; 'Kaler',
       'address2' =&gt; 'wuhawosu',
       'company' =&gt; NULL,
       'latitude' =&gt; NULL,
       'longitude' =&gt; NULL,
       'name' =&gt; 'Jimmy Kaler',
       'country_code' =&gt; 'IN',
       'province_code' =&gt; 'PB',
    )),
     'shipping_address' =&gt; 
    stdClass::__set_state(array(
       'first_name' =&gt; 'Jimmy',
       'address1' =&gt; 'near ravidas mandir,nawashehar road Village Garha',
       'phone' =&gt; NULL,
       'city' =&gt; 'PHILLAUR',
       'zip' =&gt; '144410',
       'province' =&gt; 'Punjab',
       'country' =&gt; 'India',
       'last_name' =&gt; 'Kaler',
       'address2' =&gt; 'wuhawosu',
       'company' =&gt; NULL,
       'latitude' =&gt; NULL,
       'longitude' =&gt; NULL,
       'name' =&gt; 'Jimmy Kaler',
       'country_code' =&gt; 'IN',
       'province_code' =&gt; 'PB',
    )),
     'client_details' =&gt; 
    stdClass::__set_state(array(
       'browser_ip' =&gt; '117.203.132.178',
       'accept_language' =&gt; 'en-US,en;q=0.9,es;q=0.8',
       'user_agent' =&gt; 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36',
       'session_hash' =&gt; NULL,
       'browser_width' =&gt; 1349,
       'browser_height' =&gt; 657,
    )),
     'payment_details' =&gt; 
    stdClass::__set_state(array(
       'credit_card_bin' =&gt; '1',
       'avs_result_code' =&gt; NULL,
       'cvv_result_code' =&gt; NULL,
       'credit_card_number' =&gt; '•••• •••• •••• 1',
       'credit_card_company' =&gt; 'Bogus',
    )),
     'customer' =&gt; 
    stdClass::__set_state(array(
       'id' =&gt; 3003356774502,
       'email' =&gt; 'jmmkaler@gmail.com',
       'accepts_marketing' =&gt; true,
       'created_at' =&gt; '2020-04-24T17:09:53-04:00',
       'updated_at' =&gt; '2020-05-09T16:39:11-04:00',
       'first_name' =&gt; 'Jimmy',
       'last_name' =&gt; 'Kaler',
       'orders_count' =&gt; 0,
       'state' =&gt; 'disabled',
       'total_spent' =&gt; '0.00',
       'last_order_id' =&gt; NULL,
       'note' =&gt; NULL,
       'verified_email' =&gt; true,
       'multipass_identifier' =&gt; NULL,
       'tax_exempt' =&gt; false,
       'phone' =&gt; NULL,
       'tags' =&gt; 'password page, prospect',
       'last_order_name' =&gt; NULL,
       'currency' =&gt; 'INR',
       'accepts_marketing_updated_at' =&gt; '2020-04-24T17:09:53-04:00',
       'marketing_opt_in_level' =&gt; 'single_opt_in',
       'admin_graphql_api_id' =&gt; 'gid://shopify/Customer/3003356774502',
       'default_address' =&gt; 
      stdClass::__set_state(array(
         'id' =&gt; 3312853745766,
         'customer_id' =&gt; 3003356774502,
         'first_name' =&gt; 'Jimmy',
         'last_name' =&gt; 'Kaler',
         'company' =&gt; NULL,
         'address1' =&gt; 'near ravidas mandir,nawashehar road Village Garha',
         'address2' =&gt; 'wuhawosu',
         'city' =&gt; 'PHILLAUR',
         'province' =&gt; 'Punjab',
         'country' =&gt; 'India',
         'zip' =&gt; '144410',
         'phone' =&gt; NULL,
         'name' =&gt; 'Jimmy Kaler',
         'province_code' =&gt; 'PB',
         'country_code' =&gt; 'IN',
         'country_name' =&gt; 'India',
         'default' =&gt; true,
      )),
    )),
  ))
  </code></pre>