A possible response format for APIs is in a PHP serialized string. This isn't good for many reasons:
We could deprecate it for 3.0 and remove it later.
Sounds good to me too.
Hi @braekling - FYI: we may deprecate serialised PHP api output in Piwik 3.0.0. maybe it would be possible to plan ahead of this change, and make WP-Piwik use another API format eg. JSON? (IIRC wp-piwik is using php serialised api)
FYI: WP-Piwik is using JSON now.
Note: search in codebase for
format=php for uses in core that should be changed (also two UI tests: CoreUpdaterDb and ReportExporting)
Moving tentatively to Piwik 4.0.0 (PHP format export causes some issues such as https://github.com/piwik/piwik/issues/11108 )
Maybe we could announce the PHP format deprecation in Piwik 4 and remove it completely in Piwik 5
@mattab I reckon it should be fine to directly remove as part of Matomo 4. It be rarely used I suppose and it's quite easy to migrate to JSON for example. (all you need to do is basically a
json_decode() on the response I reckon)
since it's so easy to change to json instead, sounds good to remove the PHP format in Matomo 4 directly :+1: