PHPackages                             zahra-mapping/rose-test-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. zahra-mapping/rose-test-sdk

ActiveLibrary[Testing &amp; Quality](/categories/testing)

zahra-mapping/rose-test-sdk
===========================

Eiusmod facilis quis

0.1.5(9mo ago)00MITPHPPHP ^7.2 || ^8.0

Since Sep 12Pushed 9mo agoCompare

[ Source](https://github.com/ZahraN444/rose-test-php-sdk)[ Packagist](https://packagist.org/packages/zahra-mapping/rose-test-sdk)[ Docs](https://www.medika.tv)[ RSS](/packages/zahra-mapping-rose-test-sdk/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (6)Versions (6)Used By (0)

Getting Started with Swagger Petstore
=====================================

[](#getting-started-with-swagger-petstore)

Introduction
------------

[](#introduction)

This is a sample server Petstore server. You can find out more about Swagger at  or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.

Find out more about Swagger:

Install the Package
-------------------

[](#install-the-package)

Run the following command to install the package and automatically add the dependency to your composer.json file:

```
composer require "zahra-mapping/rose-test-sdk:0.1.5"
```

Or add it to the composer.json file manually as given below:

```
"require": {
    "zahra-mapping/rose-test-sdk": "0.1.5"
}
```

You can also view the package at:

Test the SDK
------------

[](#test-the-sdk)

Unit tests in this SDK can be run using PHPUnit.

1. First install the dependencies using composer including the `require-dev` dependencies.
2. Run `vendor\bin\phpunit --verbose` from commandline to execute tests. If you have installed PHPUnit globally, run tests using `phpunit --verbose` instead.

You can change the PHPUnit test configuration in the `phpunit.xml` file.

Initialize the API Client
-------------------------

[](#initialize-the-api-client)

***Note:*** Documentation for the client can be found [here.](https://www.github.com/ZahraN444/rose-test-php-sdk/tree/0.1.5/doc/client.md)

The following parameters are configurable for the API Client:

ParameterTypeDescriptiontestHeader`string`This is a test header
*Default*: `'TestHeaderDefaultValue'`environment`Environment`The API environment.
 **Default: `Environment.PRODUCTION`**timeout`int`Timeout for API calls in seconds.
*Default*: `0`enableRetries`bool`Whether to enable retries and backoff feature.
*Default*: `false`numberOfRetries`int`The number of retries to make.
*Default*: `0`retryInterval`float`The retry time interval between the endpoint calls.
*Default*: `1`backOffFactor`float`Exponential backoff factor to increase interval between retries.
*Default*: `2`maximumRetryWaitTime`int`The maximum wait time in seconds for overall retrying requests.
*Default*: `0`retryOnTimeout`bool`Whether to retry on request timeout.
*Default*: `true`httpStatusCodesToRetry`array`Http status codes to retry against.
*Default*: `408, 413, 429, 500, 502, 503, 504, 521, 522, 524`httpMethodsToRetry`array`Http methods to retry against.
*Default*: `'GET', 'PUT'`proxyConfiguration[`ProxyConfigurationBuilder`](https://www.github.com/ZahraN444/rose-test-php-sdk/tree/0.1.5/doc/proxy-configuration-builder.md)Represents the proxy configurations for API callsapiKeyCredentials[`ApiKeyCredentials`](https://www.github.com/ZahraN444/rose-test-php-sdk/tree/0.1.5/doc/auth/custom-header-signature.md)The Credentials Setter for Custom Header SignaturehttpBasicCredentials[`HttpBasicCredentials`](https://www.github.com/ZahraN444/rose-test-php-sdk/tree/0.1.5/doc/auth/basic-authentication.md)The Credentials Setter for Basic AuthenticationpetstoreAuthCredentials[`PetstoreAuthCredentials`](https://www.github.com/ZahraN444/rose-test-php-sdk/tree/0.1.5/doc/auth/oauth-2-implicit-grant.md)The Credentials Setter for OAuth 2 Implicit GrantThe API client can be initialized as follows:

```
use SwaggerPetstoreLib\Environment;
use SwaggerPetstoreLib\Authentication\ApiKeyCredentialsBuilder;
use SwaggerPetstoreLib\Authentication\HttpBasicCredentialsBuilder;
use SwaggerPetstoreLib\Authentication\PetstoreAuthCredentialsBuilder;
use SwaggerPetstoreLib\Models\OAuthScopePetstoreAuthEnum;
use SwaggerPetstoreLib\SwaggerPetstoreClientBuilder;

$client = SwaggerPetstoreClientBuilder::init()
    ->apiKeyCredentials(
        ApiKeyCredentialsBuilder::init(
            'api_key'
        )
    )
    ->httpBasicCredentials(
        HttpBasicCredentialsBuilder::init(
            'username',
            'passwprd'
        )
    )
    ->petstoreAuthCredentials(
        PetstoreAuthCredentialsBuilder::init(
            'OAuthClientId',
            'OAuthRedirectUri'
        )
            ->oAuthScopes(
                [
                    OAuthScopePetstoreAuthEnum::READPETS,
                    OAuthScopePetstoreAuthEnum::WRITEPETS
                ]
            )
    )
    ->testHeader('TestHeaderDefaultValue')
    ->environment(Environment::PRODUCTION)
    ->build();
```

Environments
------------

[](#environments)

The SDK can be configured to use a different environment for making API calls. Available environments are:

### Fields

[](#fields)

NameDescriptionproduction**Default**environment2-environment3-Authorization
-------------

[](#authorization)

This API uses the following authentication schemes.

- [`api_key (Custom Header Signature)`](https://www.github.com/ZahraN444/rose-test-php-sdk/tree/0.1.5/doc/auth/custom-header-signature.md)
- [`httpBasic (Basic Authentication)`](https://www.github.com/ZahraN444/rose-test-php-sdk/tree/0.1.5/doc/auth/basic-authentication.md)
- [`petstore_auth (OAuth 2 Implicit Grant)`](https://www.github.com/ZahraN444/rose-test-php-sdk/tree/0.1.5/doc/auth/oauth-2-implicit-grant.md)

List of APIs
------------

[](#list-of-apis)

- [Pet](https://www.github.com/ZahraN444/rose-test-php-sdk/tree/0.1.5/doc/controllers/pet.md)
- [Store](https://www.github.com/ZahraN444/rose-test-php-sdk/tree/0.1.5/doc/controllers/store.md)
- [User](https://www.github.com/ZahraN444/rose-test-php-sdk/tree/0.1.5/doc/controllers/user.md)

SDK Infrastructure
------------------

[](#sdk-infrastructure)

### Configuration

[](#configuration)

- [ProxyConfigurationBuilder](https://www.github.com/ZahraN444/rose-test-php-sdk/tree/0.1.5/doc/proxy-configuration-builder.md)

### HTTP

[](#http)

- [HttpRequest](https://www.github.com/ZahraN444/rose-test-php-sdk/tree/0.1.5/doc/http-request.md)
- [HttpResponse](https://www.github.com/ZahraN444/rose-test-php-sdk/tree/0.1.5/doc/http-response.md)

### Utilities

[](#utilities)

- [FileWrapper](https://www.github.com/ZahraN444/rose-test-php-sdk/tree/0.1.5/doc/file-wrapper.md)
- [ApiException](https://www.github.com/ZahraN444/rose-test-php-sdk/tree/0.1.5/doc/api-exception.md)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance56

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

5

Last Release

289d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/776fcd735fca71e37457d5222a45a6e61890bfd8fb12852f7fb79725834c1fe4?d=identicon)[Zahra942](/maintainers/Zahra942)

---

Top Contributors

[![ZahraN444](https://avatars.githubusercontent.com/u/156054736?v=4)](https://github.com/ZahraN444 "ZahraN444 (6 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/zahra-mapping-rose-test-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/zahra-mapping-rose-test-sdk/health.svg)](https://phpackages.com/packages/zahra-mapping-rose-test-sdk)
```

###  Alternatives

[square/square

Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.

773.9M29](/packages/square-square)[paypal/paypal-server-sdk

PayPal's SDK for interacting with the REST APIs

62833.4k13](/packages/paypal-paypal-server-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
