PHP code example of pet-store / petstore-sdk
1. Go to this page and download the library: Download pet-store/petstore-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pet-store / petstore-sdk example snippets
$client = SwaggerPetstoreOpenAPI30ClientBuilder::init()
->customHeaderAuthenticationCredentials(
CustomHeaderAuthenticationCredentialsBuilder::init(
'api_key'
)
)
->build();