I am not able to use it in core php

I am not able to use it in core php , please tell me how can i use in core php

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

PHP SDK
Set up your SDK for a PHP Project
Stay Current with the PHP SDK Version

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

To use the Square PHP SDK in a core PHP project, you need to follow these steps:

  1. Install the Square PHP SDK: You can use Composer, a dependency management tool in PHP. Run the command composer require square/square in your project directory.

  2. Create a Square client: You need to instantiate a SquareClient object and initialize it with the appropriate environment and corresponding access token.

  3. Making API calls: You can now make API calls using the Square PHP SDK. For example, to call a Square API, you can use the client object you created.

  4. Handle the responses: After making an API call, you will receive a response that you can handle according to your application’s logic.

Remember, you should not hardcode your access token or any other sensitive information directly in your code. Instead, consider using environment variables or another secure method to store this information.

This answer was reviewed by @Bryan-Square.