I am new and was trying to study API using slim PHP, recently I was introduced to Postman and found out you can test API prior to code which was interesting, and then I got more deep into it and found Oauth 2.0, now the problem is in postman. I can get the bearer token easily and explore some API

but I can't find any resources showing me how can I implement this on my slim PHP file. by the way the project that I am testing is text. I didn't know about Postman before but this API doc introduced it and then I tried some tutorial on YouTube I got the authorization but that's in postman so how will I implement on slim-php?
I am clueless as I don't see any sample so I couldn't write any codes based on this. It looks like OAuth 2.0 is quite new.
OAuth 2.0 is a protocol that allows third-party applications to obtain limited access to an HTTP service. The Client Credentials grant is a simplified flow that's appropriate for machine-to-machine authentication where the client is the resource owner.
To implement the OAuth 2.0 Client Credentials Grant in Slim PHP, follow these steps:
Run:
Create the tables
Use the following schema to create the default database:
https://bshaffer.github.io/oauth2-server-php-docs/cookbook/
Run the following SQL to create an OAuth Client:
Set up the OAuth 2.0 server
Configure the OAuth PDO connection:
Add endpoints:
The client will request an access token from this endpoint.
This is a protected resource that requires an access token for access.
Send a POST Request (using Postman) to generate a token:
POST http://localhost/token
The result:
Send a GET request to the protected endpoint with the
Authorizationheader:Response: