Is Connected

Anytime you need to check if Xero is connected, you can call the ->isConnected method. The method returns a boolean.

You can check if your application is connected to Xero:

if (Xero::isConnected()) {
    // Connected to Xero
} else {
    // Not connected to Xero
}

Copyright © 2006 - 2025 DC Blog - All rights reserved.