Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
You could create a basic implementation of a Secret Cache, where you store the last known good value. If the last known good value of the secret doesn't work, then use GetSecretValue to retrieve the new good value.
Unfortunately, we don't have any PHP libraries that can offer similar functionality right now.