tinify-php
tinify-php copied to clipboard
Offer createKey() to register a new API key.
Mm.....This commits are too long to read. It should squash them to the less commits when merging this PR.
Would love to see this in production! Also it would help to have some PHP Docs which state clearly which return values are possible.
I got two quick questions:
- Which value to expect when the account is using a paid plan and im calling
Tinify\remainingCredits()? - Is
paidthe return value ofTinify\payingState()when the account is using a paid plan?
Hi there!
Once we have implemented the same logic for the other libraries we will put this into production and update the documentation.
- Which value to expect when the account is using a paid plan and im calling
Tinify\remainingCredits()?- Is
paidthe return value ofTinify\payingState()when the account is using a paid plan?
-
If the user is on a paid plan the value will be
null. If not then it will be a value between 0 and 500 -
The value will be either "free" or "paying".