Download the PHP package contentpulse/contentpulse-php without Composer
On this page you can find all versions of the php package contentpulse/contentpulse-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download contentpulse/contentpulse-php
More information about contentpulse/contentpulse-php
Files in contentpulse/contentpulse-php
Package contentpulse-php
Short Description The official PHP SDK for ContentPulse.io - content rendering, API client, and publishing utilities.
License MIT
Homepage https://github.com/contentpulseio/contentpulse-php-sdk
Informations about the package contentpulse-php
ContentPulse PHP SDK
Official PHP SDK for ContentPulse.io - content rendering, API client, and publishing utilities.
Requirements
- PHP 8.2+
Installation
Quick Start
Create a client
The only required argument is your API key. When baseUrl is omitted, the SDK
resolves it (in order) from:
- The
CONTENTPULSE_BASE_URLPHP constant (if defined) - The
CONTENTPULSE_BASE_URLenvironment variable - The default
https://contentpulse.io
The SDK performs a single HTTP request per call - it does not loop,
retry, or usleep. Callers are expected to apply their own retry policy
when needed.
Resolve WordPress endpoints (SDK-managed)
When no overrides are provided, the resolver auto-selects sensible defaults:
- Local/dev:
http://contentpulse.test:8080andhttp://app.contentpulse.test:5173(whencontentpulse.testis resolvable) - Otherwise:
https://contentpulse.ioandhttps://app.contentpulse.io
Overrides (highest to lowest precedence): explicit argument → PHP constant (CONTENTPULSE_API_URL, CONTENTPULSE_APP_URL) → environment variable.
Fetch content feed
Render content to HTML
Section normalizer
SEO meta tags
Publish payloads
Build platform-specific payloads for WordPress or Shopify:
Architecture
| Module | Purpose |
|---|---|
Core/Contracts/ |
Interfaces for API client, renderers, and publishers |
Core/DTO/ |
Data transfer objects (CompatibilityInfo, PublicationRecord, SeoMeta, PublishResult) |
Core/Exceptions/ |
Exception hierarchy for API and validation errors |
Http/ |
REST API client for ContentPulse endpoints |
Rendering/ |
HtmlRenderer, SectionNormalizer, SEO meta renderer |
Publishing/ |
Publish payload builder for WordPress, Shopify, and custom platforms |
Supported Section Types
The HtmlRenderer supports all section types produced by the ContentPulse content generation pipeline:
Fixed sections: titles, hero, cta, seo_keywords, references
Content sections: content, content_seo, conclusion
Component sections: steps, table, grid, checklist, faq, dos_donts, alert, quote, pros_cons, summary_box, definition, key_stats, tip_box, comparison_card, comparison_table, timeline, accordion, testimonial, code_snippet
Testing
Or directly:
License
MIT
All versions of contentpulse-php with dependencies
guzzlehttp/guzzle Version ^7.8
psr/http-client Version ^1.0
psr/log Version ^3.0