Download the PHP package contentful/contentful-management without Composer
On this page you can find all versions of the php package contentful/contentful-management. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download contentful/contentful-management
More information about contentful/contentful-management
Files in contentful/contentful-management
Package contentful-management
Short Description SDK for the Contentful Content Management API
License MIT
Informations about the package contentful-management
contentful-management.php
PHP SDK for Contentful's Content Management API. The SDK requires at least PHP 7.2 or PHP 8.0 and up.
Setup
Add this package to your application by using Composer and executing the following command:
Then, if you haven't already, include the Composer autoloader:
Basic concepts
The first thing that needs to be done is initiating an instance of Contentful\Management\Client
by giving it an access token. All actions performed using this instance of the Client
will be performed with the privileges of the user this token belongs to.
When working with space-scoped or environment-scoped resources, you can use proxies. They are lazy-references to a space or an environment, and they allow you to avoid repeating the space and environment ID when making API calls:
Usage
- Api Keys
- Assets
- Content types and content type snapshots
- Editor interfaces
- Entries and entry snapshots
- Environments
- Locales
- Organizations
- Personal access tokens
- Roles
- Spaces
- Space memberships
- Uploads
- UI extensions
- User
- Webhooks
- Rate limits and retrying
Api Keys
Fetching:
Creating and modifying:
Assets
Fetching:
Creating and modifying:
Content types and content type snapshots
Fetching:
Creating and modifying:
Editor interfaces
Fetching and updating
Entries and entry snapshots
Fetching:
Creating and modifying:
Environments
Fetching:
Creating and modifying:
Creating an environment with a different source:
Locales
Fetching:
Creating and modifying:
Organizations
Fetching:
Personal access tokens
Fetching:
Creating and modifying:
Roles
Fetching:
Creating and modifying:
Spaces
Fetching:
Creating and modifying:
Space memberships
Fetching:
Creating and modifying:
Uploads
Fetching:
Creating and modifying:
UI extensions
Fetching:
Creating and modifying:
Users
Fetching:
Webhooks
Fetching:
Creating and modifying:
Rate limits and retrying
Some API calls are subject to rate limiting as described here. The SDK can be instructed to retry a call for a number of times via the max_rate_limit_retries option:
If the retry should happen in more than 60 seconds (as defined by the X-Contentful-RateLimit-Second-Remaining header here ), the call will throw a RateWaitTooLongException exception. This was implemented so that your scripts do not run for too long.
Contributinng
PRs are welcome! If you want to develop locally, however, you will need to install with --ignore-platform-reqs
, as one of the libraries used for testing does currently not officially support PHP8.
About Contentful
Contentful is a content management platform for web applications, mobile apps and connected devices. It allows you to create, edit & manage content in the cloud and publish it anywhere via powerful API. Contentful offers tools for managing editorial teams and enabling cooperation between organizations.
License
Copyright (c) 2015-2019 Contentful GmbH. Code released under the MIT license. See LICENSE for further details.
All versions of contentful-management with dependencies
contentful/core Version ^4.0
symfony/console Version ^4.0|^5.0|^6.0|^7.0
symfony/filesystem Version ^4.0|~5.0|^6.0|^7.0