Releases: ButterCMS/buttercms-php
Releases · ButterCMS/buttercms-php
Better boolean handling for Pages
Merge pull request #5 from ButterCMS/content-field-bool-tweak Content Field Bool Behavior Tweak
Pages
Adding Pages Support
Adds localization support
Adds ability to pass params to fetchContentFields
including locale
:
$butter = new ButterCMS("your_api_key");
$fields = $butter->fetchContentFields(['homepage_headline', 'faq'], ['locale' => 'es']);
Adds trailing slashes to endpoint URLs
The ButterCMS API expects all endpoints to include trailing slashes. When there's no trailing slash, the API returns a 301 redirect to the URL with a trailing slash, resulting in two requests to get data. This update fixes the client to include trailing slashes in all requests.
Version 2.0.0
- Breaking change: Renames methods to use fetchXXX() for API calls and getXXX() for accessors
- Adds auto-retry for failed API requests
Adds support for tags
1.0.3 adds support for tags
v1.0.0
version 1