whiteoctober / Pagerfanta

Pagination for PHP.
Other
1.59k stars 2 forks source link

Implement JsonSerializable #269

Closed JarJak closed 5 years ago

JarJak commented 5 years ago

It allows Pagerfanta instances to be JSON-encoded:

json_encode($pagerfanta);

See: https://github.com/whiteoctober/WhiteOctoberPagerfantaBundle/issues/165 https://github.com/willdurand/Hateoas/issues/128

sampart commented 5 years ago

Nice addition. Thanks, @JarJak. Do you need a release making for this?

stof commented 5 years ago

this still expect that items of the page are also json serializable though