Skip to content

Releases: timirey/xapi-php

6.0.3

30 Jul 13:21
de12315
Compare
Choose a tag to compare

What's Changed

  • Remove isConnected() from SocketConnection::class.
  • Updated GitHub workflows for better checks.

Full Changelog: 6.0.2...6.0.3

6.0.2

30 Jul 12:59
ce904ec
Compare
Choose a tag to compare

What's Changed

  • Catch exceptions from stream_socket_client().

Full Changelog: 6.0.1...6.0.2

6.0.1

30 Jul 12:53
4a3bbdf
Compare
Choose a tag to compare

What's Changed

  • Fixed SocketConnection exception messages to be more informative.

Full Changelog: 6.0.0...6.0.1

6.0.0

30 Jul 12:21
cfa26bb
Compare
Choose a tag to compare

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 to SubscribeTickPrices), merging Client and StreamClient 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 and StreamClient.

Full Changelog: 5.0.0...6.0.0

5.0.0

17 Jul 09:26
738fcea
Compare
Choose a tag to compare

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

16 Jul 18:34
0cb5689
Compare
Choose a tag to compare

What's Changed

  • Add feof check on stream socket.

Full Changelog: 4.0.0...4.0.1

4.0.0

16 Jul 18:14
dbfe987
Compare
Choose a tag to compare

What's Changed

  • Drop minimum version to php 8.1.

Full Changelog: 3.0.0...4.0.0

3.0.0

16 Jul 13:23
a1f542c
Compare
Choose a tag to compare

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

16 Jul 13:18
Compare
Choose a tag to compare

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

2.0.0-rc2

16 Jul 12:49
Compare
Choose a tag to compare

What's Changed

  • Remove websocket dependency.

Full Changelog: 2.0.0-rc...2.0.0-rc2