contentful/laravel
Composer 安装命令:
composer require contentful/laravel
包简介
Integrates the Contentful PHP SDK with Laravel.
README 文档
README
This library provides an easy-to-use integration between the Laravel framework and the Contentful Delivery SDK. It requires PHP 8.0 and up.
Setup
Add this package to your application by using Composer and executing the following command:
composer require contentful/laravel
Add the service provider to the providers array in config/app.php:
'providers' => [ Contentful\Laravel\ContentfulServiceProvider::class, ],
Configuration
Publish the config file:
php artisan vendor:publish --provider="Contentful\Laravel\ContentfulServiceProvider"
This will add contentful.php to your /config folder. Next, add your space ID and API key to your .env file:
CONTENTFUL_SPACE_ID="cfexampleapi"
CONTENTFUL_DELIVERY_TOKEN="b4c0n73n7fu1"
What is Contentful?
Contentful provides a content infrastructure for digital teams to power content in websites, apps, and devices. Unlike a CMS, Contentful was built to integrate with the modern software stack. It offers a central hub for structured content, powerful management and delivery APIs, and a customizable web app that enable developers and content creators to ship digital products faster.
License
Copyright (c) 2015-2019 Contentful GmbH. Code released under the MIT license. See LICENSE for further details.
Documentation & Agent Context
| Document | What it covers |
|---|---|
| ARCHITECTURE.md | Internal structure, data flow, integration points, configuration reference |
| CONTRIBUTING.md | Development setup, test commands, commit conventions, release process |
| docs/ADRs/ | Why things look the way they do — key decisions documented |
| AGENTS.md | Agent-first context directory — read this first if you're an AI tool |
| .bito/guidelines/ | PR review rules and domain invariants |
contentful/laravel 适用场景与选型建议
contentful/laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 523.99k 次下载、GitHub Stars 达 46, 最近一次更新时间为 2016 年 07 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 contentful/laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 contentful/laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 523.99k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 46
- 点击次数: 10
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-11