Skip to content

Difference between this package and data-transfer-object package #18

Answered by rubenvanassche
kdevan asked this question in Q&A
Discussion options

You must be logged in to vote

Like all the Spatie packages this package originates from one of our projects. Initially this actually wasn't a data package but only a resource object that would replace the Laravel Api Resources. We needed a custom implementation because we use the Typescript transformer package to convert these resources into Typescript definitions.

Initially we actually used the spatie/data-transfer-object package for these resources. But then we fell in love with PHP 8's promoted properties. At that point the requirement for the spatie/data-transfer-object was dropped because we could just create object fairly easy! Then @brendt (the creator of the spatie/data-transfer-object) suggested the idea to v…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@brendt
Comment options

@mauriciovillam
Comment options

Answer selected by freekmurze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants