Cause: The error is thrown because we try to instantiate a class which is not defined in our index file, This class is defined in the dependences for google client APIs.
Solution: If the class dependence is defined anywhere in your project import it to your php file and then use it, The common method is to use a ``` require_once |``` but in this project the class is managed by composer and installed by it we use an autoloader file that will load the classes and namespaces for you. Use in this format ```require_once "/path_to_the_autoloader" |```
Feel free to contact me or visit my website www.pestscode.com will be happy to help you. Also you can share errors if the tutorials not working at any time because this is my Job. Support me to subscribe to my YouTube channel.
How to generate Credentials for Google APIs call. • How to generate credentials for Googl...
How to download source code from my video tutorials • How to download source code in my web...
Upgrade Microsoft Office in lest than 5 seconds • Upgrade from Microsoft office 2019 t...