Releases: timirey/xapi-php
Releases · timirey/xapi-php
6.0.3
6.0.2
6.0.1
What's Changed
- Fixed
SocketConnection
exception messages to be more informative.
Full Changelog: 6.0.0...6.0.1
6.0.0
What's Changed
Added
- PHPStan Integration: Added phpstan to
composer.json
and integrated it into workflows alongside Pest for enhanced static analysis.
Changed
- Subscription Process Simplification: Implemented a single function to handle subscription to the price stream, accepting necessary parameters to reduce code duplication.
- Connection Type Handling: Merged connection types into a single process, passing the connection type as a string to distinguish between DEMO and REAL environments.
- Client Creation and Authentication: Merged client creation and authentication processes, ensuring automatic authorization upon client creation.
- Method Renaming: Renamed methods for clarity and purpose (e.g.,
GetTickPrices
toSubscribeTickPrices
), mergingClient
andStreamClient
to avoid multiple object creations. - Static Dependency Removal: Removed dependency on
new static()
, making methods non-dependent on constructor changes or final. - PHP 8.3 Minimum Support: Updated the codebase to support PHP 8.3 as a minimum requirement.
- PHPDocs Refinement: Updated and reduced PHPDoc sizes, using
@inheritdoc
where applicable. - Readonly Responses: Made response objects readonly.
- Class Finalization: Marked appropriate classes as
final
. - CamelCase Properties: Ensured class properties use camelCase instead of snake_case.
- Heavier Types: Utilized heavier types in the codebase.
- AbstractResponse Refactor: Refactored
AbstractResponse
. - Override Attribute: Added
override
attribute where required. - Interface Creation: Created interfaces for connection, response, and payload.
- Constructor Logic Refactor: Freed up constructors, moving logic to methods.
- Payload Parameter Refactor: Refactored
$this->parameters
in payloads. - Response Data Refactor: Refactored
$response['returnData']
in responses. - PHPDocs Update: Rewound PHPDocs for clarity.
- README.md Update: Updated
README.md
with new commands and an updated error section.
Removed
- Unnecessary Object Creations: Removed redundant object creation by merging
Client
andStreamClient
.
Full Changelog: 5.0.0...6.0.0
5.0.0
What's Changed
- Changed the way client inits,
$userId
and$password
are directly sent in the login payload.
Full Changelog: 4.0.1...5.0.0
4.0.1
4.0.0
3.0.0
What's Changed
- Add minimum support of 8.3 PHP.
- Use json_validate() when parsing response.
Full Changelog: 2.0.1...3.0.0
2.0.1
What's Changed
- If we receive multiple json at once - we yield them separately.
Issue: https://github.com/timirey/xapi-php/issues/32
Full Changelog: 2.0.0...2.0.1