have you tried moving this code outside of the class:

https://github.com/wolfderby/gmailTu...dex.php#L9-L12

something like:

PHP Code:
<?php
require DIR_FS_CATALOG 'includes/classes/vendor/autoload.php';
include 
"connection.php";

class 
Yoyo {

    public function 
__construct() {
        
    }

    public function 
go() {
not sure where the connection.php file is; but i think you get the idea....