-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught Error: Class 'SquareClient' not found #3
Comments
The class definitely exists: https://github.com/square/square-php-sdk/blob/master/src/SquareClient.php. When I install via composer, it finds the SquareClient successfully. Are you saying in your repo you downloaded, you do not see this file ( |
Closing due to lack of response. Please feel free to open again if you would like to continue the conversation. |
Error was with php 7.0. It works perfectly with php 7.4. |
@Swapnilchavan18 what about 7.2? |
I directly migrated from 7.0 to 7.4 , but as readme says minimum requirement of PHP 7.1+, so php 7.2 should be ok. Are you using with composer? |
Yes, i am using composer.
It worked now.
Don't know what was the problem but I completely removed the vendor
directory and downloaded square again then it worked fine.
not sure why the `composer update` didn't work.
…On Fri, 7 Aug 2020, 11:43 p.m. Swapnilchavan18, ***@***.***> wrote:
I directly migrated from 7.0 to 7.4 , but as readme says minimum
requirement of PHP 7.1+, so php 7.2 should be ok. Are you using with
composer?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALSNUQ2UHXODCKSIKUZWSMLR7Q6CXANCNFSM4N5GZBOA>
.
|
I started on working with new php sdk and it gives me an error. I checked code inside sdk and there is no class 'SquareClient', but other classes(LocationsApi,Environment) are found. What I am doing wrong? Is this sdk production ready?
The text was updated successfully, but these errors were encountered: