pressmind/sdk
Composer 安装命令:
composer require pressmind/sdk
包简介
PHP SDK for pressmind PIM – imports, caches and indexes touristic and editorial content (MySQL, MongoDB, OpenSearch) with a full search and template API
README 文档
README
This library is meant to be used as a composer requirement and is not intended to be used as-is.
Install
composer require pressmind/sdk
Documentation
The complete documentation is in the documentation folder:
Key Documentation Pages
| Topic | Link |
|---|---|
| Architecture & Design Patterns | architecture.md |
| Configuration Reference | configuration.md |
| Configuration Examples (Production) | config-examples.md |
| Touristic Data Model | Booking Package, Date, Option, Transport |
| MongoDB Search API | search-mongodb-api.md |
| Import Process | import-process.md |
| CheapestPrice Aggregation | cheapest-price-aggregation.md |
| Template Interface | template-interface.md |
| Real-World Examples | real-world-examples.md |
| Troubleshooting | troubleshooting-missing-products.md |
Misc
If you are looking for an out-of-the-box working implementation, please have a look at the
pressmind web-core for a working implementation in vanilla PHP
or ask us for a complete WordPress based Travelshop Theme.
System Overview
The pressmind SDK is a caching layer for non-bookable (and extendable for bookable) content between pressmind® PIM and your application with a comfortable PHP and REST API.
+---------------------+ +-------------------------+
| | | |
| pressmind® PIM | REST | pressmind SDK |
| | -------> | |
| (Content & | API | +-------------------+ |
| Touristic Data) | | | Import Pipeline | |
| | | +--------+----------+ |
+---------------------+ | | |
| v |
| +--------+----------+ |
| | MySQL/MariaDB | |
| | | |
| | - MediaObjects | |
| | - Touristic Data | |
| | - CheapestPrice | |
| +--------+----------+ |
| | |
| v |
| +--------+----------+ |
| | MongoDB | |
| | | |
| | - Search Index | |
| | - Self-contained | |
| | Documents | |
| +--------+----------+ |
| | |
+-----------|--------+----+
| |
+-----------v-+ | REST API
| | |
| Your App | +---------> IBE / CRS
| |
| - Search |
| - Templates |
| - Booking |
+-------------+
Data Flow
1. PIM ──REST──> SDK Import ──> MySQL (MediaObjects, Touristic, Prices)
│
2. ├──> Image Processor ──> Filesystem/S3
│
3. └──> MongoDB Indexer ──> MongoDB (Search Docs)
4. User ──HTTP──> Your App ──pm-*──> SDK Search (Query) ──> MongoDB
│
5. └──> Template Render ──> HTML
统计信息
- 总下载量: 3.41k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-01-06