PluginProbe ʕ •ᴥ•ʔ
WooCommerce Square / 5.4.2
WooCommerce Square v5.4.2
5.4.3 5.4.2 5.4.1 5.4.0 trunk 1.0.25 1.0.26 1.0.27 1.0.28 1.0.29 1.0.30 1.0.31 1.0.32 1.0.33 1.0.34 1.0.35 1.0.36 1.0.37 1.0.38 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.7.0 2.8.0 2.9.0 2.9.1 3.0.0 3.0.1 3.0.2 3.0.3 3.1.0 3.2.0 3.3.0 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.6.1 3.7.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.9.0 4.0.0 4.1.0 4.2.0 4.2.1 4.2.2 4.2.3 4.3.0 4.3.1 4.3.2 4.4.0 4.4.1 4.4.2 4.5.0 4.5.1 4.5.2 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.7.0 4.7.1 4.7.2 4.7.3 4.7.4 4.8.0 4.8.1 4.8.2 4.8.3 4.8.4 4.8.5 4.8.6 4.8.7 4.8.8 4.9.0 4.9.1 4.9.2 4.9.3 4.9.4 4.9.5 4.9.6 4.9.7 4.9.8 4.9.9 5.0.0 5.0.1 5.1.0 5.1.1 5.1.2 5.2.0 5.3.0 5.3.1 5.3.2 5.3.3
woocommerce-square / vendor / apimatic / core / README.md
woocommerce-square / vendor / apimatic / core Last commit date
src 1 year ago CONTRIBUTING.md 1 year ago LICENSE 2 years ago README.md 1 year ago composer.json 1 year ago composer.lock 1 year ago phpcs-ruleset.xml 3 years ago phpunit.xml 2 years ago
README.md
87 lines
1 # APIMatic Core Library for PHP
2
3 [![Version][packagist-version]][packagist-url]
4 [![Tests][test-badge]][test-url]
5 [](https://codeclimate.com/github/apimatic/core-lib-php/test_coverage![Test Coverage](https://api.codeclimate.com/v1/badges/90aa03dca1ef28d9cef3/test_coverage)](https://codeclimate.com/github/apimatic/core-lib-php/test_coverage](https://codeclimate.com/github/apimatic/core-lib-php/test_coverage)
6 [](https://codeclimate.com/github/apimatic/core-lib-php/maintainability![Maintainability](https://api.codeclimate.com/v1/badges/90aa03dca1ef28d9cef3/maintainability)](https://codeclimate.com/github/apimatic/core-lib-php/maintainability](https://codeclimate.com/github/apimatic/core-lib-php/maintainability)
7 [![Licence][license-badge]][license-url]
8
9
10 ## Introduction
11
12 Core logic and the utilities for the Apimatic's PHP SDK.
13
14 ## Supported PHP Versions
15 - PHP 7.2
16 - PHP 7.4
17 - PHP 8.0
18 - PHP 8.1
19 - PHP 8.2
20 - PHP 8.3
21 - PHP 8.4
22
23 ## Install the Package
24
25 Run the following command to install the package and automatically add the dependency to your composer.json file:
26
27 ```php
28 composer require "apimatic/core"
29 ```
30
31 ## Request
32 | Name | Description |
33 |-------------------------------------------------------------------------------|-----------------------------------------------------------------------|
34 | [](src/Request/Parameters/AdditionalFormParams.php`AdditionalFormParams`](src/Request/Parameters/AdditionalFormParams.php](src/Request/Parameters/AdditionalFormParams.php) | Used to add additional form params to a request |
35 | [](src/Request/Parameters/AdditionalHeaderParams.php`AdditionalHeaderParams`](src/Request/Parameters/AdditionalHeaderParams.php](src/Request/Parameters/AdditionalHeaderParams.php) | Used to add additional header params to a request |
36 | [](src/Request/Parameters/AdditionalQueryParams.php`AdditionalQueryParams`](src/Request/Parameters/AdditionalQueryParams.php](src/Request/Parameters/AdditionalQueryParams.php) | Used to add additional query params to a request |
37 | [](src/Request/Parameters/BodyParam.php`BodyParam`](src/Request/Parameters/BodyParam.php](src/Request/Parameters/BodyParam.php) | Body parameter class |
38 | [](src/Request/Parameters/FormParam.php`FormParam`](src/Request/Parameters/FormParam.php](src/Request/Parameters/FormParam.php) | Form parameter class |
39 | [](src/Request/Parameters/HeaderParam.php`HeaderParam`](src/Request/Parameters/HeaderParam.php](src/Request/Parameters/HeaderParam.php) | Header parameter class |
40 | [](src/Request/Parameters/QueryParam.php`QueryParam`](src/Request/Parameters/QueryParam.php](src/Request/Parameters/QueryParam.php) | Query parameter class |
41 | [](src/Request/Parameters/TemplateParam.php`TemplateParam`](src/Request/Parameters/TemplateParam.php](src/Request/Parameters/TemplateParam.php) | Template parameter class |
42 | [](src/Request/RequestBuilder.php`RequestBuilder`](src/Request/RequestBuilder.php](src/Request/RequestBuilder.php) | Used to instantiate a new Request object with the properties provided |
43 | [](src/Request/Request.php`Request`](src/Request/Request.php](src/Request/Request.php) | Request class for an API call |
44
45 ## Response
46 | Name | Description |
47 |-----------------------------------------------------------------------------|---------------------------------------------------------------------------------------|
48 | [](src/Response/Types/DeserializableType.php`DeserializableType`](src/Response/Types/DeserializableType.php](src/Response/Types/DeserializableType.php) | Type handler used to deserialize Enums and DateTime |
49 | [](src/Response/Types/ErrorType.php`ErrorType`](src/Response/Types/ErrorType.php](src/Response/Types/ErrorType.php) | Type handler used to throw exceptions from responses |
50 | [](src/Response/Types/ResponseMultiType.php`ResponseMultiType`](src/Response/Types/ResponseMultiType.php](src/Response/Types/ResponseMultiType.php) | Maps a group of types to response body |
51 | [](src/Response/Types/ResponseType.php`ResponseType`](src/Response/Types/ResponseType.php](src/Response/Types/ResponseType.php) | Maps a model to response body |
52 | [](src/Response/ResponseError.php`ResponseError`](src/Response/ResponseError.php](src/Response/ResponseError.php) | Group of error types for response |
53 | [](src/Response/ResponseHandler.php`ResponseHandler`](src/Response/ResponseHandler.php](src/Response/ResponseHandler.php) | Response handler for an API call that holds all the above response handling features |
54 | [](src/Response/Context.php`Context`](src/Response/Context.php](src/Response/Context.php) | Holds the current context i.e. the current request, response and other needed details |
55
56 ## Logger
57 | Name | Description |
58 |---------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------|
59 | [](src/Logger/ApiLogger.php`ApiLogger`](src/Logger/ApiLogger.php](src/Logger/ApiLogger.php) | Provides implementation for logging API requests and responses |
60 | [](src/Logger/NullApiLogger.php`NullApiLogger`](src/Logger/NullApiLogger.php](src/Logger/NullApiLogger.php) | Provides the default implementation for ApiLogger when no logging configuration is provided |
61 | [](src/Logger/ConsoleLogger.php`ConsoleLogger`](src/Logger/ConsoleLogger.php](src/Logger/ConsoleLogger.php) | A LoggerInterface implementation that log messages on console |
62 | [](src/Logger/LoggerConstants.php`LoggerConstants`](src/Logger/LoggerConstants.php](src/Logger/LoggerConstants.php) | Holds constants like NON_SENSITIVE_HEADERS, etc. |
63 | [](src/Logger/Configuration/BaseHttpLoggingConfiguration.php`BaseHttpLoggingConfiguration`](src/Logger/Configuration/BaseHttpLoggingConfiguration.php](src/Logger/Configuration/BaseHttpLoggingConfiguration.php) | Common configurations shared by request and response logging configurations |
64 | [](src/Logger/Configuration/LoggingConfiguration.php`LoggingConfiguration`](src/Logger/Configuration/LoggingConfiguration.php](src/Logger/Configuration/LoggingConfiguration.php) | Provides client's logging configurations |
65 | [](src/Logger/Configuration/RequestConfiguration.php`RequestConfiguration`](src/Logger/Configuration/RequestConfiguration.php](src/Logger/Configuration/RequestConfiguration.php) | Provides request's logging configurations |
66 | [](src/Logger/Configuration/ResponseConfiguration.php`ResponseConfiguration`](src/Logger/Configuration/ResponseConfiguration.php](src/Logger/Configuration/ResponseConfiguration.php) | Provides response's logging configurations |
67
68 ## TestCase
69 | Name | Description |
70 |--------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
71 | [](src/TestCase/BodyMatchers/KeysAndValuesBodyMatcher.php`KeysAndValuesBodyMatcher`](src/TestCase/BodyMatchers/KeysAndValuesBodyMatcher.php](src/TestCase/BodyMatchers/KeysAndValuesBodyMatcher.php) | Matches actual and expected body, considering both the keys and values |
72 | [](src/TestCase/BodyMatchers/KeysBodyMatcher.php`KeysBodyMatcher`](src/TestCase/BodyMatchers/KeysBodyMatcher.php](src/TestCase/BodyMatchers/KeysBodyMatcher.php) | Matches actual and expected body, considering just the keys |
73 | [](src/TestCase/BodyMatchers/NativeBodyMatcher.php`NativeBodyMatcher`](src/TestCase/BodyMatchers/NativeBodyMatcher.php](src/TestCase/BodyMatchers/NativeBodyMatcher.php) | A body matcher for native values like string, int etc |
74 | [](src/TestCase/BodyMatchers/RawBodyMatcher.php`RawBodyMatcher`](src/TestCase/BodyMatchers/RawBodyMatcher.php](src/TestCase/BodyMatchers/RawBodyMatcher.php) | Exactly matches the body received to expected body |
75 | [](src/TestCase/HeadersMatcher.php`HeadersMatcher`](src/TestCase/HeadersMatcher.php](src/TestCase/HeadersMatcher.php) | Matches the headers received and the headers expected |
76 | [](src/TestCase/StatusCodeMatcher.php`StatusCodeMatcher`](src/TestCase/StatusCodeMatcher.php](src/TestCase/StatusCodeMatcher.php) | Matches the HTTP status codes received to the expected ones |
77 | [](core-lib-php/src/TestCase/CoreTestCase.php`CoreTestCase`](core-lib-php/src/TestCase/CoreTestCase.php](core-lib-php/src/TestCase/CoreTestCase.php) | Main class for a test case that performs assertions w/ all the above matchers |
78
79
80 [packagist-url]: https://packagist.org/packages/apimatic/core
81 [packagist-version]: https://img.shields.io/packagist/v/apimatic/core.svg?style=flat
82 [packagist-downloads]: https://img.shields.io/packagist/dm/apimatic/core.svg?style=flat
83 [test-badge]: https://github.com/apimatic/core-lib-php/actions/workflows/test.yml/badge.svg
84 [test-url]: https://github.com/apimatic/core-lib-php/actions/workflows/test.yml
85 [license-badge]: https://img.shields.io/badge/licence-MIT-blue
86 [license-url]: LICENSE
87