Self signed certificate issue with WooCommerce rest api connection

You can disable the ssl verification by using 'verify_ssl' => false. So in your code you should change:

[
      'wp_api' => true,
      'version' => 'wc/v3',
      'sslverify' => false,
  ]

to:

 [
        'wp_api' => true,
        'version' => 'wc/v3',
        'verify_ssl' => false,
    ]

Then you don’t need to change any source code.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)