Skip to content

Releases: nilportugues/php-api-transformer

1.3.0

24 Nov 20:31

Choose a tag to compare

  • Transformer allows get Mappings by Class Transformer::getMappingByClassName and by Alias Transformer::getMappingByAlias
  • MappingFactory now reads the properties for mapped classes. See MappingFactory::setProperties.
  • Mapping class now has properties set and allows getting them using Mapping::setProperties and Mapping::getProperties
  • Enhanced documentation.
  • Tests for all new features.

1.2.4

16 Nov 23:48

Choose a tag to compare

  • (FIX) Casting to string removed for resourceUrl
  • (FIX) getResponseAdditionalLinks should not output URLs that could not be generated

1.2.3

14 Nov 16:48

Choose a tag to compare

  • Mappings were not accessible.

1.2.2

02 Nov 22:32

Choose a tag to compare

  • Added backslash to PHP internal functions

1.2.1

20 Oct 19:21

Choose a tag to compare

  • JsonApiMapping was missing "extends ApiMapping". Silly bug...

1.2.0

20 Oct 18:54

Choose a tag to compare

  • Removed the alias check. Not adding anything, but complicating serialization use cases

1.1.3

20 Oct 06:47

Choose a tag to compare

  • More verbosity for same alias exception

1.1.2

16 Oct 20:34

Choose a tag to compare

  • self:: methods changed to static:: to allow overiding.

1.1.1

16 Oct 19:41

Choose a tag to compare

  • MappingFactory::getClassProperties from private to protected.

1.1.0

16 Oct 18:04

Choose a tag to compare

  • MappingFactory now supports classes implementing the ApiMapping interface to be used as configuration.
  • Mapper changed to reflect these changes.
  • Strict mapping checking classes properties affects existing mappings. Properties must be explicitly declared in each mapped class. This will break framework integration plugins too (eg: Laravel Eloquent models).